| Name | Description |
|---|---|
| data[type] | Resource type (invoice-templates) |
| data[attributes][name] | Name |
| data[attributes][filename] | Filename |
Version: HTTP/1.0 Accept: application/vnd.api+json Content-Type: application/vnd.api+json Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEyNywiYXVkIjpbImFkbWluIl0sImV4cCI6MTc0MDg1MzAzNH0.ZXbEG0vFJ7Fe19ZX5XkwDaRdTPbUIBadu0G4xHENhPs 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 Vary: Accept ETag: W/"0a2f24fcbc90e0e04c6cf9ecdc4214d3" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 05873669-ab30-48ba-bb07-be4dfc1f0ff8 X-Runtime: 0.010931 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"
}
}
}