Create an eval scenario
Adds one active scenario to a suite. slug is immutable and unique within the suite. The complete encoded request body is limited to 327680 bytes; assertions is an optional JSON object limited to 262144 encoded bytes and interpreted by the eval worker.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidIdempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255application/json- body
slug*string^[a-z0-9_]{2,64}$2 <= length <= 64label?stringLimited to 200 UTF-8 encoded bytes; maxLength is a generator hint.
length <= 200""persona_text*stringLimited to 20000 UTF-8 encoded bytes; maxLength is a generator hint.
1 <= length <= 20000scenario_text*stringLimited to 20000 UTF-8 encoded bytes; maxLength is a generator hint.
1 <= length <= 20000assertions?|Optional assertion object limited to 262144 encoded bytes.
Scenario created with a strong ETag.
application/json- response
id*stringuuidslug*stringStable stored handle. Historical compatibility rows predate the public create regex, so readers must not infer a character pattern.
1 <= lengthlabel*stringLimited to 200 UTF-8 encoded bytes; maxLength is a generator hint.
length <= 200persona_text*stringLimited to 20000 UTF-8 encoded bytes; maxLength is a generator hint.
length <= 20000scenario_text*stringLimited to 20000 UTF-8 encoded bytes; maxLength is a generator hint.
length <= 20000assertions*|Stored assertion object; scenario mutation inputs are limited to 262144 encoded bytes.
source*string"manual""generated"generation_job_id*|uuidposition*integer0 <= valueversion*integerint641 <= valuearchived_at*|date-timecreated_at*stringdate-timeupdated_at*stringdate-timecurl -X POST 'https://api.kejue.co/v1/eval-suites/497f6eca-6276-4993-bfeb-53cbbbba6f08/scenarios' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "slug": "string", "persona_text": "string", "scenario_text": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "label": "string", "persona_text": "string", "scenario_text": "string", "assertions": {}, "source": "manual", "generation_job_id": "cbb45fb9-5d30-40f9-8e81-176f4e856bb3", "position": 0, "version": 1, "archived_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}