create new entry
POST /api/rest/admin/billing/invoice-template
Parameters
Name |
Description |
data[type]
|
Resource type (invoice-templates)
|
data[attributes][name]
|
Name
|
data[attributes][filename]
|
Filename
|
Request
Headers
Route
POST /api/rest/admin/billing/invoice-template
Body
{"data":{"type":"invoice-templates","attributes":{"name":"Daily","filename":"filename.odt"}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "6",
"type": "invoice-templates",
"links": {
"self": "http://example.org/api/rest/admin/billing/invoice-templates/6"
},
"attributes": {
"name": "Daily",
"filename": "filename.odt"
}
}
}