| Name | Description |
|---|---|
| data[type] | Resource type (invoice-templates) |
| data[id] | Invoice template ID |
| data[attributes][name] | Name |
Accept: application/vnd.api+json Content-Type: application/vnd.api+json Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEzMiwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU2Nn0.s1QcG4NNLqIIgeh26zFfU9J-BD-d3g6bwM34jDzCljg Host: example.org Cookie:
PUT /api/rest/admin/invoice-template/7
{"data":{"type":"invoice-templates","id":7,"attributes":{"name":"name"}}}
x-frame-options: SAMEORIGIN x-xss-protection: 0 x-content-type-options: nosniff x-permitted-cross-domain-policies: none referrer-policy: strict-origin-when-cross-origin content-type: application/vnd.api+json vary: Accept etag: W/"c91a4cf4a9f9e16a5b5b775fe4832d92" cache-control: max-age=0, private, must-revalidate x-request-id: 3bdee360-107e-40fe-aa0d-04c4e77841b0 x-runtime: 0.009169 content-length: 174
200 OK
{
"data": {
"id": "7",
"type": "invoice-templates",
"links": {
"self": "http://example.org/api/rest/admin/invoice-templates/7"
},
"attributes": {
"name": "name",
"filename": "filename.odt"
}
}
}