Renames a provider profile and/or moves it between active and disabled; driver, environment and homes are immutable and retirement has its own route.
const url = 'https://example.com/v1/m/sessions/provider-profiles/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"auth_source":"","display_name":"example","provider_record_ref":"example","session_egress_hosts":["example"],"session_programs":["example"],"session_registries":[{"kind":"npm","scope":"example","secret":"example","url":"example"}],"session_work_grant":{"capabilities":["work.read"],"role":"orchestrator","workspace_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"},"state":"active"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/v1/m/sessions/provider-profiles/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "auth_source": "", "display_name": "example", "provider_record_ref": "example", "session_egress_hosts": [ "example" ], "session_programs": [ "example" ], "session_registries": [ { "kind": "npm", "scope": "example", "secret": "example", "url": "example" } ], "session_work_grant": { "capabilities": [ "work.read" ], "role": "orchestrator", "workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "state": "active" }'Renames a provider profile and/or moves it between active and disabled; driver, environment and homes are immutable and retirement has its own route.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Path parameter ref.
Header Parameters
Section titled “ Header Parameters ”Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ”object
HTTPS hosts a confined session may reach beside its bound provider (a Git host, a module mirror); none by default. Each is admitted only at public addresses, whatever its name resolves to. Declaring hosts needs tenant administration and is recorded in the audit ledger. On PATCH, [] withdraws the declaration and null or omission keeps it.
Installed third-party programs (the tool installer’s program names) put first on each session’s PATH. A launch whose program is not installed is refused 409. Declaring programs needs tenant administration. On PATCH, [] withdraws the declaration and null or omission keeps it.
Npm registries each native session installs from. The token travels in a per-launch npm configuration file, never in the environment or argv, and a confined session’s network reaches the registry hosts. Declaring registries needs tenant administration. On PATCH, [] withdraws the declaration and null or omission keeps it.
object
An npm scope (@name) routed to this registry; empty makes it the default registry, one per profile.
The tenant vault secret (env/…) holding the registry token. Empty sends none.
The registry’s base URL: https, or http on a loopback host.
Responses
Section titled “ Responses ”OK
object
Example generated
{}Bad request
object
Example generated
{}Unauthenticated
object
Example generated
{}Forbidden
object
Example generated
{}Not found
object
Example generated
{}Conflict / setup required
object
Example generated
{}Rate limited
object
Example generated
{}