Skip to navigation

Replace skill bundle

View as Markdown

Replaces a Skill’s bundle with a newly uploaded one and returns the updated Skill.

Upload the new bundle with Upload file first. file_id is the only field you can change: to change the description or surfaces, edit SKILL.md and upload a new bundle. The replacement must name the same Skill.

Replacing a bundle with identical contents changes nothing and returns the current Skill, so a retry is safe. version.num is checked before the bundle is replaced, but two replacements sent at the same moment with the same num can both succeed, and the later one is stored.

Authentication

AuthorizationBearer

JWT bearer token authentication. Include the Configuration API key in the Authorization header as ‘Bearer <token>’.

Path parameters

idstringRequiredformat: "uuid"

The id of the Skill, as returned when it was registered or listed.

Request

This endpoint expects an object.
file_idstringRequired>=1 character

The Files API id of the replacement bundle, uploaded with purpose CONFIGURATIONS_ASSISTANT_SKILL. Its SKILL.md must name the same Skill. See Upload file.

versionobjectRequired
The version you last read, and a note for this change.

Response headers

x-trace-idstringOptional
A unique identifier used to trace your request within the Moveworks system

Response

The updated Skill, at its new version
idstringRead-onlyformat: "uuid"

Unique identifier of the Skill, assigned by the server. Use it in a productivity assistant’s skill_ids.

namestringRead-only

Skill name from the bundle’s SKILL.md. Unique in your organization, and fixed once the Skill is created.

versionobject
The version of a stored document.
descriptionstringOptionalRead-only

Skill description from the bundle’s SKILL.md.

surfaceslist of stringsOptionalRead-only

Where the Skill is available, from the surfaces list in the bundle’s SKILL.md, for example slack. An empty list means everywhere.

updated_timedatetimeOptionalRead-only
When the Skill was last updated.
updated_bystringOptionalRead-only
Who last updated the Skill.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error