cURL
curl --request PUT \ --url https://api.trillet.ai/v1/api/message-flows/{id}/toggle-autopilot \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>' \ --data '{ "": "<string>" }'
{ "_id": "1234567890abcdef12345678", "workspaceId": "abcdef1234567890abcdef12", "name": "SampleFlow", "description": "Sample description for the flow.", "agent": "0987654321fedcba09876543", "prompt": "You are a helpful assistant.", "initiationMessage": "Hello!", "isActive": true, "autopilot": true, "messageChannel": "SMS", "createdAt": "2025-01-01T12:00:00.000Z", "updatedAt": "2025-01-15T08:30:00.000Z", "__v": 0 }
Toggle the autopilot mode of an existing message flow.