Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Create or update environments

POST/v1/private/agent-configs/blueprints/environmentsCreate or update environments

Creates or updates environment-to-blueprint mappings

Request body

application/json
objectAgentConfigEnvUpdate
envsarray of objectrequired

maxItems 100 · minItems 1

Show child attributes

maxItems 100 · minItems 1

Show array items
blueprint_idstring · uuidrequired
created_atstring · date-time
created_bystring
ended_atstring · date-time
env_namestringrequired

maxLength 50 · minLength 0

idstring · uuid
project_idstring · uuid
project_idstring · uuidrequired
Example request
{
  "envs": [
    {
      "blueprint_id": "00000000-0000-0000-0000-000000000000",
      "env_name": "string"
    }
  ],
  "project_id": "00000000-0000-0000-0000-000000000000"
}

Responses

204Environments updated
401Unauthorizedapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
404Not Foundapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu