Permissions

List all permissions for a team

get
Path parameters
organizationIdstringRequired

The id of the organization to find teams within

teamIdstringRequired

The id of the team

Query parameters
offsetinteger · int32Optional

The offset into queried items to return

limitinteger · int32 · max: 100Optional

How many items to return at one time (max 100)

Responses
200

A paged array of team permissions

application/json
get
/v1/identity/organizations/{organizationId}/teams/{teamId}/permissions
GET /v1/identity/organizations/{organizationId}/teams/{teamId}/permissions HTTP/1.1
Host: localhost:3050
Accept: */*
{
  "teamPermissions": [
    {
      "id": "text",
      "projectId": "text",
      "permission": {
        "resource": "text",
        "verb": "read"
      }
    }
  ],
  "totalResults": 1,
  "offset": 1,
  "limit": 1
}

Create a team permission

post
Path parameters
organizationIdstringRequired

The id of the organization to find teams within

teamIdstringRequired

The id of the team

Body
projectIdstringRequired
Responses
200

Expected response to a valid request

application/json
post
/v1/identity/organizations/{organizationId}/teams/{teamId}/permissions
POST /v1/identity/organizations/{organizationId}/teams/{teamId}/permissions HTTP/1.1
Host: localhost:3050
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "projectId": "text",
  "permission": {
    "resource": "text",
    "verb": "read"
  }
}
{
  "id": "text",
  "projectId": "text",
  "permission": {
    "resource": "text",
    "verb": "read"
  }
}

Delete a team permission

delete
Path parameters
organizationIdstringRequired

The id of the organization to find teams within

teamIdstringRequired

The id of the team

permissionIdstringRequired

The id of the permission

Responses
delete
/v1/identity/organizations/{organizationId}/teams/{teamId}/permissions/{permissionId}
DELETE /v1/identity/organizations/{organizationId}/teams/{teamId}/permissions/{permissionId} HTTP/1.1
Host: localhost:3050
Accept: */*

No content

Was this helpful?