Extraction objects
Update an extraction object
Permission
extraction-objects:updateAuthenticationPATCH
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.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
Properties
1 <= propertiesname?stringLength
1 <= length <= 120description?|Null or a blank string clears the description.
Length
length <= 2000fields?array<|||||>Items
1 <= items <= 100Updated object, or the unchanged object for a semantic no-op.
application/json- response
id*stringFormat
uuidname*stringdescription*string|nullfields*array<>Items
1 <= items <= 100archived_at*|Format
date-timecreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timecurl -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"}