Admin > Templates

Update a template

Update a private template.

patch/api/v1/admin/templates/{id}

Request

  • Base URL: https://your-tenant.tines.com
  • URL: https://your-tenant.tines.com/api/v1/admin/templates/{id}
  • Auth: one of:
    • API key in header X-User-Token
    • HTTP bearer

Path parameters

idinteger required

The template ID

Request body

namestring required

Template name

descriptionstring

Template description

agent_type'Agents::EmailAgent' | 'Agents::EventTransformationAgent' | 'Agents::HTTPRequestAgent' | 'Agents::IMAPAgent' | 'Agents::LLMAgent' | 'Agents::TriggerAgent' | 'Agents::WebhookAgent' | 'Agents::SendToStoryAgent'

Type of action associated with the template

agent_optionsobject

Action options

vendorstring

Vendor name

productstring required

Product name

folder_idinteger

ID of a template folder to place the template in. Set to null to remove from a folder. Unchanged if omitted

read_access'TEAM' | 'GLOBAL' | 'SPECIFIC_TEAMS'

Where this template can be used. Unchanged if omitted

shared_team_slugsstring[]

Slugs of teams where this template can be used. Required when setting read_access to SPECIFIC_TEAMS. Unchanged if omitted

Response

Successful response

idinteger

Template ID

namestring

Template name

descriptionstring nullable

Template description

agent_typestring

Type of action associated with the template

agent_optionsobject

Action options

vendorstring nullable

Vendor name

productstring nullable

Product name

team_idinteger

ID of the team to which the template belongs

folder_idinteger nullable

ID of the folder containing the template, or null if not in a folder

read_accessstring

Where this template can be used (TEAM, GLOBAL, SPECIFIC_TEAMS)

shared_team_slugsstring[]

Slugs of teams where this template can be used when read_access is SPECIFIC_TEAMS, otherwise empty

action_inputsobject[]

Input parameters for the template

Changes

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