Skip to main content
POST
Locks a directive. A locked directive still loads into sessions and template builds; only edits, deletion, resync, and attachment changes are blocked until an org admin unlocks it. Use it to protect a skill that defines critical agent behaviour from accidental edits. Required scope: context:write, and the caller must be an org admin or owner.

Path Parameters

string
required
The directive ID.

Response

object
The updated directive, with locked: true, locked_by_user_id, and locked_at set.