Update allow/block rule

Update Allow/Block rule

patch

/workspaces/{workspaceId}/conversation-allowblock-rules/{allowBlockRuleId}

Authorizations
Path parameters
workspaceIdstring · uuidrequired

The workspace ID

Example: b4e02c85-c6d2-4b15-8885-e09671799c61
allowBlockRuleIdstring · uuidrequired
Body
valuestring | nullable
categoryall of | nullable
typeall of | nullable
Responses
curl -L \
  --request PATCH \
  --url 'https://api.bird.com/workspaces/{workspaceId}/conversation-allowblock-rules/{allowBlockRuleId}' \
  --header 'Authorization: Bearer JWT' \
  --header 'Content-Type: application/json'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "workspaceId": "123e4567-e89b-12d3-a456-426614174000",
  "category": "all",
  "value": "text",
  "type": "allow",
  "createdBy": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2025-02-21T18:13:57.217Z",
  "updatedBy": "123e4567-e89b-12d3-a456-426614174000",
  "updatedAt": "2025-02-21T18:13:57.217Z"
}

Examples

curl -X PATCH "https://api.bird.com/workspaces/a1405560-c8d3-4b1a-877d-3f449ad95352/conversation-allowblock-rules" \
-H "Content-Type: application/json" \
-H "Authorization: AccessKey abcd" \
-d '{
  "category": "domain",
  "value": "test.com",
  "type": "reject"
}'

Last updated

Was this helpful?