Context

Create a new context

Creates a new context in the specified organization.

post/context

Request

  • Base URL
    https://circleci.com/api/v2
  • URL
    https://circleci.com/api/v2/context
  • Auth
    • API key in header Circle-Token
    • or HTTP bearer
    • or HTTP basic
    • or API key in query parameter circle-token

Request body

namestring required

The user defined name of the context.

Example request

{
  "owner": {
    "type": "organization"
  }
}

Response

The new context

idstring uuid required

The unique ID of the context.

namestring required

The user-defined name of the context.

created_atstring date-time required

The date and time the context was created.

Example response

{
  "created_at": "2015-09-21T17:29:21.042Z"
}

Changes

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