{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/cdata/main/json-schema/cdata-service-account-workspace-role-assignment-schema.json", "title": "ServiceAccountWorkspaceRoleAssignment", "description": "A workspace-scoped role assignment for a service account.", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/cdata-service-accounts-api-openapi.yml#/components/schemas/ServiceAccountWorkspaceRoleAssignment", "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Assignment identifier." }, "service_account_id": { "type": "string", "format": "uuid", "description": "The service account this workspace role is assigned to." }, "workspace_id": { "type": "string", "format": "uuid", "description": "The workspace this role is assigned to." }, "role_id": { "type": "string", "format": "uuid", "description": "The role identifier." }, "role_name": { "type": "string", "description": "The name of the role." }, "role_type": { "type": "string", "enum": [ "system_role", "access_role" ], "description": "The type of the role." }, "granted_at": { "type": "string", "format": "date-time", "description": "ISO 8601 UTC." }, "granted_by": { "type": "string", "format": "uuid", "description": "The user who granted the workspace role." } } }