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.

name
string
required

Name of the configuration.

Example:

"AI_CHAT_PROVIDER"

value
object
required

Configuration values.

owner
integer
required

ID of the owner entity (e.g., Copilotz agent ID).

Example:

1

ownerType
string
required

Type of the owner entity.

Example:

"copilotz"

Response

200 - application/json
Successful response

Response containing configuration details.

name
string
required

Name of the configuration.

Example:

"AI_CHAT_PROVIDER"

value
object
required

Configuration values.

owner
integer
required

ID of the owner entity (e.g., Copilotz agent ID).

Example:

1

ownerType
string
required

Type of the owner entity.

Example:

"copilotz"