Fields
Fields to be extracted
Create field
POST
https://api.openai.com/v1/create_field
Creates a field to extract
Request body
Template_id Integer Required The id of the folder inside which the field is created
Name String Required The name of the field to create, unique
Type String Required
Defines whether the field is extracted once (General fields
) or for every line (Line fields
)
Desc String The description of the field to create
Format String The kind of field to extract, with their custom formatting. By default "text". For all the field formats, please refer to this page.
Position Integer The field position in the output, relative to the other fields. Default: appended to the end
Returns
The created field object
Fetching field
GET
https://api.openai.com/v1/fetch_field/{field_id}
Fetches all the informations about a field, using the field_id
Path parameters
Field_id Integer Required The id of the field to fetch
Returns
The field object
Update field
PUT
https://api.openai.com/v1/update_field/{field_id}
Updates a field, using the field
Path parameters
Field_id Integer Required The id of the field to update
Request body
Name String The name of the field to create, unique
Desc String The description of the field to create
Format String The kind of field to extract, with their custom formatting. By default "text". For all the field formats, please refer to this page.
Type String
Defines whether the field is extracted once (General fields
) or for every line (Line fields
)
Position Integer The field position in the output, relative to the other fields. Default: appended to the end
Returns
The field object
Delete field
DELETE
https://api.openai.com/v1/delete_field/{field_id}
Deletes a field, using the field_id
Path parameters
Field_id Integer Required The id of the field to update
Field Object
id
Integer
name
String
The name of the field, unique
desc
String
The description of the field
format
String
The kind of field to extract, with their custom formatting. By default "text".
For all the field formats, please refer to this page.
type
String
Defines whether the field is extracted once (General fields
) or for every line (Line fields
)
position
Integer
The field position in the output, relative to the other fields. Default: appended to the end
Template_id
Integer
The id from the template the field is linked to
Last updated
Was this helpful?