POST
/
rest
/
configs
curl --request POST \
  --url https://copilotz.com/rest/configs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "AI_CHAT_PROVIDER",
  "value": {
    "provider": "openai",
    "model": "gpt-4o"
  },
  "owner": 1,
  "ownerType": "copilotz"
}'
{
  "name": "AI_CHAT_PROVIDER",
  "value": {
    "provider": "openai",
    "model": "gpt-4o"
  },
  "owner": 1,
  "ownerType": "copilotz"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request payload for creating or updating a configuration.

Response

200 - application/json

Successful response

Response containing configuration details.