Onboarding

Create a document template for PDFs

Create a custom HTML document template (such as an invoice PDF layout).

post/onboarding/v2/templates

Request

  • The document declares no server URL.
  • Auth
    API key in header Ocp-Apim-Subscription-Key

Request body

contentstring required

Raw HTML document template content (maximum 65536 bytes)

Validations:

  • Must not be empty.
  • Length ({{.actual}}) must be between {{.min}} and {{.max}} bytes long.
namestring required

Display name for the document template

Validations:

  • Required property
statusstring

Document template status. Defaults to active when omitted.

Validations:

  • Values allowed are (letter case matters): active, inactive

Response

Created - document template was successfully created.

messagestring
statusstring

The status of the request.

Example response

{
  "errors": [
    {
      "type": "validation"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.