Request cancellation of an owned durable evaluation export

POST /api/v1/public/evaluations/{evaluationId}/exports/{jobId}/cancel

POST /api/v1/public/evaluations/{evaluationId}/exports/{jobId}/cancel

OAuth creator only, selected-project evaluation manage access and current entitlement. Jobs remain scoped to organization/project/evaluation/requesting user. Requires the existing durable export lane and worker configuration; disabled lanes fail with 503. Full submitted answers and reviewer/item context are rendered as CSV or JSON by the existing snapshot worker; caller filters and sensitive trace payload selectors are not accepted. Snapshot source changes fail the job rather than mixing data. One active job per organization, bounded rows/bytes, worker lease/retry/cancellation rules and retention apply. Current status reads resume an existing handle without admitting a new job. Terminal cancellation/failure requires a new creation key to start another job; no force-restart operation. Current creator authorization is rechecked on every read and mutation replay. Queued jobs cancel immediately; running jobs return cancel_requested until fenced worker cleanup settles. Completed jobs remain completed.

Operation ID: post_api_v1_public_evaluations_evaluationId_exports_jobId_cancel.

Authentication

Choose a credential. Each row is an accepted alternative; access also depends on current roles, project bindings, and entitlements.

CredentialCarrierOAuth scopes
OAuth2Authorization: Bearerevaluation:write

For OAuth and service-account credentials, send the selected project UUID in x-project-id, including when the header is optional for legacy keys.

Availability

This operation requires the public-api-mutations capability to be enabled for the deployment. Its presence in the contract does not guarantee availability. See operation availability.

Request parameters

NameLocationRequiredType / allowed valuesDescription / constraints
evaluationIdpathYesstringevaluationId path parameter; format: uuid; Pattern constrained; see the downloadable schema.
jobIdpathYesstringjobId path parameter; format: uuid; Pattern constrained; see the downloadable schema.
idempotency-keyheaderYesstringidempotency-key header parameter; Required canonical UUIDv4 or high-entropy base64url idempotency key; minLength: 22; maxLength: 43; Pattern constrained; see the downloadable schema.
x-project-idheaderYesstringx-project-id header parameter; format: uuid; Pattern constrained; see the downloadable schema.

Request body

Body required: yes.

application/json

FieldType / allowed valuesRequired in parentDescription / constraints
$objectYesadditionalProperties: false

Request example

Replace placeholder IDs and environment variables with values from your authorized project. Credentials are expanded into curl's stdin configuration, not its command arguments. Keep shell tracing off and do not log this configuration. For requests with a body, put a payload matching the schema in request-body.txt; form requests use URL-encoded content.

curl --fail-with-body --silent --show-error --config - <<CURL_CONFIG
request = "POST"
header = "Authorization: Bearer ${NEATLOGS_TOKEN}"
header = "idempotency-key: ${IDEMPOTENCY_KEY}"
header = "x-project-id: ${NEATLOGS_PROJECT_ID}"
header = "Content-Type: application/json"
data-binary = "@request-body.txt"
url = "https://app.neatlogs.com/api/v1/public/evaluations/<evaluationId>/exports/<jobId>/cancel"
CURL_CONFIG

Responses

StatusDescriptionContent type
200Creator-owned durable evaluation export; inspect statusapplication/json
400Invalid public API requestapplication/problem+json
401Missing or invalid public API credentialapplication/problem+json
403Public API request is not authorizedapplication/problem+json
404Owned evaluation or export not foundapplication/problem+json
409Evaluation export conflictapplication/problem+json
410Evaluation export expiredapplication/problem+json
413Public API request body too largeapplication/problem+json
415Unsupported public API request bodyapplication/problem+json
429Public API rate limit exceededapplication/problem+json
500Internal server errorapplication/problem+json
503Public API credential, project context, or rate limiting unavailable. Backend is draining; retry after the Retry-After delay.application/problem+json, application/json

200 response fields

Content type: application/json.

FieldType / allowed valuesRequired in parentDescription / constraints
$objectYesadditionalProperties: false
dataobjectYesadditionalProperties: false
data.jobobjectYesadditionalProperties: false
data.job.attemptCountintegerYesminimum: 0; maximum: 9007199254740991
data.job.completedAtstring | nullYes—
data.job.completedAt (anyOf 1)stringYesformat: date-time; Pattern constrained; see the downloadable schema.
data.job.createdAtstringYesformat: date-time; Pattern constrained; see the downloadable schema.
data.job.errorobject | nullYes—
data.job.error (anyOf 1)objectYesadditionalProperties: false
data.job.error (anyOf 1).codestringYesmaxLength: 128
data.job.error (anyOf 1).messagestringYesmaxLength: 2048
data.job.expiresAtstring | nullYes—
data.job.expiresAt (anyOf 1)stringYesformat: date-time; Pattern constrained; see the downloadable schema.
data.job.format"csv" | "json"Yes—
data.job.idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.job.processedCountintegerYesminimum: 0; maximum: 9007199254740991
data.job.responseCountintegerYesminimum: 0; maximum: 9007199254740991
data.job.status"queued" | "running" | "cancel_requested" | "completed" | "failed" | "cancelled"Yes—
data.job.updatedAtstringYesformat: date-time; Pattern constrained; see the downloadable schema.
requestIdstringYesPattern constrained; see the downloadable schema.
successtrueYes—

Response headers

HeaderDescription / constraints
RateLimit-LimitEffective request ceiling for the current window; minimum: 1
RateLimit-RemainingRequests remaining in the current window; minimum: 0
RateLimit-ResetUnix timestamp in seconds when the current window resets; minimum: 0
X-NeatLogs-RateLimit-DegradedWhether bounded emergency enforcement is active; —
X-NeatLogs-RateLimit-LimitEffective request ceiling for the current window; minimum: 1
X-NeatLogs-RateLimit-PolicyApplied pre-authentication or authenticated rate class; —
X-NeatLogs-RateLimit-RemainingRequests remaining in the current window; minimum: 0
X-NeatLogs-RateLimit-Reset-AfterWhole seconds until the current window resets; minimum: 1
X-NeatLogs-RateLimit-VersionNeatLogs rate-limit contract version; —
X-Request-IdServer-owned request correlation identifier; Pattern constrained; see the downloadable schema.

Failures use Problem Details. For exact validation patterns and all response schemas, download the OpenAPI specification.

On this page

neatlogs
neatlogs

Ask neatlogs AI

Answers grounded in the docs

neatlogs

How can I help?

Ask anything about Incidents, Experiments, tracing, or the neatlogs dashboard.