Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Create environment

POST/v1/private/environmentsCreate environment

Create environment

Request body

application/json
objectEnvironment_Write
colorstring

maxLength 20 · minLength 0

descriptionstring

maxLength 500 · minLength 0

idstring · uuid
namestringrequired

maxLength 150 · minLength 0 · pattern ^[A-Za-z0-9_-]+$

positioninteger · int32
Example request
{
  "color": "string",
  "description": "string",
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "position": 0
}

Responses

201Created

Headers

Location
409Conflictapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu