Skip to main content
PUT
/
v1
/
configurations
/
{id}
Update an existing configuration
curl --request PUT \
  --url https://api.honeyhive.ai/v1/configurations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "LLM",
  "provider": "<string>",
  "parameters": {
    "call_type": "chat",
    "model": "<string>",
    "hyperparameters": {},
    "responseFormat": {
      "type": "text"
    },
    "selectedFunctions": [
      {
        "id": "<string>",
        "name": "<string>",
        "description": "<string>",
        "parameters": {}
      }
    ],
    "functionCallParams": "none",
    "forceFunction": {},
    "template": [
      {
        "role": "<string>",
        "content": "<string>"
      }
    ]
  },
  "env": [
    "dev"
  ],
  "tags": [
    "<string>"
  ],
  "user_properties": {}
}
'
{
  "acknowledged": true,
  "modifiedCount": 123,
  "upsertedId": null,
  "upsertedCount": 123,
  "matchedCount": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Configuration ID like 6638187d505c6812e4043f24

Body

application/json
name
string
required
Maximum string length: 200
type
enum<string>
default:LLM
Available options:
LLM,
pipeline
provider
string
Minimum string length: 1
parameters
object
env
enum<string>[]
Available options:
dev,
staging,
prod
tags
string[]
user_properties
object

Response

200 - application/json

Configuration updated successfully

acknowledged
boolean
required
modifiedCount
number
required
upsertedId
null
required
upsertedCount
number
required
matchedCount
number
required