Skip to main content
DELETE
/
sites
/
{siteId}
/
jobs
/
{jobId}
Cancel a Pending Job
curl --request DELETE \
  --url https://api.altostrat.io/sites/{siteId}/jobs/{jobId} \
  --header 'Authorization: Bearer <token>'
{
  "type": "invalid_request_error",
  "code": "job_already_started",
  "message": "Cannot delete a job that has already started.",
  "doc_url": "https://docs.altostrat.io/errors/job_already_started"
}

Authorizations

Authorization
string
header
required

Authenticate requests by providing a JSON Web Token (JWT) in the Authorization header. Example: Authorization: Bearer <YOUR_JWT>

Path Parameters

siteId
string<uuid>
required

The UUID of the site.

jobId
string<uuid>
required

The UUID of the job to delete.

Response

The job was successfully deleted.