Skip to main content

Update a template

Updates the specified template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Parameters

name
string
required
Name of the template.

Returns

Returns the template object if the update succeeded. Throws an error if update parameters are invalid.

put
/api/templates/{id}
curl -X PUT https://{workspace}.kitchen.co/api/templates/{id} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"createdAt": "2024-05-23T08:30:11+00:00",
"id": "fo_4467f84d80755361f178be28",
"name": "et",
"updatedAt": "2024-05-23T08:30:11+00:00"
}