Update Role
Updates an existing role's properties (e.g. iac_managed) without requiring delete and recreate.
Required scopes: auth:roles:edit
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
1Define the timeout, in ms
Request Body
application/json
Disambiguates same-name roles across types; unspecified targets the application role. Changing an existing role's type is not supported.
"ROLE_TYPE_UNSPECIFIED" | "ROLE_TYPE_APPLICATION" | "ROLE_TYPE_TEAM"1 <= length <= 641 <= length <= 64length <= 255Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.ApplicationsService/UpdateRole" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"application": {
"applicationId": "app_prod_myapp",
"name": "My Application",
"slug": "my-application",
"websiteUrl": "https://myapp.example.com",
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z",
"enabledIdps": [
"github",
"discord"
],
"scopes": [
{
"name": "read:users",
"description": "Read access to user data",
"isInternal": true,
"isSensitive": true,
"role": {
"name": "admin",
"iacManaged": true,
"roleType": "ROLE_TYPE_UNSPECIFIED",
"description": "string"
},
"isDelegatable": true,
"isServiceAccountOnly": true,
"isOrgOnly": true,
"iacManaged": true
}
],
"automaticEnrollment": true,
"audience": [
"https://api.example.com"
],
"roles": [
{
"name": "admin",
"iacManaged": true,
"roleType": "ROLE_TYPE_UNSPECIFIED",
"description": "string"
}
],
"supportsScopedRequests": true,
"applicationCustomConfig": {
"jsonSchema": {
"property1": {},
"property2": {}
},
"uiSchema": {
"property1": {},
"property2": {}
}
},
"public": true,
"resourceTypes": [
{
"type": "bucket",
"jsonSchema": {
"property1": {},
"property2": {}
},
"displayTitleField": "title",
"displayDescriptionField": "description",
"iacManaged": true
}
],
"validationCallbackUrl": "https://uploads.example.com/api/auth/validate",
"iacManaged": true,
"supportsTeams": true,
"automaticTeamBinding": true
}
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}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`
xeonr.auth.private.v1.AuditService
AuditService exposes the per-organisation audit trail, the event-type catalog, and Discord webhook management to organisation admins.