Creates or updates a target's pin to an immutable skills revision and selected members for new conversations.
PUT
/v1/m/skills/assignments/{id}
const url = 'https://example.com/v1/m/skills/assignments/example';const options = { method: 'PUT', headers: { 'If-Match': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"approve_active_content":true,"members":["example"],"pack_revision_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","target_id":"example","target_kind":"workspace"}'};
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://example.com/v1/m/skills/assignments/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'If-Match: example' \ --data '{ "approve_active_content": true, "members": [ "example" ], "pack_revision_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "target_id": "example", "target_kind": "workspace" }'Creates or updates a target’s pin to an immutable skills revision and selected members for new conversations.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” id
required
string
Path parameter id.
Header Parameters
Section titled “ Header Parameters ” If-Match
required
string
Positive recorded version, optionally enclosed in double quotes.
X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ” Media type application/json
object
approve_active_content
Required when a selected member carries hooks, shell interpolation, a tool pre-approval or a plugin, settings or hooks file. Revisions list these as active_content; the approval is recorded in the audit event.
boolean
members
Omitted, null, or empty selects all members of the pinned revision.
Array<string> | null
pack_revision_id
required
string format: uuid
target_id
required
Public ppf_ profile reference for a profile target; canonical UUID for every other target kind.
string
target_kind
required
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}Bad request
Media type application/json
object
Example generated
{}Unauthenticated
Media type application/json
object
Example generated
{}Forbidden
Media type application/json
object
Example generated
{}Not found
Media type application/json
object
Example generated
{}Conflict / setup required
Media type application/json
object
Example generated
{}Rate limited
Media type application/json
object
Example generated
{}