Contexts

Create or update context kind

PUT
/api/v2/projects/{projectKey}/context-kinds/{key}

Create or update a context kind by key. Only the included fields will be updated.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projectKey*string

The project key

Formatstring
key*string

The context kind key

Formatstring

Request Body

application/json

name*string

The context kind name

description?string

The context kind description

hideInTargeting?boolean

Alias for archived.

archived?boolean

Whether the context kind is archived. Archived context kinds are unavailable for targeting.

version?integer

The context kind version. If not specified when the context kind is created, defaults to 1.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/v2/projects/string/context-kinds/string" \  -H "Content-Type: application/json" \  -d '{    "name": "organization"  }'
{  "status": "success",  "_links": {    "property1": {      "href": "string",      "type": "string"    },    "property2": {      "href": "string",      "type": "string"    }  }}