Update an eval scenario
Replaces only supplied mutable fields. The complete encoded request body is limited to 327680 bytes and assertions to 262144 encoded bytes. slug, source, generation_job_id, and position are immutable. Semantic no-ops return the unchanged ETag.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidscenario_id*stringuuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
1 <= propertieslabel?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.
1 <= length <= 20000scenario_text?stringLimited to 20000 UTF-8 encoded bytes; maxLength is a generator hint.
1 <= length <= 20000assertions?|Nullable assertion object limited to 262144 encoded bytes when supplied.
Updated or unchanged scenario.
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 PATCH 'https://api.kejue.co/v1/eval-suites/497f6eca-6276-4993-bfeb-53cbbbba6f08/scenarios/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}