Contexts

Get context kinds

GET
/api/v2/projects/{projectKey}/context-kinds

Get all context kinds for a given project.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projectKey*string

The project key

Formatstring

Query Parameters

expand?string

A comma-separated list of properties that can reveal additional information in the response. Options: environmentObservations.

Formatstring

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/projects/string/context-kinds"
{  "items": [    {      "key": "organization-key-123abc",      "name": "Organization",      "description": "An example context kind, to enable targeting based on organization",      "version": 4,      "creationDate": "1668530155141",      "lastModified": "1670341705251",      "lastSeen": "1671563538193",      "environmentObservations": [        {          "environmentKey": "production",          "lastSeen": "1671563538193"        }      ],      "createdFrom": "auto-add",      "hideInTargeting": false,      "archived": false,      "_links": {        "property1": {          "href": "string",          "type": "string"        },        "property2": {          "href": "string",          "type": "string"        }      }    }  ],  "_links": {    "property1": {      "href": "string",      "type": "string"    },    "property2": {      "href": "string",      "type": "string"    }  }}