Maxim Logo
Prompts/Config

Update Prompt Config

Update prompt configuration

PUT
/v1/prompts/config

Authorization

x-maxim-api-key<token>

API key for authentication

In: header

Request Body

application/jsonOptional
idRequiredstring
deploymentFieldsRequiredarray<object>
curl -X PUT "https://api.getmaxim.ai/v1/prompts/config" \
  -H "x-maxim-api-key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "string",
    "deploymentFields": [
      {
        "variable": "string",
        "operator": "string",
        "value": null
      }
    ]
  }'

Prompt configuration updated successfully

{
  "data": {
    "id": "string",
    "promptId": "string",
    "config": {
      "property1": null,
      "property2": null
    },
    "createdAt": "string",
    "updatedAt": "string"
  }
}