v1

latestOpenAPI 3.0.02026-07-2418630310.7 KB
Templates

Update an existing account template

Update an existing account template. <br> <b>Required scope(s):</b> administration:write

post/api/v4/f/{firm_id}/account_templates/{id}

Path parameters

firm_idinteger required
idinteger required

Identifier of the account template

Headers

Acceptstring

Request body

name_nlstring required
name_enstring
name_frstring
account_rangestring
text_configurationstring
textstring
externally_managedboolean

When this value is set to true the shared parts are not allowed to be edited via the web interface, only via API.

idinteger
version_commentstring required

Comment on why this update is needed, used for version control.

Example request

{
  "name_nl": "Account Template Name",
  "name_en": "Account Template Name",
  "name_fr": "Account Template Name",
  "text_parts": [
    {
      "name": "part_name",
      "content": "{% comment %}liquid code in part{% endcomment %}"
    }
  ],
  "id": 6789,
  "version_comment": "Update published using the API"
}

Response

Successful response

name_nlstring required
name_enstring
name_frstring
account_rangestring
text_configurationstring
textstring
externally_managedboolean

When this value is set to true the shared parts are not allowed to be edited via the web interface, only via API.

idinteger

Example response

{
  "name_nl": "Account Template Name",
  "name_en": "Account Template Name",
  "name_fr": "Account Template Name",
  "text_parts": [
    {
      "name": "part_name",
      "content": "{% comment %}liquid code in part{% endcomment %}"
    }
  ],
  "id": 1977
}