Forms

Detach a document template from a form

DELETE/forms/{id}/templates/{member_id}

Detaches the template from the form, removing every link between them, and returns 204. A template that is not attached changes nothing. It has no dry run. Emits form.updated with templates as the changed field, only when the set changes, and sends no email. POST /forms/{id}/templates undoes it.

Path parameters

  • idstring (uuid)Required#

    The form's id, a uuid. An unknown id, or a hidden form, returns 404.

  • member_idstring (uuid)Required#

    The guid of the document template to detach.

Responses

204

The template is no longer attached.

401

Authentication failed. error.code is one of invalid_token, expired, revoked.

Error
403

Authorization failed. error.code is one of org_disabled, ip_blocked, missing_scope, scope_disabled, user_disabled.

Error
404

Resource not found (error.code = not_found).

Error
429

Rate limit exceeded (error.code = rate_limited).

Error

Examples

curl -X DELETE https://your-org-domain/kong/core/api/v2/forms/{id}/templates/{member_id}\
  -H "Authorization: Bearer $HELM_API_KEY"\
  -H "Content-Type: application/json"