Document Templates

Delete a Document Template

In ServiceM8, deleting a record sets its active field to 0. Inactive records are still accessible on the API, but are hidden in the UI. Inactive records can be restored by setting their active field to 1.

OAuth Scope

This endpoint requires the following OAuth scope manage_templates.

delete/documenttemplate/{uuid}.json

Path parameters

uuidstring uuid required

UUID of the Document Template

Response

Document Template successfully archived (soft deleted)

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes

Changed in 3 of the 50 revisions of this API.7

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • added the non-success response with the status 404

      response-non-success-status-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

    • the security scope manage_templates was added to the endpoint's security scheme oauth2

      api-security-scope-added

    • endpoint added

      endpoint-added