Modify batch of admins` PDF templates
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Body Required
templates
-
countryId integer
-
description string
-
id integer
-
isActive boolean
-
name string
-
previewImage object
Additional properties are allowed.
-
previewTemplate object
Additional properties are allowed.
-
sourceTemplate object
Additional properties are allowed.
-
templateType string
Values are
SALES_INVOICE
,LATE_NOTICE
,SALARY_SLIP
,MY_SALARY_SLIP
,SALES_ORDER
,VAT_REPORT
,DELIVERY_NOTE
, orGENERAL_LEDGER
.
PUT
/api-v1/pdf-template/global/batch
curl \
-X PUT http://wyzio.app/api-v1/pdf-template/global/batch \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '[{"countryId":42,"description":"string","id":42,"isActive":true,"name":"string","previewImage":{"createdOn":"2024-05-04T09:42:00+00:00","fileExtension":"string","id":42,"name":"string","organizationId":42,"size":42},"previewTemplate":{"createdOn":"2024-05-04T09:42:00+00:00","fileExtension":"string","id":42,"name":"string","organizationId":42,"size":42},"sourceTemplate":{"createdOn":"2024-05-04T09:42:00+00:00","fileExtension":"string","id":42,"name":"string","organizationId":42,"size":42},"templateType":"SALES_INVOICE"}]'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
[
{
"countryId": 42,
"description": "string",
"id": 42,
"isActive": true,
"name": "string",
"previewImage": {
"createdOn": "2024-05-04T09:42:00+00:00",
"fileExtension": "string",
"id": 42,
"name": "string",
"organizationId": 42,
"size": 42
},
"previewTemplate": {
"createdOn": "2024-05-04T09:42:00+00:00",
"fileExtension": "string",
"id": 42,
"name": "string",
"organizationId": 42,
"size": 42
},
"sourceTemplate": {
"createdOn": "2024-05-04T09:42:00+00:00",
"fileExtension": "string",
"id": 42,
"name": "string",
"organizationId": 42,
"size": 42
},
"templateType": "SALES_INVOICE"
}
]
Response examples (200)
{
"items": [
{
"error": true,
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"data": "string",
"errorCode": "string",
"fieldName": "string",
"isSevere": true
}
]
},
"freshData": {},
"freshRow": {},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"severeError": true
}
]
}