Install templates into this tenant as prompts/skills (drafts by default).
POST
/v1/admin/templates/install
const url = 'https://example.com/v1/admin/templates/install';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ids":["example"],"overwrite":true,"status":"active"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/admin/templates/install \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ids": [ "example" ], "overwrite": true, "status": "active" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
ids
required
Template ids, e.g. [“prompts/core-assistant”, “skills/order-status”]
Array<string>
overwrite
Replace the content of an existing prompt/skill with the same name (new revision).
boolean
status
Status for newly created documents (default: the template status, usually draft).
string