| 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.eyJzdWIiOjEzNCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3MjIxMjAwNX0.3wUI7lw96ubb-WfI86zNYmM0CW4hdMbhFxibTO0QR7k 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: e1580ac7-619a-434d-9dac-045066e4e09f x-runtime: 0.007882 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"
}
}
}