Set the default edit policy for new skills
PUT
/v1/workspaces/{workspaceId}/skill-policy
const url = 'https://shareout.site/v1/workspaces/example/skill-policy';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"default_skill_edit_policy":"owner_only"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://shareout.site/v1/workspaces/example/skill-policy \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "default_skill_edit_policy": "owner_only" }'Workspace owner or admin only. Existing skills keep their own policy.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
Workspace ID or slug.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
default_skill_edit_policy
required
string
Responses
Section titled “Responses”Updated
