Skip to main content
POST
/
api
/
context
Context Create
curl --request POST \
  --url https://app.apigene.ai/api/context \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "apps": []
}
'
{
  "name": "<string>",
  "description": "<string>",
  "created_by": "<string>",
  "id": "<string>",
  "apps": [],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'

Body

application/json
name
string
required

Name of the context

description
string
required

Description of the context

apps
string[]

List of associated apps

Response

Successful Response

name
string
required

Name of the context

description
string
required

Description of the context

created_by
string
required

User who created the context

id
string

Unique identifier for the context

apps
string[]

List of associated apps

created_at
string<date-time>

The date and time when the context was created.

updated_at
string<date-time>

The date and time when the context was last updated.