Unpublish a deal
/deals/{id}/actions/unpublishMoves a published deal back to draft so it can be edited, and returns it. Unpublishing a deal that is already a draft returns it unchanged and emits no event. A deal in any other status returns 409 invalid_state with current_state and allowed_states in its details. Emits deal.unpublished and sends no email. POST /deals/{id}/actions/publish undoes it. Use POST /deals/{id}/actions/publish to publish it again.
Path parameters
The deal's id, a uuid. An unknown id, or a deal the token can't see, returns 404.
Query parameters
Validate and run the call without committing it, returning what the real call would return with
meta.dry_runset.
Headers
Makes a retry safe. Send a new UUID for each new request and reuse it only to retry that request; the first response is replayed for 24 hours.
Responses
{
"data": {
"id": "f6071829-3a4b-4c5d-9e6f-8091a2b3c4d5",
"name": "Series B — Acme Robotics",
"status": "published",
"external": false,
"external_id": "CRM-2026-0042",
"summary": "Late-stage growth round in autonomous logistics.",
"description": "<p>Acme Robotics is raising a Series B.</p>",
"currency": "USD",
"min_investment": 25000,
"structure": "direct",
"sub_structure": "equity",
"type_details": {
"sector": "information_technology",
"growthStage": "growth"
},
"sponsor": "Acme Capital",
"show_funding_secured": true,
"allow_questions": false,
"request_further_docs": false,
"available_from": "2026-07-01T00:00:00+00:00",
"available_to": "2026-09-30T23:59:59+00:00",
"transaction_workflow_id": "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d",
"investor_engagement_enabled": true,
"active_tranche_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"drafted_at": "2026-06-15T10:30:00+00:00",
"approval_started_at": "2026-06-16T09:00:00+00:00",
"approved_at": "2026-06-17T09:00:00+00:00",
"published_at": "2026-06-18T09:00:00+00:00",
"rejected_at": null,
"retired_at": null,
"tabs": [
"deal",
"documents",
"video"
],
"image_id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"sponsor_image_id": null,
"video_id": "76979871",
"custom_status_id": null,
"created_at": "2026-06-15T10:30:00+00:00",
"updated_at": "2026-06-18T09:00:00+00:00"
}
}Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
The request conflicts with existing state (error.code = conflict),
e.g. a compliance flow with the requested name already exists.
The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per
problem, or a code documented on the operation.
Examples
curl -X POST https://your-org-domain/kong/core/api/v2/deals/{id}/actions/unpublish\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"