Create a hypothesis round in a local experiment

POST /api/v1/public/local-experiments/{experimentId}/rounds

POST /api/v1/public/local-experiments/{experimentId}/rounds

Create or trigger local-experiments rounds.

Operation ID: post_api_v1_public_local_experiments_experimentId_rounds.

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
experimentIdpathYesstringexperimentId 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
namestringYesminLength: 1; maxLength: 120
hypothesisstringYesminLength: 1; maxLength: 1000
variantsobjectNoadditionalProperties: false
variants.AobjectYesadditionalProperties: false
variants.A.namestringYesminLength: 1; maxLength: 120
variants.A.changesstringYesminLength: 1; maxLength: 1000
variants.A.sourceRequiredtrueNo—
variants.BobjectYesadditionalProperties: false
variants.B.namestringYesminLength: 1; maxLength: 120
variants.B.changesstringYesminLength: 1; maxLength: 1000
variants.B.sourceRequiredtrueNo—
codeChangeobject | objectNo—
codeChange (anyOf 1)objectYesadditionalProperties: false
codeChange (anyOf 1).baseobjectYesadditionalProperties: false
codeChange (anyOf 1).base.shastringYesminLength: 40; maxLength: 64
codeChange (anyOf 1).base.subjectstringYesminLength: 1; maxLength: 500
codeChange (anyOf 1).base.branchstringNominLength: 1; maxLength: 200
codeChange (anyOf 1).headobjectYesadditionalProperties: false
codeChange (anyOf 1).head.shastringYesminLength: 40; maxLength: 64
codeChange (anyOf 1).head.subjectstringYesminLength: 1; maxLength: 500
codeChange (anyOf 1).head.branchstringNominLength: 1; maxLength: 200
codeChange (anyOf 1).repositoryUrlstringNomaxLength: 200; Pattern constrained; see the downloadable schema.
codeChange (anyOf 1).repositoryobjectNoadditionalProperties: false
codeChange (anyOf 1).repository.hoststringYesmaxLength: 400; Pattern constrained; see the downloadable schema.
codeChange (anyOf 1).repository.ownerstringYesPattern constrained; see the downloadable schema.
codeChange (anyOf 1).repository.namestringYesPattern constrained; see the downloadable schema.
codeChange (anyOf 1).patchstringYesminLength: 1; maxLength: 32768
codeChange (anyOf 2)objectYesadditionalProperties: false
codeChange (anyOf 2).baseobjectYesadditionalProperties: false
codeChange (anyOf 2).base.shastringYesminLength: 40; maxLength: 64
codeChange (anyOf 2).base.subjectstringYesminLength: 1; maxLength: 500
codeChange (anyOf 2).base.branchstringNominLength: 1; maxLength: 200
codeChange (anyOf 2).headobjectYesadditionalProperties: false
codeChange (anyOf 2).head.shastringYesminLength: 40; maxLength: 64
codeChange (anyOf 2).head.subjectstringYesminLength: 1; maxLength: 500
codeChange (anyOf 2).head.branchstringNominLength: 1; maxLength: 200
codeChange (anyOf 2).repositoryUrlstringNomaxLength: 200; Pattern constrained; see the downloadable schema.
codeChange (anyOf 2).repositoryobjectNoadditionalProperties: false
codeChange (anyOf 2).repository.hoststringYesmaxLength: 400; Pattern constrained; see the downloadable schema.
codeChange (anyOf 2).repository.ownerstringYesPattern constrained; see the downloadable schema.
codeChange (anyOf 2).repository.namestringYesPattern constrained; see the downloadable schema.
codeChange (anyOf 2).patchstringYesmaxLength: 32768
codeChange (anyOf 2).filesarray<object>Yes—
codeChange (anyOf 2).files[]objectYesadditionalProperties: false
codeChange (anyOf 2).files[].pathstringYesminLength: 1; maxLength: 400
codeChange (anyOf 2).files[].addedintegerYesminimum: 0; maximum: 9007199254740991
codeChange (anyOf 2).files[].removedintegerYesminimum: 0; maximum: 9007199254740991
codeChange (anyOf 2).files[].includedbooleanYes—
codeChange (anyOf 2).truncatedbooleanYes—
requestKeystringYesformat: uuid; Pattern constrained; see the downloadable schema.

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/local-experiments/<experimentId>/rounds"
CURL_CONFIG

Responses

StatusDescriptionContent type
201Local experiment round createdapplication/json
400Invalid public API requestapplication/problem+json
401Missing or invalid public API credentialapplication/problem+json
403Public API request is not authorizedapplication/problem+json
404Goal, experiment, or saved run not foundapplication/problem+json
409Revision, evidence, or idempotency conflictapplication/problem+json
413Public API request body too largeapplication/problem+json
415Unsupported public API request bodyapplication/problem+json
422Unsupported experiment or grading configurationapplication/problem+json
429Public API rate limit exceededapplication/problem+json
500Internal server errorapplication/problem+json
503Experiment runs unavailable. Backend is draining; retry after the Retry-After delay.application/problem+json, application/json

201 response fields

Content type: application/json.

FieldType / allowed valuesRequired in parentDescription / constraints
$objectYesadditionalProperties: false
dataobjectYesadditionalProperties: false
data.idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.experimentIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.namestringYes—
data.hypothesisstringYes—
data.createdAtstringYes—
data.setupobject | nullNo—
data.setup (anyOf 1)objectYesadditionalProperties: false
data.setup (anyOf 1).gradingDigeststringNoPattern constrained; see the downloadable schema.
data.setup (anyOf 1).detectionDigestsobjectNo—
data.setup (anyOf 1).detectionDigests.*stringNoPattern constrained; see the downloadable schema.
data.setup (anyOf 1).datasetVersionIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.setup (anyOf 1).caseIdsarray<string>YesminItems: 1; maxItems: 100
data.setup (anyOf 1).caseIds[]stringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.setup (anyOf 1).trialsintegerYesminimum: 1; maximum: 10
data.setup (anyOf 1).formVersionIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.setup (anyOf 1).evaluatorIdsarray<string>YesminItems: 1; maxItems: 20
data.setup (anyOf 1).evaluatorIds[]stringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.setup (anyOf 1).detectionIdsarray<string>YesmaxItems: 10
data.setup (anyOf 1).detectionIds[]stringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.setup (anyOf 1).measuresarray<"latency" | "cost" | "tokens" | "detections" | "quality">NomaxItems: 5
data.setup (anyOf 1).measures[]"latency" | "cost" | "tokens" | "detections" | "quality"Yes—
data.setup (anyOf 1).resourcesarray<object>YesmaxItems: 40
data.setup (anyOf 1).resources[]objectYesadditionalProperties: false
data.setup (anyOf 1).resources[].kind"dataset" | "evaluation" | "evaluator" | "detection" | "safety_check"Yes—
data.setup (anyOf 1).resources[].idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.setup (anyOf 1).resources[].revisionstringYesminLength: 1; maxLength: 200
data.setup (anyOf 1).resources[].disposition"created" | "reused"Yes—
data.setup (anyOf 1).resources[].reasonstringYesminLength: 1; maxLength: 500
data.variantsobject | nullNo—
data.variants (anyOf 1)objectYesadditionalProperties: false
data.variants (anyOf 1).AobjectYesadditionalProperties: false
data.variants (anyOf 1).A.namestringYesminLength: 1; maxLength: 120
data.variants (anyOf 1).A.changesstringYesminLength: 1; maxLength: 1000
data.variants (anyOf 1).A.sourceRequiredtrueNo—
data.variants (anyOf 1).BobjectYesadditionalProperties: false
data.variants (anyOf 1).B.namestringYesminLength: 1; maxLength: 120
data.variants (anyOf 1).B.changesstringYesminLength: 1; maxLength: 1000
data.variants (anyOf 1).B.sourceRequiredtrueNo—
data.preparationobjectNoadditionalProperties: false
data.preparation.AobjectNoadditionalProperties: false
data.preparation.A.state"preparing" | "ready" | "failed"Yes—
data.preparation.A.messagestringYesminLength: 1; maxLength: 500
data.preparation.A.sourceobject | object | object | objectNo—
data.preparation.A.source (oneOf 1)objectYesadditionalProperties: false
data.preparation.A.source (oneOf 1).state"captured"Yes—
data.preparation.A.source (oneOf 1).digeststringYesPattern constrained; see the downloadable schema.
data.preparation.A.source (oneOf 1).filesarray<object>YesmaxItems: 25
data.preparation.A.source (oneOf 1).files[]objectYesadditionalProperties: false
data.preparation.A.source (oneOf 1).files[].pathstringYesminLength: 1; maxLength: 400
data.preparation.A.source (oneOf 1).files[].bytesintegerYesminimum: 0; maximum: 9007199254740991
data.preparation.A.source (oneOf 1).files[].absentbooleanYes—
data.preparation.A.source (oneOf 2)objectYesadditionalProperties: false
data.preparation.A.source (oneOf 2).state"partial"Yes—
data.preparation.A.source (oneOf 2).digeststringYesPattern constrained; see the downloadable schema.
data.preparation.A.source (oneOf 2).filesarray<object>YesmaxItems: 25
data.preparation.A.source (oneOf 2).files[]objectYesadditionalProperties: false
data.preparation.A.source (oneOf 2).files[].pathstringYesminLength: 1; maxLength: 400
data.preparation.A.source (oneOf 2).files[].bytesintegerYesminimum: 0; maximum: 9007199254740991
data.preparation.A.source (oneOf 2).files[].absentbooleanYes—
data.preparation.A.source (oneOf 2).omittedarray<object>YesminItems: 1; maxItems: 25
data.preparation.A.source (oneOf 2).omitted[]objectYesadditionalProperties: false
data.preparation.A.source (oneOf 2).omitted[].pathstringYesminLength: 1; maxLength: 400
data.preparation.A.source (oneOf 2).omitted[].reasonstringYesminLength: 1; maxLength: 200
data.preparation.A.source (oneOf 3)objectYesadditionalProperties: false
data.preparation.A.source (oneOf 3).state"failed"Yes—
data.preparation.A.source (oneOf 3).reasonstringYes—
data.preparation.A.source (oneOf 4)objectYesadditionalProperties: false
data.preparation.A.source (oneOf 4).state"not_captured"Yes—
data.preparation.A.source (oneOf 4).reasonstringYes—
data.preparation.A.gitobjectNoadditionalProperties: false
data.preparation.A.git.branchstringYesminLength: 1; maxLength: 200
data.preparation.A.git.shastringYesPattern constrained; see the downloadable schema.
data.preparation.A.git.repositoryUrlstringNomaxLength: 200; Pattern constrained; see the downloadable schema.
data.preparation.A.git.repositoryobjectNoadditionalProperties: false
data.preparation.A.git.repository.hoststringYesmaxLength: 400; Pattern constrained; see the downloadable schema.
data.preparation.A.git.repository.ownerstringYesPattern constrained; see the downloadable schema.
data.preparation.A.git.repository.namestringYesPattern constrained; see the downloadable schema.
data.preparation.BobjectNoadditionalProperties: false
data.preparation.B.state"preparing" | "ready" | "failed"Yes—
data.preparation.B.messagestringYesminLength: 1; maxLength: 500
data.preparation.B.sourceobject | object | object | objectNo—
data.preparation.B.source (oneOf 1)objectYesadditionalProperties: false
data.preparation.B.source (oneOf 1).state"captured"Yes—
data.preparation.B.source (oneOf 1).digeststringYesPattern constrained; see the downloadable schema.
data.preparation.B.source (oneOf 1).filesarray<object>YesmaxItems: 25
data.preparation.B.source (oneOf 1).files[]objectYesadditionalProperties: false
data.preparation.B.source (oneOf 1).files[].pathstringYesminLength: 1; maxLength: 400
data.preparation.B.source (oneOf 1).files[].bytesintegerYesminimum: 0; maximum: 9007199254740991
data.preparation.B.source (oneOf 1).files[].absentbooleanYes—
data.preparation.B.source (oneOf 2)objectYesadditionalProperties: false
data.preparation.B.source (oneOf 2).state"partial"Yes—
data.preparation.B.source (oneOf 2).digeststringYesPattern constrained; see the downloadable schema.
data.preparation.B.source (oneOf 2).filesarray<object>YesmaxItems: 25
data.preparation.B.source (oneOf 2).files[]objectYesadditionalProperties: false
data.preparation.B.source (oneOf 2).files[].pathstringYesminLength: 1; maxLength: 400
data.preparation.B.source (oneOf 2).files[].bytesintegerYesminimum: 0; maximum: 9007199254740991
data.preparation.B.source (oneOf 2).files[].absentbooleanYes—
data.preparation.B.source (oneOf 2).omittedarray<object>YesminItems: 1; maxItems: 25
data.preparation.B.source (oneOf 2).omitted[]objectYesadditionalProperties: false
data.preparation.B.source (oneOf 2).omitted[].pathstringYesminLength: 1; maxLength: 400
data.preparation.B.source (oneOf 2).omitted[].reasonstringYesminLength: 1; maxLength: 200
data.preparation.B.source (oneOf 3)objectYesadditionalProperties: false
data.preparation.B.source (oneOf 3).state"failed"Yes—
data.preparation.B.source (oneOf 3).reasonstringYes—
data.preparation.B.source (oneOf 4)objectYesadditionalProperties: false
data.preparation.B.source (oneOf 4).state"not_captured"Yes—
data.preparation.B.source (oneOf 4).reasonstringYes—
data.preparation.B.gitobjectNoadditionalProperties: false
data.preparation.B.git.branchstringYesminLength: 1; maxLength: 200
data.preparation.B.git.shastringYesPattern constrained; see the downloadable schema.
data.preparation.B.git.repositoryUrlstringNomaxLength: 200; Pattern constrained; see the downloadable schema.
data.preparation.B.git.repositoryobjectNoadditionalProperties: false
data.preparation.B.git.repository.hoststringYesmaxLength: 400; Pattern constrained; see the downloadable schema.
data.preparation.B.git.repository.ownerstringYesPattern constrained; see the downloadable schema.
data.preparation.B.git.repository.namestringYesPattern constrained; see the downloadable schema.
data.resultobject | nullNo—
data.result (anyOf 1)objectYesadditionalProperties: false
data.result (anyOf 1).runAstringNoformat: uuid; Pattern constrained; see the downloadable schema.
data.result (anyOf 1).runBstringNoformat: uuid; Pattern constrained; see the downloadable schema.
data.result (anyOf 1).gradingBatchAstringNoformat: uuid; Pattern constrained; see the downloadable schema.
data.result (anyOf 1).gradingBatchBstringNoformat: uuid; Pattern constrained; see the downloadable schema.
data.result (anyOf 1).evidenceDigestsobjectNoadditionalProperties: false
data.result (anyOf 1).evidenceDigests.AstringYesPattern constrained; see the downloadable schema.
data.result (anyOf 1).evidenceDigests.BstringYesPattern constrained; see the downloadable schema.
data.result (anyOf 1).detectionBatchIdsobjectNoadditionalProperties: false
data.result (anyOf 1).detectionBatchIds.AstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.result (anyOf 1).detectionBatchIds.BstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.result (anyOf 1).outcome"goal_met" | "goal_not_met" | "tradeoff" | "incomplete"Yes—
data.result (anyOf 1).verdict"b_wins" | "keep_a" | "tie" | "inconclusive"No—
data.result (anyOf 1).decision"continue" | "finish"Yes—
data.result (anyOf 1).reasonstringYesminLength: 1; maxLength: 2000
data.result (anyOf 1).assessmentSource"coding_agent"No—
data.result (anyOf 1).blockerobjectNoadditionalProperties: false
data.result (anyOf 1).blocker.stage"generation" | "grading" | "detection"Yes—
data.result (anyOf 1).blocker.codestringYesPattern constrained; see the downloadable schema.
data.result (anyOf 1).blocker.messagestringYesminLength: 1; maxLength: 500
data.result (anyOf 1).blocker.requestIdstringNominLength: 1; maxLength: 200
data.result (anyOf 1).blocker.retryAfterSecondsintegerNominimum: 0; maximum: 86400
data.result (anyOf 1).reportobjectNoadditionalProperties: false
data.result (anyOf 1).report.titlestringYesminLength: 1; maxLength: 120
data.result (anyOf 1).report.urlstringYesformat: uri; maxLength: 2000
data.decisionsarray<object>No—
data.decisions[]objectYesadditionalProperties: false
data.decisions[].topic"dataset" | "cases" | "judge" | "questions" | "detection" | "trace_evidence" | "attempt" | "measure" | "goal" | "other"Yes—
data.decisions[].plannedstringYesminLength: 1; maxLength: 500
data.decisions[].chosenstringYesminLength: 1; maxLength: 500
data.decisions[].reasonstringYesminLength: 1; maxLength: 500
data.decisions[].codestringNoPattern constrained; see the downloadable schema.
data.decisions[].givenUpstringNominLength: 1; maxLength: 300
data.decisions[].resourceIdsarray<string>NomaxItems: 10
data.decisions[].resourceIds[]stringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.decisions[].idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.decisions[].roundIdstring | nullYes—
data.decisions[].roundId (anyOf 1)stringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.decisions[].variant"A" | "B" | nullYes—
data.decisions[].variant (anyOf 1)"A" | "B"Yes—
data.decisions[].recordedAtstringYes—
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.