Invoice template API

update values

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

Parameters

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

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MTAyNTQ3MjUsInN1YiI6Mjl9.puHoagrEPNmWR_jHMfLj2QeN4VA8oPc3vyifHqINums
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/billing/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-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"1fc18c9bfc6b28bb245e78f800914f3e"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: d6aa5b4a-c982-4fe4-8aaf-81de2609f500
X-Runtime: 0.012686
Content-Length: 182

Status

200 OK

Body

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