Update skill
const url = 'https://example.com/%7B%7Bapp_url%7D/api/v1/workspaces/1/skills/1';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"brand-voice","description":"Use when writing on-brand marketing copy for Acme.","instructions":"# Brand voice\n\nWrite in a warm, concise tone."}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/%7B%7Bapp_url%7D/api/v1/workspaces/1/skills/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "brand-voice", "description": "Use when writing on-brand marketing copy for Acme.", "instructions": "# Brand voice\n\nWrite in a warm, concise tone." }'Updates a single skill by ID.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Workspace ID
Skill ID
Request Body
Section titled “Request Body”object
Unique handle for the skill within the workspace. Lowercase letters, numbers and single hyphens only.
Example
brand-voiceWhat the skill does and when to use it.
Example
Use when writing on-brand marketing copy for Acme.The markdown body of the skill (the SKILL.md instructions).
Example
# Brand voice
Write in a warm, concise tone.Responses
Section titled “Responses”Successful
object
Unique handle for the skill within the workspace. Lowercase letters, numbers and single hyphens only (agentskills.io name constraint).
Describes what the skill does and when to use it. Surfaced to the agent as part of the skills manifest.
The markdown body of the skill (the SKILL.md instructions).
Emails attached via email:<id> tokens in the body, resolved to their current id and name. Derived from the body; not set directly.
object
Build agents that can access this skill.
object
Review agents that can access this skill.
object
Example
{ "id": 12345, "name": "brand-voice", "description": "Use when writing on-brand marketing copy for Acme.", "instructions": "# Brand voice\n\nWrite in a warm, concise tone. Never use exclamation marks.", "attached_emails": [ { "id": 12345, "name": "Product Updates" } ], "ai_agents": [ { "id": 12345, "name": "Marketing Agent" } ], "ai_reviewers": [ { "id": 12345, "name": "Brand Reviewer" } ]}Unauthorized
object
Example
{ "message": "Record not found"}Forbidden
object
Example
{ "message": "Record not found"}Not Found
object
Example
{ "message": "Record not found"}Unprocessable Entity
object
object
Example
{ "errors": { "username": [ "Username is required.", "Username must be unique." ], "email": [ "Invalid email format." ] }}