Access & visibility
Allow documents.RemoveDocumentTemplateField on your API key.
Acting member required. Send Brigg-Act-As with an approved member account ID. The key supplies permissions; the member selects whose data is used.
The selected member must be active and approved by the credential. This selects whose private data is used; the credential supplies permissions. Private ownership and project boundaries still apply.
Request fields
Send a JSON object with the following fields. Required fields must be included; omit optional fields you do not need.
template_idstringRequiredUse a template_id from the template catalogue; this is not the ID of a generated document. workspace.ListTemplates.
At least 1 character.
field_idstringRequiredExact field_id from items or inserts in ListDocumentTemplateFields for this same template_id. It is a stable name, not an array index, display label or file ID.
Pattern: ^[a-z0-9][a-z0-9-]{0,63}$.
Inspect, edit, then inspect again
Use List document template fields to get this template's generated fields, inserted documents and placement landmarks. A generated field contains an instruction; an insert references an existing text document. Use the returned field_id names and landmark_id values exactly.
Edits create a new template version and require template-management authority, not just read access. Pending or completed signing can lock the template. Existing generated documents are not regenerated by a template edit. The returned version_id records the changed template; it is not a precondition for another edit. Re-list before selecting a placement in the changed structure.
Response
Returns 200 OK with a JSON body.
Removes the definition and every placement of this field or insert from the template. Removing an insert leaves its underlying text document intact; deleting the field does not rewrite documents previously generated from this template. Re-list before another edit because landmarks can change.
okbooleanRequiredWhether the action completed successfully.
version_idstringRequiredNew template version containing this edit. It is not a collaborative text-document version or an optimistic-lock token. Re-list template fields to inspect the current structure after the edit.
Errors & retries
Set BRIGG_REQUEST_ID once for each logical action. The samples send it as Idempotency-Key. Reuse the same value and body on retries, including after a timeout; a missing response does not prove the action failed.
For rate limits, follow the server’s retry guidance and back off. See HTTP errors and safe retries and limits.
| HTTP status | Code | What to do |
|---|---|---|
| 400 | invalid_json |
Send a JSON object with Content-Type: application/json. |
| 400 | invalid_input |
Check the request fields and types. Supply a stable Idempotency-Key containing 1–200 characters. |
| 401 | invalid_key |
The workspace API key is missing, invalid or revoked. |
| 403 | forbidden |
Check the key’s operation and resource grants. Supply Brigg-Act-As with a member authorized by the key’s delegation grant. The selected member must be active and approved by the credential. This selects whose private data is used; the credential supplies permissions. Private ownership and project boundaries still apply. |
| 404 | not_found |
The requested operation or resource is not available to this credential. |
| 429 | rate_limited |
Wait for Retry-After before retrying. Reuse the original Idempotency-Key. |
| 409 | signing_locked |
Pending or completed signing protects this template. Do not retry the edit unchanged. |
| 400 | not_a_template |
Choose a document template from ListTemplates, not a generated document. |
| 404 | no_active_version |
This template has no editable version. Open it in Brigg to complete its setup. |
| 404 | slot_not_found |
Re-list this template's fields and inserts; use an exact current field_id. |
Next steps
JSON schemas
Use the complete schemas for validation or client generation.
Full request JSON schema
{
"type": "object",
"properties": {
"template_id": {
"type": "string",
"minLength": 1,
"description": "Use a template_id from the template catalogue; this is not the ID of a generated document. [workspace.ListTemplates](/reference/workspace/ListTemplates)."
},
"field_id": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$",
"description": "Exact field_id from items or inserts in ListDocumentTemplateFields for this same template_id. It is a stable name, not an array index, display label or file ID."
}
},
"required": [
"template_id",
"field_id"
],
"additionalProperties": false,
"examples": [
{
"template_id": "c_template_proposal",
"field_id": "project-summary"
}
]
}Full response JSON schema
{
"type": "object",
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the action completed successfully."
},
"version_id": {
"type": "string",
"description": "New template version containing this edit. It is not a collaborative text-document version or an optimistic-lock token. Re-list template fields to inspect the current structure after the edit."
}
},
"required": [
"ok",
"version_id"
],
"additionalProperties": false,
"examples": [
{
"ok": true,
"version_id": "v_proposal_4"
}
]
}