Update a skill
curl --request PATCH \
--url https://{host}/v2/workspaces/slug:storage/webhooks/v1/skills/{skillId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"instructions": "<string>",
"tools": [
{}
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
display_name: '<string>',
description: '<string>',
instructions: '<string>',
tools: [{}]
})
};
fetch('https://{host}/v2/workspaces/slug:storage/webhooks/v1/skills/{skillId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:storage/webhooks/v1/skills/{skillId}"
payload = {
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"instructions": "<string>",
"tools": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"instructions": "<string>",
"tools": [
{}
],
"user_id": "<string>",
"orgSlug": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}Skills
Update a skill
PATCH
/
v1
/
skills
/
{skillId}
Update a skill
curl --request PATCH \
--url https://{host}/v2/workspaces/slug:storage/webhooks/v1/skills/{skillId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"instructions": "<string>",
"tools": [
{}
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
display_name: '<string>',
description: '<string>',
instructions: '<string>',
tools: [{}]
})
};
fetch('https://{host}/v2/workspaces/slug:storage/webhooks/v1/skills/{skillId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:storage/webhooks/v1/skills/{skillId}"
payload = {
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"instructions": "<string>",
"tools": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"instructions": "<string>",
"tools": [
{}
],
"user_id": "<string>",
"orgSlug": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}Authorizations
User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.
Path Parameters
Maximum string length:
128Body
application/json
Response
Updated skill.
Was this page helpful?