Relations
post
https://api.annolab.ai
/v1/relation/create
Create Annotation Relation
Examples of how to make a layer create request
Python
import requests
ANNO_LAB_API_KEY = 'XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX'
relation = {
'relationTypeName': 'Coreference',
'projectIdentifier': 'New NER Project',
'schemaName': 'NER'
'successorId': 112,
'predecessorId': 141,
}
headers = {
'Authorization': 'Api-Key '+ANNO_LAB_API_KEY,
}
url = 'https://api.annolab.ai/v1/relation/create'
response = requests.post(url, headers=headers, json=relation)
print(response.json())
Copy link