Deployment Settings
Update deployment settings.
Changed onUpdates a single deployment section for an agent. The section path parameter identifies which section to update (embed, live_chat, ai_assistant, instant_viewer, or sge). Only include the fields you want to change — omitted fields retain their current values. Settings restricted by your plan are silently ignored.
patch/api/v1/projects/{projectId}/deployment/{section}
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
Example:1
The unique agent identifier.
section'embed' | 'live_chat' | 'ai_assistant' | 'instant_viewer' | 'sge' required
Example:embed
Deployment section to update.
Request body
Example request
{
"width": 100,
"widthUnit": "%",
"height": 500,
"heightUnit": "px",
"heightType": "fixed",
"defaultButtonText": "Ask AI",
"defaultButtonColor": "#7367f0",
"isUsingDefaultButton": true,
"autoStartConversation": true,
"position": "right",
"chatbotType": "compact",
"iconSize": "small",
"customSearchParameter": "q",
"mobileFontSize": true
}Response
Deployment settings updated — returns the full settings object for all sections
Example response
{
"status": "success",
"data": {
"embed": {
"width": 100,
"widthUnit": "%",
"height": 500,
"heightUnit": "px",
"heightType": "fixed",
"mobileFontSize": true
},
"live_chat": {
"width": 100,
"widthUnit": "%",
"height": 500,
"heightUnit": "px",
"heightType": "fixed",
"mobileFontSize": true,
"position": "right",
"chatbotType": "compact",
"iconSize": "small",
"autoStartConversation": true
},
"ai_assistant": {
"mobileFontSize": true,
"defaultButtonText": "Ask AI",
"defaultButtonColor": "#7367f0",
"isUsingDefaultButton": true,
"chatbotType": "compact"
},
"instant_viewer": {
"mobileFontSize": true,
"defaultButtonText": "Ask AI",
"defaultButtonColor": "#7367f0",
"isUsingDefaultButton": true,
"chatbotType": "window"
},
"sge": {
"mobileFontSize": true,
"height": 500,
"heightUnit": "px",
"heightType": "fixed",
"customSearchParameter": "q"
}
}
}Changes
- info
endpoint added
- info