Skip to Content
Eval suites

Update an eval suite

Permissioneval-suites:updateAdd-onEvaluationsAuthentication
PATCH
/eval-suites/{id}

Replaces only supplied mutable fields. The complete encoded request body is limited to 1114112 bytes. If-Match is optional but strongly recommended; stale tags return 412 with the current ETag. Semantic no-ops return the unchanged version.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Request Body

application/json
  1. body
Properties1 <= properties
name?string

Limited to 200 UTF-8 encoded bytes; maxLength is a generator hint.

Length1 <= length <= 200
description?|

Limited to 2000 UTF-8 encoded bytes; maxLength is a generator hint.

Lengthlength <= 2000
definition?

Replaces the stored legacy definition; same keys as EvalSuiteCreateRequest.definition. Newly listed personas are mirrored into scenarios; existing scenarios are never removed by this field. The encoded value must be at most 1048576 bytes.

Response Body

Updated or unchanged suite.

application/json
  1. response
id*string
Formatuuid
slug*string
Match^[a-z0-9][a-z0-9_-]{1,63}$
Length2 <= length <= 64
name*string
Length1 <= length <= 200
description*|
Lengthlength <= 2000
version*integer
Formatint64
Range1 <= value
archived_at*|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
definition*

Open JSON object; the encoded value must be at most 1048576 bytes.

Example Request
curl -X PATCH 'https://api.kejue.co/v1/eval-suites/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "slug": "string",  "name": "string",  "description": "string",  "version": 1,  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "definition": {}}