DELETE/v1/routing/{policy_id}

Delete a routing policy

Delete a routing policy. Requests that name its alias are then refused like any unknown model.

Authentication: Bearer API key in the Authorization header

Path parameters

  • policy_idstringrequired

    The routing policy id.

Responses

  • 200

    The routing policy is deleted.

    Response
    • deletedbooleanrequired
  • 401

    Missing, unknown or revoked API key.

  • 403

    The key is not a provisioning key, or the resource is read-only (tag_read_only, guardrail_read_only).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one.

  • 404

    The resource does not exist or belongs to another organization. An organization without access gets this answer on every route.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one.

Request

curl -X DELETE 'https://api.experientiallabs.ai/v1/routing/00000000-0000-4000-8000-000000000012' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "deleted": true
}

https://api.experientiallabs.ai/v1/routing/00000000-0000-4000-8000-000000000012