cURL
curl --request PUT \ --url https://copilotz.com/rest/configs/{id} \ --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.
Successful response
Response containing configuration details.