cURL
curl --request PATCH \ --url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/settings/user-data \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "collectUserDetails": "DO_NOT_COLLECT", "collectName": false, "collectPhone": false } '
200
Success
{ "success": true, "message": "Updated user-data settings of the chatbot successfully", "data": {} }
Update user-data settings of the chatbot
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Id of the chatbot
Request body to update user-data settings of the chatbot
Request Body
Options whether to collect user details or not
MANDATORY
OPTIONAL
DO_NOT_COLLECT
Indicates whether to collect user name or not
Indicates whether to collect user phone number or not
OK
Success Response
Indicates whether this is success response or error response
Overall message regarding the operation performed
Data returned from the server
Was this page helpful?