Palbase ai · API
/ai/chats/{chat_id}/goalClear the chat's goal
Clears the chat's goal: no turn of it opens again, and one at work finishes as an ordinary turn. As the server, or as the member it was set as (as); the event ai.goal.updated says it cleared.
Called by a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.
Path
chat_idstring · requiredThe chat's id.Query
asstring · optionalThe member the server acts as: a member of the chat (403 not_a_member), the one the goal was set as (403 not_your_turn). Left out, the server acts as itself.curl -X DELETE "https://<your-ref>.palbase.studio/ai/chats/<chat_id>/goal" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
204Cleared
400The request is malformed, or names what this module does not offer (the error names which)
401No valid credential
403A publishable key or a user's session: everything here is the project's server's, called with the secret key
404No such response, job or provider in this project
503The model service or the database did not answer; retry shortly
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation ClearChatGoal of ai's contract.