templates
Partially update a template
Update specific fields of an existing template
PATCH
/
templates
/
{template_id}
curl --request PATCH \
--url https://sdk.senso.ai/api/v1/templates/{template_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"name": "<string>",
"text": "<string>",
"output_type": "json"
}'
{
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"text": "<string>",
"output_type": "json",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
Authorizations
API key authorization
Path Parameters
The unique identifier (UUID) of the template
Body
application/json
Response
200
application/json
Template successfully updated
The response is of type object
.
curl --request PATCH \
--url https://sdk.senso.ai/api/v1/templates/{template_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"name": "<string>",
"text": "<string>",
"output_type": "json"
}'
{
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"text": "<string>",
"output_type": "json",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.