curl -X PATCH "https://api.bird.com/workspaces/a1405560-c8d3-4b1a-877d-3f449ad95352/conversations-antispam-settings" \ -H "Content-Type: application/json" \ -H "Authorization: AccessKey abcd" \ -d '{ "enabled": true }'
Last updated 3 days ago
Update antispam settings
The workspace ID
Antispam settings were updated
const response = await fetch('https://api.bird.com/workspaces/{workspaceId}/conversations-antispam-settings', { method: 'PATCH', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "enabled": false }), }); const data = await response.json();
{ "code": "MalformedRequest", "message": "One or more fields provided in the request body are malformed", "details": { ".name": [ "Property 'name' is missing" ], ".description": [ "Maximum string length is 250" ] } }