Unpublish
View as MarkdownPOST
/v1/publications/{id}/unpublishQueues a run that takes every published document down at the destination (deletes the file, sets the post back to draft or trashes it, or notifies, per connector).
docs:writeCannot be undone
curl -X POST "https://api.lydie.co/v1/publications/01JCQ3V5MZ8G4ZK2X7T9R6N1PB/unpublish" \
-H "Authorization: Bearer $LYDIE_TOKEN"Path parameters
Response
- runPublicationRun
A run and its log.
Show 15 fieldsHide fields
{
"run": {
"id": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"publicationId": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"action": "publish",
"trigger": "manual",
"options": {},
"status": "queued",
"attempt": -9007199254740991,
"runAt": "2026-11-12T09:30:00.000Z",
"steps": [
{
"at": "2026-11-12T09:30:00.000Z",
"step": "string",
"status": "ok",
"documentId": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"ms": 0,
"detail": {}
}
],
"summary": null,
"error": null,
"requestedBy": "string",
"createdAt": "2026-11-12T09:30:00.000Z",
"startedAt": null,
"finishedAt": null
}
}Errors use one envelope for every endpoint. See Errors and versions.