Invoice template API

update values

PUT /api/rest/admin/invoice-template/:id

Parameters

Name Description
data[type] Resource type (invoice-templates)
data[id] Invoice template ID
data[attributes][name] Name

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEzOSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3NjM2NTczOH0.a8htXIh00x_WTnBGi8UdVEDfepgd5-XucyvCeRHLisE
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/invoice-template/7

Body

{"data":{"type":"invoice-templates","id":7,"attributes":{"name":"name"}}}

Response

Headers

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: 079a35d0-152c-4636-b395-9f91290f7951
x-runtime: 0.007419
content-length: 174

Status

200 OK

Body

{
  "data": {
    "id": "7",
    "type": "invoice-templates",
    "links": {
      "self": "http://example.org/api/rest/admin/invoice-templates/7"
    },
    "attributes": {
      "name": "name",
      "filename": "filename.odt"
    }
  }
}