Overview
Resources are updated as part of the skill update workflow using theskills.update endpoint. You can add new resources, modify existing ones, or delete resources that are no longer needed.
Updating Resources
Theskills.update endpoint accepts a resources array where you can specify changes:
Input Schema
The UUID of the skill containing the resources to update
Array of resource operations (add, update, or delete)
Operations
Add New Resources
Include resource objects without anid field:
Update Existing Resources
Include theid field with updated content:
Delete Resources
Setdelete: true with the resource id:
Complete Example
Mention Re-validation
When you update resource content that contains skill mentions:- Validation - All
[[skill-name]]mentions are validated against accessible skills - Link Sync - The knowledge graph links are automatically updated
- Rendering - Updated content is re-rendered with clickable mention links
- Error Handling - If mentions are invalid, the update fails and no changes are made
Example with Mentions
Automatic Link Sync
When resources are updated:Graph Update
Old graph links from this resource are removed and new links are created for the updated mentions
Partial Updates
If you only include some resources in the update, other resources remain unchanged:Error Handling
BAD_REQUEST
Returned when:
- Mention syntax is malformed
- Referenced skills don’t exist or aren’t accessible
- Duplicate resource paths within the same skill
FORBIDDEN
Returned when:
- User doesn’t have write access to the skill’s vault
- Attempting to reference skills from inaccessible vaults
NOT_FOUND
Returned when:
- The skill ID doesn’t exist
- The resource ID doesn’t exist (for updates/deletes)
Access Control
To update resources:- User must have write access to the skill’s vault
- Referenced skills must be in accessible vaults (same vault or vaults user has read access to)
- Resources cannot reference skills from inaccessible vaults
Response
The endpoint returns the complete updated skill object with all resources (including the updatedrenderedContent):
Related Endpoints
skills.update- Main endpoint for updating resourcesskills.getById- Get a skill with all its resourcesresources.getById- Retrieve a specific resourceresources.create- Create resources with new skills