Re-import a Skill
Re-imports a Skill that your organization imported from the Skill Catalog. The re-import replaces the name, the description and the body with the current version of the Catalog Skill, and sets source.version. The Skill keeps its slug. Edits that your organization made to the Skill are lost. Send the baseRevision you read. The answer is 409 when the re-import is not possible, and error tells why: not_imported for a Skill that your organization wrote, not_in_skill_catalog when the Catalog Skill left the Skill Catalog, no_later_version when the Skill Catalog has no later version, and revision_mismatch when the Skill changed after you read it.
/context/skills/{slug}/re-importAuthorizationBearer token · headerrequiredSend Authorization: Bearer <credential>.
Use an API key (acr_…), from the AdCrunch console under Settings → API keys.
The credential names the organization, and no operation takes an organization parameter.
See https://docs.adcrunch.dev/api/authentication.
slugstringrequiredapplication/jsonbaseRevisionintegerrequiredThe revision last read via GET. A re-import replaces the content of the Skill, so it guards the content that you read.
The Skill with the content of the later version, at the next revision. This shape was not observed against a deployed service, because no stage held a later version of a Catalog Skill: it is written from the Context Layer’s view type.
bodystringrequiredThe agent instructions themselves — the SKILL.md-equivalent, in markdown.
createdAtnumberrequiredMilliseconds since the Unix epoch, UTC.
createdBystringrequireddescriptionstringrequiredidstringrequirednamestringrequiredrevisionnumberrequiredIncrements on every write. Send it back as base_revision to edit; a stale one answers 409.
slugstringrequiredsourceobject | nullrequiredThe Catalog Skill and the version that this Skill was imported from. It is null for a Skill that your organization wrote. An edit keeps it.
Show propertiesHide properties
slugstringrequiredThe slug of the Catalog Skill that the Skill was imported from.
versionstringrequiredThe version of the Catalog Skill that the Skill was last imported from, YYYY-MM-DD.
updatedAtnumber | nullrequiredMilliseconds since the Unix epoch, UTC.
The request does not match the schema of this operation: a field is missing or has the wrong type, or the body is not valid JSON. error is invalid_request, and issues names each field. Nothing was changed.
issuesobject[]requiredOne entry for each field that does not match.
Show propertiesHide properties
objectinstringrequiredThe part of the request that holds the field.
bodycookieheadersparamsquerymessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
pathstringrequiredA JSON Pointer into that part of the request, such as /filename. An empty string is the whole part.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
invalid_requestmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
No API key, or one that does not resolve. See the security scheme. error is unauthorized.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
unauthorizedmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
The caller does not hold skill:write. error is forbidden.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
forbiddenmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
No Skill with that slug. error is not_found.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
messagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
The re-import is not possible, and error tells why. not_imported: your organization wrote the Skill, so it has no source. not_in_skill_catalog: the Catalog Skill left the Skill Catalog; the Skill keeps its source. no_later_version: the version of the Catalog Skill is not later than source.version. revision_mismatch: somebody else wrote first; read the Skill again, and send the currentRevision back.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
not_importedmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
not_in_skill_catalogmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
no_later_versionmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
currentRevisionnumberrequiredThe revision the row holds now. Re-read, re-apply your edit on top, and send this back as base_revision.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
revision_mismatchmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.