Removes a rule from the context

DELETE /v1/{contextId}/rules/{ruleId}

Removes a rule from the context

Path parameters

  • contextId string Required

    The parent context ID, for example, "contextID1/rules/{rule_id}/versions"

  • ruleId string Required

    The rule ID, for example, "{context_id}/rules/rule1/versions"

Responses

  • OK

  • default application/json

    Default error response

    Hide response attributes Show response attributes object
    • code integer(int32)

      The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

    • message string

      A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

    • details array[object]

      A list of messages that carry the error details. There is a common set of message types for APIs to use.

      Hide details attributes Show details attributes object
DELETE /v1/{contextId}/rules/{ruleId}
curl \
 --request DELETE https://api.brease.run/v1/{contextId}/rules/{ruleId}
Response examples (default)
{
  "code": 42,
  "message": "string",
  "details": [
    {
      "@type": "string"
    }
  ]
}