Update Enrollment
Updates a user's enrollment to assign or remove roles.
Required scopes: auth:enrollments:edit (organisation-wide) or auth:apps:edit:own (applications owned by a team you belong to)
Authorization
BearerAuth JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
length <= 128length <= 128items <= 64Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.ApplicationsService/UpdateEnrollment" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"enrollment": {
"id": "12345",
"userId": "usr_a1b2c3d4e5f6",
"applicationId": "app_prod_myapp",
"createdAt": "2023-01-15T01:30:15.01Z",
"user": {
"userId": "usr_a1b2c3d4e5f6",
"username": "johndoe",
"email": "[email protected]",
"avatarUrl": "https://cdn.example.com/avatars/abc123",
"displayName": "John Doe"
},
"roles": [
{
"name": "admin",
"iacManaged": true,
"roleType": "ROLE_TYPE_UNSPECIFIED",
"description": "string",
"defaultOwnerRole": true,
"displayName": "Administrator",
"teamRank": 0,
"ownerInherited": true
}
],
"iacManaged": true
}
}Update Scope POST
Updates an existing OAuth scope's configuration. **Required scopes:** `auth:scopes:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to) or `auth:apps:manage:self` (a service account, for its own application only; never the auth application)
Update Resource Type POST
Updates an existing resource type's properties (schema, display fields, iac_managed) without requiring delete and recreate. Use update_mask to specify which fields to update. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)