Generate an evaluation name and description

POST /api/v1/public/evaluations/generate-metadata

POST /api/v1/public/evaluations/generate-metadata

Create or trigger evaluations generate-metadata.

Operation ID: post_api_v1_public_evaluations_generate_metadata.

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 tier-c-compute 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
x-project-idheaderYesstringx-project-id header parameter; Required service-account or OAuth project selection; format: uuid; Pattern constrained; see the downloadable schema.

Request body

Body required: yes.

application/json

FieldType / allowed valuesRequired in parentDescription / constraints
$objectYesadditionalProperties: false
saved_datasetobjectNoadditionalProperties: false
saved_dataset.dataset_idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
saved_dataset.version_idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
trace_mode"existing" | "future"Yes—
runs_onobjectNo—
runs_on.scope"all" | "types" | "names"Nodefault: all
runs_on.typesarray<string> | nullNo—
runs_on.types (anyOf 1)array<string>Yes—
runs_on.types (anyOf 1)[]stringYes—
runs_on.namesarray<string> | nullNo—
runs_on.names (anyOf 1)array<string>Yes—
runs_on.names (anyOf 1)[]stringYes—
selected_itemsarray<object> | nullNo—
selected_items (anyOf 1)array<object>YesmaxItems: 1000
selected_items (anyOf 1)[]objectYesadditionalProperties: false
selected_items (anyOf 1)[].item_type"trace" | "span"Yes—
selected_items (anyOf 1)[].item_idstringYesminLength: 1; maxLength: 255
selected_items (anyOf 1)[].parent_trace_idstring | nullNo—
selected_items (anyOf 1)[].parent_trace_id (anyOf 1)stringYesminLength: 1; maxLength: 255
selectionobject | nullNo—
selection (anyOf 1)objectYesadditionalProperties: false
selection (anyOf 1).mode"allMatching"Yes—
selection (anyOf 1).target"spans" | "traces"Yes—
selection (anyOf 1).filterany | nullNo—
selection (anyOf 1).filter (anyOf 1)anyYes—
selection (anyOf 1).filter_hashstringNo—
selection (anyOf 1).fromstringNoformat: date-time; Pattern constrained; see the downloadable schema.
selection (anyOf 1).tostringNoformat: date-time; Pattern constrained; see the downloadable schema.
selection (anyOf 1).span_typestringNo—
selection (anyOf 1).span_namestringNo—
selection (anyOf 1).excludedItemIdsarray<string>NomaxItems: 1000
selection (anyOf 1).excludedItemIds[]stringYesminLength: 1; maxLength: 255
selection (anyOf 1).excluded_item_idsarray<string>NomaxItems: 1000
selection (anyOf 1).excluded_item_ids[]stringYesminLength: 1; maxLength: 255
selection (anyOf 1).runs_onanyNo—
selection (anyOf 1).review_countinteger | nullNo—
selection (anyOf 1).review_count (anyOf 1)integerYesminimum: 1; maximum: 1000
selection (anyOf 1).total_countintegerNominimum: 0; maximum: 1000000
selection (anyOf 1).trace_countinteger | nullNo—
selection (anyOf 1).trace_count (anyOf 1)integerYesminimum: 0; maximum: 1000000
selection (anyOf 1).trace_idsarray<string>NomaxItems: 1000
selection (anyOf 1).trace_ids[]stringYesminLength: 1; maxLength: 255
selection (anyOf 1).traceIdsarray<string>NomaxItems: 1000
selection (anyOf 1).traceIds[]stringYesminLength: 1; maxLength: 255
selection (anyOf 1).search_querystringNomaxLength: 4096
selection (anyOf 1).qstringNomaxLength: 4096
selection (anyOf 1).sort"startedAt:asc" | "startedAt:desc" | "random"No—
selection (anyOf 1).sort_seedstringNomaxLength: 255
selection (anyOf 1).random_seedstringNomaxLength: 255
selection_summaryobject | nullNo—
selection_summary (anyOf 1)objectYesadditionalProperties: false
selection_summary (anyOf 1).mode"allMatching"Yes—
selection_summary (anyOf 1).target"spans" | "traces"Yes—
selection_summary (anyOf 1).total_itemsintegerYesminimum: 0; maximum: 9007199254740991
selection_summary (anyOf 1).span_countinteger | nullNo—
selection_summary (anyOf 1).span_count (anyOf 1)integerYesminimum: 0; maximum: 9007199254740991
selection_summary (anyOf 1).trace_countinteger | nullNo—
selection_summary (anyOf 1).trace_count (anyOf 1)integerYesminimum: 0; maximum: 9007199254740991
selection_summary (anyOf 1).runs_onanyNo—
future_tracesobject | nullNo—
future_traces (anyOf 1)objectYes—
future_traces (anyOf 1).filtersarray<object> | nullNo—
future_traces (anyOf 1).filters (anyOf 1)array<object>Yes—
future_traces (anyOf 1).filters (anyOf 1)[]objectYes—
future_traces (anyOf 1).filters (anyOf 1)[].fieldstringYesminLength: 1
future_traces (anyOf 1).filters (anyOf 1)[].operatorstringYesminLength: 1
future_traces (anyOf 1).filters (anyOf 1)[].valueanyYes—
future_traces (anyOf 1).starts_atstring | nullNo—
future_traces (anyOf 1).starts_at (anyOf 1)stringYes—
future_traces (anyOf 1).ends_atstring | nullNo—
future_traces (anyOf 1).ends_at (anyOf 1)stringYes—
future_traces (anyOf 1).batch_schedulestring | nullNo—
future_traces (anyOf 1).batch_schedule (anyOf 1)stringYes—
future_traces (anyOf 1).sampling_rateintegerNodefault: 100; minimum: 1; maximum: 100
future_traces (anyOf 1).daily_limitinteger | nullNo—
future_traces (anyOf 1).daily_limit (anyOf 1)integerYesminimum: 1; maximum: 9007199254740991
future_traces (anyOf 1).send_frequency"immediate" | "batched" | "manual"Nodefault: immediate
questionsarray<object>NomaxItems: 100
questions[]objectYesadditionalProperties: false
questions[].idstringYesminLength: 1; maxLength: 255
questions[].textstringYesminLength: 1; maxLength: 16384
questions[].type"short_answer" | "paragraph" | "multiple_choice" | "checkboxes" | "dropdown" | "linear_scale" | "rating" | "multiple_choice_grid" | "checkbox_grid"Yes—
questions[].descriptionstring | nullNo—
questions[].description (anyOf 1)stringYes—
questions[].requiredbooleanNodefault: true
questions[].configobject | object | object | object | object | object | object | object | objectYes—
questions[].config (anyOf 1)objectYes—
questions[].config (anyOf 1).max_lengthinteger | nullNo—
questions[].config (anyOf 1).max_length (anyOf 1)integerYesminimum: 1; maximum: 9007199254740991
questions[].config (anyOf 2)objectYes—
questions[].config (anyOf 2).max_lengthinteger | nullNo—
questions[].config (anyOf 2).max_length (anyOf 1)integerYesminimum: 1; maximum: 9007199254740991
questions[].config (anyOf 2).min_lengthinteger | nullNo—
questions[].config (anyOf 2).min_length (anyOf 1)integerYesminimum: 1; maximum: 9007199254740991
questions[].config (anyOf 3)objectYes—
questions[].config (anyOf 3).optionsarray<string>YesminItems: 2
questions[].config (anyOf 3).options[]stringYes—
questions[].config (anyOf 3).has_otherbooleanNodefault: false
questions[].config (anyOf 4)objectYes—
questions[].config (anyOf 4).optionsarray<string>YesminItems: 2
questions[].config (anyOf 4).options[]stringYes—
questions[].config (anyOf 4).has_otherbooleanNodefault: false
questions[].config (anyOf 5)objectYes—
questions[].config (anyOf 5).optionsarray<string>YesminItems: 2
questions[].config (anyOf 5).options[]stringYes—
questions[].config (anyOf 6)objectYes—
questions[].config (anyOf 6).min0 | 1Yes—
questions[].config (anyOf 6).min (anyOf 1)0Yes—
questions[].config (anyOf 6).min (anyOf 2)1Yes—
questions[].config (anyOf 6).maxintegerYesminimum: 2; maximum: 10
questions[].config (anyOf 6).min_labelstring | nullNo—
questions[].config (anyOf 6).min_label (anyOf 1)stringYes—
questions[].config (anyOf 6).max_labelstring | nullNo—
questions[].config (anyOf 6).max_label (anyOf 1)stringYes—
questions[].config (anyOf 7)objectYes—
questions[].config (anyOf 7).symbol"star" | "heart" | "thumbs"Yes—
questions[].config (anyOf 7).maxintegerYesminimum: 3; maximum: 10
questions[].config (anyOf 8)objectYes—
questions[].config (anyOf 8).rowsarray<string>YesminItems: 1
questions[].config (anyOf 8).rows[]stringYes—
questions[].config (anyOf 8).columnsarray<string>YesminItems: 2
questions[].config (anyOf 8).columns[]stringYes—
questions[].config (anyOf 8).limit_one_per_columnbooleanNodefault: false
questions[].config (anyOf 9)objectYes—
questions[].config (anyOf 9).*anyNo—
ai_evaluatorsarray<string>NomaxItems: 100
ai_evaluators[]stringYesminLength: 1; maxLength: 255
evaluator_countinteger | nullNo—
evaluator_count (anyOf 1)integerYesminimum: 1; maximum: 1000
durationstring | nullNo—
duration (anyOf 1)stringYesmaxLength: 255

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 = "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/generate-metadata"
CURL_CONFIG

Responses

StatusDescriptionContent type
200Generated evaluation name and description; not persistedapplication/json
400Invalid public API requestapplication/problem+json
401Missing or invalid public API credentialapplication/problem+json
403Public API request is not authorizedapplication/problem+json
404Public API resource not foundapplication/problem+json
409Public API request conflictapplication/problem+json
413Public API request body too largeapplication/problem+json
415Unsupported public API request bodyapplication/problem+json
422Generated metadata is outside the supported contractapplication/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.namestringYesminLength: 1; maxLength: 100
data.descriptionstringYesmaxLength: 16384
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.