Team Hierarchies

Use these operations to interact with team hierarchies in Cortex.

Required permissions

Your API key must have the Edit entities permission.

Operations

Retrieve team relationships

get
Authorizations
Responses
200

Successfully found team relationships

application/json
get
/api/v1/teams/relationships
GET /api/v1/teams/relationships HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "edges": [
    {
      "childTeamTag": "text",
      "parentTeamTag": "text",
      "provider": "WORKDAY"
    }
  ]
}

Replace all relationships

put
Authorizations
Query parameters
replacebooleanRequired

Supports only replace=true right now

Default: falseExample: true
Body
Responses
200

Successfully created team relationships

application/json
put
/api/v1/teams/relationships
PUT /api/v1/teams/relationships?replace=false HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "edges": [
    {
      "childTeamTag": "text",
      "parentTeamTag": "text"
    }
  ]
}
{
  "edges": [
    {
      "childTeamTag": "text",
      "parentTeamTag": "text",
      "provider": "WORKDAY"
    }
  ]
}

Last updated

Was this helpful?