Update extraction schema. Optionally create a new version.
Python
import requests url = "https://www.datalab.to/api/v1/extraction_schemas/{schema_id}" payload = { "name": "<string>", "description": "<string>", "schema_json": {}, "archived": True, "create_new_version": False } headers = { "X-API-Key": "<api-key>", "Content-Type": "application/json" } response = requests.put(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
If true, creates a new version instead of updating the current one
Successful Response
Was this page helpful?