Authorizations
The format of the key is "Basic <token>" or "Bearer <token>"
Query Parameters
Name of the table
Type of the table
Whether to enable parallel push protection
Whether to refresh if the segment already exists
curl --request POST \
--url https://dev.startree.ai/v2/segments \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form 'contentDisposition={
"type": "<string>",
"parameters": {},
"fileName": "<string>",
"creationDate": "2023-11-07T05:31:56Z",
"modificationDate": "2023-11-07T05:31:56Z",
"readDate": "2023-11-07T05:31:56Z",
"size": 123
}' \
--form 'entity={}' \
--form 'headers={}' \
--form 'mediaType={
"type": "<string>",
"subtype": "<string>",
"parameters": {},
"wildcardType": true,
"wildcardSubtype": true
}' \
--form 'messageBodyWorkers={}' \
--form 'parent={
"contentDisposition": {
"type": "<string>",
"parameters": {},
"fileName": "<string>",
"creationDate": "2023-11-07T05:31:56Z",
"modificationDate": "2023-11-07T05:31:56Z",
"readDate": "2023-11-07T05:31:56Z",
"size": 123
},
"entity": {},
"headers": {},
"mediaType": {
"type": "<string>",
"subtype": "<string>",
"parameters": {},
"wildcardType": true,
"wildcardSubtype": true
},
"messageBodyWorkers": {},
"parent": {},
"providers": {},
"bodyParts": [
{
"contentDisposition": {
"type": "<any>",
"parameters": "<any>",
"fileName": "<any>",
"creationDate": "<any>",
"modificationDate": "<any>",
"readDate": "<any>",
"size": "<any>"
},
"entity": {},
"headers": {},
"mediaType": {
"type": "<any>",
"subtype": "<any>",
"parameters": "<any>",
"wildcardType": "<any>",
"wildcardSubtype": "<any>"
},
"messageBodyWorkers": {},
"parent": {},
"providers": {},
"parameterizedHeaders": {}
}
],
"parameterizedHeaders": {}
}' \
--form 'providers={}' \
--form 'bodyParts={
"contentDisposition": {
"type": "<any>",
"parameters": "<any>",
"fileName": "<any>",
"creationDate": "<any>",
"modificationDate": "<any>",
"readDate": "<any>",
"size": "<any>"
},
"entity": {},
"headers": {},
"mediaType": {
"type": "<any>",
"subtype": "<any>",
"parameters": "<any>",
"wildcardType": "<any>",
"wildcardSubtype": "<any>"
},
"messageBodyWorkers": {},
"parent": {},
"providers": {},
"parameterizedHeaders": {}
}' \
--form 'fields={}' \
--form 'parameterizedHeaders={}'
Upload a segment as binary
curl --request POST \
--url https://dev.startree.ai/v2/segments \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form 'contentDisposition={
"type": "<string>",
"parameters": {},
"fileName": "<string>",
"creationDate": "2023-11-07T05:31:56Z",
"modificationDate": "2023-11-07T05:31:56Z",
"readDate": "2023-11-07T05:31:56Z",
"size": 123
}' \
--form 'entity={}' \
--form 'headers={}' \
--form 'mediaType={
"type": "<string>",
"subtype": "<string>",
"parameters": {},
"wildcardType": true,
"wildcardSubtype": true
}' \
--form 'messageBodyWorkers={}' \
--form 'parent={
"contentDisposition": {
"type": "<string>",
"parameters": {},
"fileName": "<string>",
"creationDate": "2023-11-07T05:31:56Z",
"modificationDate": "2023-11-07T05:31:56Z",
"readDate": "2023-11-07T05:31:56Z",
"size": 123
},
"entity": {},
"headers": {},
"mediaType": {
"type": "<string>",
"subtype": "<string>",
"parameters": {},
"wildcardType": true,
"wildcardSubtype": true
},
"messageBodyWorkers": {},
"parent": {},
"providers": {},
"bodyParts": [
{
"contentDisposition": {
"type": "<any>",
"parameters": "<any>",
"fileName": "<any>",
"creationDate": "<any>",
"modificationDate": "<any>",
"readDate": "<any>",
"size": "<any>"
},
"entity": {},
"headers": {},
"mediaType": {
"type": "<any>",
"subtype": "<any>",
"parameters": "<any>",
"wildcardType": "<any>",
"wildcardSubtype": "<any>"
},
"messageBodyWorkers": {},
"parent": {},
"providers": {},
"parameterizedHeaders": {}
}
],
"parameterizedHeaders": {}
}' \
--form 'providers={}' \
--form 'bodyParts={
"contentDisposition": {
"type": "<any>",
"parameters": "<any>",
"fileName": "<any>",
"creationDate": "<any>",
"modificationDate": "<any>",
"readDate": "<any>",
"size": "<any>"
},
"entity": {},
"headers": {},
"mediaType": {
"type": "<any>",
"subtype": "<any>",
"parameters": "<any>",
"wildcardType": "<any>",
"wildcardSubtype": "<any>"
},
"messageBodyWorkers": {},
"parent": {},
"providers": {},
"parameterizedHeaders": {}
}' \
--form 'fields={}' \
--form 'parameterizedHeaders={}'
The format of the key is "Basic <token>" or "Bearer <token>"
Name of the table
Type of the table
Whether to enable parallel push protection
Whether to refresh if the segment already exists
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?