Update a JsonFabrica template
jsonfabrica_update_templatePartially updates an existing template in place, changing only the fields you specify. Use to modify name, description, body, or tags while preserving unspecified values.
Instructions
Calls PUT /v1/templates/{templateId}. Partially updates an existing template in place: only the fields you include in the call are changed, and every field you omit is left exactly as it was — call jsonfabrica_get_template first if you need to see current values before deciding what to send. Use this only for an existing templateId; to make a new template use jsonfabrica_create_template instead (it does not modify or version the original). The change is applied immediately and in-place with no version history — there is no undo, so if you need to keep the old body/tags around, read and save them first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | New template body (function-call placeholder syntax), replacing the existing one entirely. Optional; omit to leave the current body unchanged. | |
| name | No | New template name. Optional; omit to leave the current name unchanged. | |
| tags | No | New full set of tags, replacing (not merging with) the existing tags. Optional; omit to leave the current tags unchanged; pass an empty array to clear all tags. | |
| templateId | Yes | ID of the template to update. Required. | |
| description | No | New free-text description, replacing the existing one. Optional; omit to leave it unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Template body containing function-call placeholders. | |
| name | Yes | Template name. | |
| tags | No | Tags stored on the template. | |
| status | Yes | "active" unless soft-deleted via jsonfabrica_delete_template. | |
| astCache | No | Server-internal parsed-body cache; opaque to callers. | |
| tenantId | Yes | Owning tenant id. | |
| warnings | No | Non-fatal validation warnings, if any. | |
| createdAt | Yes | ISO-8601 creation timestamp. | |
| updatedAt | Yes | ISO-8601 last-update timestamp. | |
| validated | No | Whether the body passed static template validation. | |
| templateId | Yes | Server-assigned template id. | |
| description | No | Free-text description, if any was stored. |