563848e0ecc0
Retrieve a single permission by its ID
Returns the permission record identified by {id}. Use this when you already have a specific permission id (obtained from POST /permissions or GET /permissions) and need its full details; for browsing the full catalog, use GET /permissions instead.
Preconditions: the caller must be authenticated and hold the READ_PERMISSION permission for the tenant.
On success, returns the matching permission (id, resource, action, description); createdAt and updatedAt are always null in the current implementation. Returns 404 when no permission with that id exists for the tenant.
Path parameters
Server-assigned identifier of the permission to retrieve. Treat as an opaque string; pass back exactly the id value returned by GET /permissions or POST /permissions.
Headers
Tenant identifier that scopes the lookup to a specific tenant's permission catalog.
Response
The permission matching the given id, including its resource, action, and description. Note: createdAt and updatedAt are always null in the current implementation.
Example response
{
"id": "perm-123-456-789",
"resource": "user",
"action": "read",
"description": "Allows reading user profiles",
"createdAt": "2022-03-10T12:15:50-04:00",
"updatedAt": "2022-03-10T12:15:50-04:00"
}