v1

latestOpenAPI 3.1.02026-07-13154170539.0 KB
Teams & Resource Access

Update Resource Access

Update an existing resource access grant (change role).

This is a more atomic alternative to revoking and re-granting access. Preserves the access ID and created_at timestamp.

User must have write permission on the resource.

Note: For org-level permissions, use OrganizationMember roles instead.

:param request_fastapi: FastAPI request object. :param resource_type: Type of resource ("project"). :param resource_id: Resource ID. :param access_id: ResourceAccess ID to update. :param update_data: Update data containing new role_id. :param session: Database session. :return: Updated access entry.

patch/v0/resources/{resource_type}/{resource_id}/access/{access_id}

Path parameters

resource_typestring required
resource_idinteger required
access_idinteger required

Request body

role_idinteger required

Response

Successful Response

idinteger required
resource_typestring required
resource_idinteger required
role_idinteger required
role_namestring required
grantee_typestring required
grantee_idstring required
grantee_namestring nullable
created_atstring date-time required