Create a new extraction schema for the team.
Python
import requests url = "https://www.datalab.to/api/v1/extraction_schemas" payload = { "name": "<string>", "schema_json": {}, "description": "<string>" } headers = { "X-API-Key": "<api-key>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
{ "id": 123, "schema_id": "<string>", "name": "<string>", "description": "<string>", "schema_json": {}, "version": 123, "archived": true, "created": "2023-11-07T05:31:56Z", "updated": "2023-11-07T05:31:56Z", "version_history": [ "<unknown>" ] }
200
JSON schema for extraction (must contain 'properties' key)
Successful Response
Was this page helpful?