Move or re-role an existing assignment
/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/workspace/assignments/{assignmentId}Authentication
Bearer Token
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
Path Parameters
assignmentIdstring Required Request body
application/json
nodeIdstring Optional roleIdstring Optional effectiveFromstring Optional When access begins; null clears it so access starts now
effectiveTostring Optional When access ends; null clears it so access never expires
Responses
application/json
data *WorkspaceAssignmentResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X PATCH "https://auth.canopy-io.com/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/workspace/assignments/value" \ -H "Authorization: Bearer $CANOPY_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "nodeId": "string", "roleId": "string", "effectiveFrom": "string", "effectiveTo": "string" }'
{ "data": { "id": "string", "identity_id": "string", "application_node_id": "string", "role_id": "string", "effective_from": "2026-04-20T12:00:00.000Z", "effective_to": "2026-04-20T12:00:00.000Z", "created_at": "2026-04-20T12:00:00.000Z" } }
Tell us how we can improve this guide.