Skip to Content
Extraction objects

Update an extraction object

Permissionextraction-objects:updateAuthentication
PATCH
/extraction-objects/{id}

Replaces any supplied top-level field. Supplying fields replaces the entire ordered schema. Archived objects cannot be changed. If-Match prevents lost updates; a semantic no-op returns the unchanged object and ETag. An object owned by a group (see /v1/groups) returns 409 extraction_object_managed_by_group; change the group's metrics instead.

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
Length1 <= length <= 120
description?|

Null or a blank string clears the description.

Lengthlength <= 2000
fields?array<|||||>
Items1 <= items <= 100

Response Body

Updated object, or the unchanged object for a semantic no-op.

application/json
  1. response
id*string
Formatuuid
name*string
description*string|null
fields*array<>
Items1 <= items <= 100
archived_at*|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.kejue.co/v1/extraction-objects/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "description": "string",  "fields": [    {      "name": "string",      "type": "string",      "description": "string",      "required": true,      "enum_values": [        "string"      ],      "item_type": "string"    }  ],  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}