Update Skill
PUThttps://api.confident-ai.com/v2/organization/governance-policies/{policyId}/skill
Sets the Agent Skill served to coding agents working on the projects this governance policy governs, creating it when the policy has none and replacing it outright otherwise. Both description and body are required and must not be blank, so there is no way to patch one and leave the other. The new text reaches an agent the next time it clones the project's Agent Skills repository, where it appears as skills/governance/SKILL.md. Returns the skill as it now stands, which is never null.
curl -X PUT "https://api.confident-ai.com/v2/organization/governance-policies/{policyId}/skill" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"description": "Rules for shipping changes to an AI system governed for EU AI Act readiness.",
"body": "## Before opening a pull request\n\n- Run the project'\''s evals and attach the test run link.\n- Never disable a governance control to make a build pass.\n"
}'{
"success": true,
"data": {
"description": "Rules for shipping changes to an AI system governed for EU AI Act readiness.",
"body": "## Before opening a pull request\n\n- Run the project's evals and attach the test run link.\n- Never disable a governance control to make a build pass.\n"
},
"link": "https://app.confident-ai.com/organization/<ORGANIZATION-ID>/governance/policies/<GOVERNANCE-POLICY-ID>",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
policyIdstringRequiredThe id of the governance policy.
Request body
descriptionstringRequiredOne line on what the skill covers, which is how a coding agent decides whether it is relevant. Required, and must not be blank.
bodystringRequiredThe instructions themselves, in Markdown, which become the body of
skills/governance/SKILL.md. Required, and must not be blank.
Response
Update Skill succeeded.
successbooleanIndicates if the request was successful.
dataobjectAn Agent Skill attached to a governance policy: the instructions Confident AI serves to coding agents working on the projects the policy governs. Confident AI publishes a per-project Agent Skills git repository at
https://app.confident-ai.com/skills.git, and a project enrolled in this policy finds the skill there asskills/governance/SKILL.md, withdescriptionin the YAML frontmatter andbodyas the Markdown beneath it. Nothing about the skill is assessed — it instructs the agent, it is not a control.Show 2 propertiesHide 2 properties
descriptionstringOne line on what the skill covers, which is how a coding agent decides whether it is relevant to the task in front of it.
bodystringThe instructions themselves, in Markdown. This becomes the body of the
SKILL.mdfile, so write it for a coding agent rather than a person and be as explicit as the policy requires.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.