Update

Updates an extraction schema by name or ID.

Authentication

AuthorizationBearer
Bearer authentication header of the form `Bearer <PHONIC_API_KEY>`. Manage your API keys [here](https://phonic.co/api-keys).

Path parameters

nameOrIdstringRequired
The name or the ID of the extraction schema to update.

Query parameters

projectstringOptionalDefaults to main

The name of the project containing the extraction schema. Only used when nameOrId is a name.

Request

This endpoint expects an object.
namestringOptional
A name for the extraction schema.
promptstringOptional
Instructions for how to extract data from conversations.
fieldslist of objectsOptional
Array of field definitions.

Response

Success response
successboolean
Whether the extraction schema was updated successfully.

Errors