PUT /templates/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
content string | null
Content
-
createdAt string(date-time)
Created at
-
customDelimiter string | null
Custom delimiter
-
Default mapping
Values are
custom
orroyalMail
. Default value iscustom
. -
Delivery
Values are
email
orwebhook
. Default value isemail
. -
Format
Values are
csv
,json
,html
,xml
,csv_mapping
, orjson_mapping
. Default value iscsv
. -
id integer(int32)
Id
-
Name
-
Resource
Values are
sales
,purchases
,variants
,sale_items
, orpurchase_items
. -
updatedAt string(date-time)
Updated at
-
Visible
Default value is
true
. -
webhookEndpoint string | null
Webhook endpoint
-
xmlDateDormat string | null
Xml date dormat
PUT /templates/{id}.json
curl \
-X PUT http://api.example.com/v1/templates/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"content":"string","createdAt":"2024-05-04T09:42:00+00:00","customDelimiter":"string","defaultMapping":"custom","delivery":"email","format":"csv","id":42,"name":"string","resource":"sales","updatedAt":"2024-05-04T09:42:00+00:00","visible":true,"webhookEndpoint":"string","xmlDateDormat":"string"}'
Request example
{
"content": "string",
"createdAt": "2024-05-04T09:42:00+00:00",
"customDelimiter": "string",
"defaultMapping": "custom",
"delivery": "email",
"format": "csv",
"id": 42,
"name": "string",
"resource": "sales",
"updatedAt": "2024-05-04T09:42:00+00:00",
"visible": true,
"webhookEndpoint": "string",
"xmlDateDormat": "string"
}