Portfolio

Reverse a completed import

POST/portfolio/bulk-import/{guid}/reverse

Queues an asynchronous job to roll back all records created by the specified import. The original import must be in a terminal state (not queued or processing) and must not have already been reversed. Returns 202 with the reversal job's GUID for status polling.

Path parameters

  • guidstringRequired#

Request body

application/json, optional

  • reversal_reasonstring#
{
  "reversal_reason": "string"
}

Responses

200
202

Examples

curl -X POST https://your-org-domain/kong/core/api/v2/portfolio/bulk-import/{guid}/reverse\
  -H "Authorization: Bearer $HELM_API_KEY"\
  -H "Content-Type: application/json"\
  -d '{
  "reversal_reason": "string"
}'