Generated at:
Create an Agent0 custom skill
/api/agent0/custom-skillsCreates a skill from its files. spec.files must include a SKILL.md whose frontmatter names the skill; a name that conflicts with an existing skill or a built-in Agent0 skill is rejected. In an organization that allows duplicate names, only a skill with the same creator conflicts; skills created with API tokens share one creator. A skill holds at most 128 files of up to 256 KiB each and 4 MiB in total, and an organization holds at most 100 skills, enabled or not. Deleting a skill frees its slot. A skill with a dash0.com/origin cannot carry spec.source, which is reserved for skills imported from a repository in Dash0; an API token without a user always creates a skill with an origin. Such a skill is never refreshed from a repository. A skill an API token creates without spec.permissions is readable by every organization member. An API token may send dash0.com/enabled: "true" but not "false": to ship a skill off by default, set defaultEnabled on its grants.
Sample requestcurl --request POST 'https://api.eu-west-1.aws.dash0.com/api/agent0/custom-skills' \
--header "Authorization: Bearer ${DASH0_AUTH_TOKEN}" \
--header 'Content-Type: application/json' \
--data-raw '{
"kind": "Dash0Skill",
"metadata": {},
"spec": {
"files": [
{
"relativePath": "example",
"content": "example"
}
]
}
}'Request body required
Responses
The custom skill was created.