cURL
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" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request payload for creating or updating a configuration.
Name of the configuration.
"AI_CHAT_PROVIDER"
Configuration values.
Show child attributes
AI provider name.
"openai"
AI model name.
"gpt-4o"
ID of the owner entity (e.g., Copilotz agent ID).
1
Type of the owner entity.
"copilotz"
Successful response
Response containing configuration details.