space

Get space permissions

Returns all permissions the authenticated user has within the given space. The user must be a member of that space. Includes both permissions assigned directly to the user and those inherited through group membership. Each permission entry may be scoped to the whole space, a specific location, or a specific camera. See the Spaces section for the full list of permission slugs and scoping rules.

get/spaces/{space_id}/permissions/

Request

  • Base URL
    https://api.angelcam.com/v1
  • Auth
    • OAuth 2
      Authorization codehttps://my.angelcam.com/oauth/authorize/, token URL https://my.angelcam.com/oauth/token/
      PasswordToken URL https://api.angelcam.com/oauth/token/
      Scopesspace_permissions_access
    • or API key in header Authorization
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

space_idinteger required

ID of the space.

Response

Permissions for the given space.

Example response

{
  "assignments": [
    {
      "permission": "camera.view",
      "location_id": 12,
      "camera_id": 345
    },
    {
      "permission": "location.access",
      "location_id": 12,
      "camera_id": null
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.