Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Unpublish a Project

Unpublish takes a project offline on one destination. A destination is one place the project is published to, for example www.example.com/campaign. The project stays in Vev. Publish it again to put it back online.

Requirements

  • A project that is online on the destination.
  • An API key with the publish:project scope (see Authentication).
  • Edit access to the project.

Find the destination

List the destinations of the project and find the key of the one to take offline.

curl https://api.vev.design/v2/projects/[projectKey]/destinations \
  --header "x-vev-key: [your-key]"
{
  "success": true,
  "data": [
    { "key": "Xk2pQ8sLm1", "url": "www.example.com/campaign", "type": "vev-cf-standard" }
  ]
}

Unpublish

curl -X POST https://api.vev.design/v2/projects/[projectKey]/destinations/[destinationKey]/unpublish \
  --header "x-vev-key: [your-key]"
{
  "success": true,
  "data": { "key": "Xk2pQ8sLm1", "startedUnpublishAt": 1795689600000 }
}

The answer comes when the unpublish starts. The pages go offline some seconds later.

Put the project back online

Publish the destination again:

curl -X POST "https://api.vev.design/v2/projects/[projectKey]/publish?destinationKeys=[destinationKey]" \
  --header "x-vev-key: [your-key]"

Errors

StatusMessageWhat to do
403No edit access to projectUse a key of a user who can edit the project.
404Destination not foundCheck the destination key. The hosting can also be deleted.
409The project is not online on this destinationNothing to do: the project is already offline, or was never published there.
409This destination does not allow unpublishingThe hosting does not let Vev remove files. Turn on "Unpublish" in the hosting settings, or remove the files on your server.
{
  "success": false,
  "error": {
    "message": "The project is not online on this destination",
    "code": "conflict",
    "errorId": "44b2b5ba-5f03-40c0-a154-093b103dd10d"
  }
}