| Name | Description |
|---|---|
| data[type] | Resource type (invoice-templates) |
| data[attributes][name] | Name |
| data[attributes][filename] | Filename |
Accept: application/vnd.api+json Content-Type: application/vnd.api+json Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEzMSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU2Nn0.CSArCWC3NgAqDzjblY_edAfVU2xSWVODJsCuwTGBDII Host: example.org Cookie:
POST /api/rest/admin/invoice-template
{"data":{"type":"invoice-templates","attributes":{"name":"Daily","filename":"filename.odt"}}}
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 location: http://example.org/api/rest/admin/invoice-templates/6 vary: Accept etag: W/"0a2f24fcbc90e0e04c6cf9ecdc4214d3" cache-control: max-age=0, private, must-revalidate x-request-id: b68dc546-35e5-4796-b6f1-9499d2b83335 x-runtime: 0.007521 content-length: 175
201 Created
{
"data": {
"id": "6",
"type": "invoice-templates",
"links": {
"self": "http://example.org/api/rest/admin/invoice-templates/6"
},
"attributes": {
"name": "Daily",
"filename": "filename.odt"
}
}
}