Skip to Content
SeyloDocs
API referencePR previews

Delete a PR preview

POST
/api/v1/previews.delete

Deletes a PR preview's service with its containers and volumes. The next push to the PR creates it again while previews are on.

Needs services.update on the service (a grant on its project covers it). Available to MCP clients and the assistant, after a person approves the call.

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body
serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$
previewId*string

Panel-issued id.

Match^[a-z0-9]{16}$

Response Body

Success.

application/json
  1. response
Example Request
curl -X POST 'https://example.com/api/v1/previews.delete' \  -H 'Content-Type: application/json' \  -d '{  "serviceId": "string",  "previewId": "string"}'
Example Response
{}