Openapi
Update a reusable quote or invoice template for the specified organization.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidtemplateId*stringuuidThe template patch payload.
application/jsoncurrency?string^[A-Z]{3}$defaultDueDays?|0 <= valuedefaultValidityDays?|0 < valuedescription?|length <= 20000discountKind?string"none""percentage""fixed"discountValue?number0 <= valuefooterText?|length <= 20000internalNotes?|length <= 20000intro?|length <= 20000isDefault?booleanlanguage?string"en""nl""de"lifecycleWorkflowKey?|^[a-z0-9][a-z0-9-]*$1 <= length <= 120name?string1 <= length <= 240publicMessage?|length <= 20000terms?|length <= 20000title?string1 <= length <= 240vatInclusive?booleanvatRegime?string"standard""reverse_charge""exempt""kor""margin_scheme"termsPdfFileId?|uuidtermsPdfVersionId?|uuidtermsRichText?|length <= 100000termsUrl?|length <= 2000lines?array<>items <= 500type?"invoice""invoice"Returns the updated template.
application/jsonid*templateIdSchemauuidorganizationId*stringuuidtype*templateTypeSchema"invoice""quote""task""order""purchase_order"language*templateLanguageSchema"en""nl""de"isDefault*booleanname*stringdescription*string|nulltitle*stringintro*string|nullterms*string|nullinternalNotes*string|nullpublicMessage*string|nullfooterText*string|nullcurrency*currencyCode^[A-Z]{3}$vatInclusive*booleandiscountKind*discountKindSchema"none""percentage""fixed"discountValue*numberdefaultDueDays*|0 <= valuedefaultValidityDays*|0 < valuevatRegime*documentVatRegimeSchema"standard""reverse_charge""exempt""kor""margin_scheme"termsPdfFileId*|uuidtermsPdfVersionId*|uuidtermsRichText*|length <= 100000termsUrl*string|nulldepositKind*quoteDepositKindSchema"none""percent""fixed"depositRequiredToAccept*booleandepositValue*number0 <= valuelifecycleWorkflowKey*string|nullorderDeliveryMethod*|nullorderInvoicingPolicy*|nullorderPaymentRequired*booleanshipToLocationId*|uuidcreateOrderOnAccept*booleanarchivedAt*|date-timecreatedBy*|uuidupdatedBy*|uuidcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X PATCH 'https://app.localhost/api/v1/organizations/123/templates/123' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "type": "invoice", "language": "en", "isDefault": true, "name": "string", "description": "string", "title": "string", "intro": "string", "terms": "string", "internalNotes": "string", "publicMessage": "string", "footerText": "string", "currency": "string", "vatInclusive": true, "discountKind": "none", "discountValue": 0, "defaultDueDays": 0, "defaultValidityDays": 1, "vatRegime": "standard", "termsPdfFileId": "447ac172-1a77-4d3e-a448-6529f5bad5f6", "termsPdfVersionId": "357f5e3f-e5dd-4fb8-ab36-48697a651460", "termsRichText": "string", "termsUrl": "string", "depositKind": "none", "depositRequiredToAccept": true, "depositValue": 0, "lifecycleWorkflowKey": "string", "orderDeliveryMethod": "pickup", "orderInvoicingPolicy": "before_fulfillment", "orderPaymentRequired": true, "shipToLocationId": "17d01ddf-03d0-401e-8692-7b8be54e80b5", "createOrderOnAccept": true, "archivedAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "updatedBy": "b0efe45f-0520-4e21-90f0-7e35f137732e", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}