| Name | Description |
|---|---|
| data[type] | Resource type (invoice-templates) |
| data[id] | Invoice template ID |
| data[attributes][name] | Name |
Version: HTTP/1.0 Accept: application/vnd.api+json Content-Type: application/vnd.api+json Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEyOCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc0MDg1MzAzNH0.2uG9IAoqX3LQFhzXXks6ArAkHXUoES-5ZsRaXhCXtdk 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: d5c45a18-7401-4bcc-b457-5412606407a7 X-Runtime: 0.012769 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"
}
}
}