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.eyJleHAiOjE3MzE1Nzg3NDgsInN1YiI6MzV9.jluU0kh8MpogoXppZjnYz_-44tZmbcl8od3FY7un1w4
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: dfa5fcd0-9ec8-4a3c-a289-4ab62692d184
X-Runtime: 0.009934
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"
    }
  }
}