Palbase ai · API
/ai/chats/{chat_id}/executionUpdate a chat session's auto-failover policy or default model/effort
Server-only update for auto_failover policy or default model/effort without incrementing target_generation or triggering a teleport.
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.Request body
auto_failoverobject · optionalmodelstring · optionaleffortstring · optionalcurl -X PATCH "https://<your-ref>.palbase.studio/ai/chats/<chat_id>/execution" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"auto_failover":{"after_offline_seconds":5,"to":{"compute":{"kind":"serverless"},"executor":{"kind":"palbase"}}},"model":"string","effort":"string"}'Responses
200Updated execution state
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
413The body is larger than the route takes
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation PatchChatExecution of ai's contract.