curl --request POST \
--url https://api.getcargo.io/v1/storage/models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"slug": "<string>",
"name": "<string>",
"datasetUuid": "<string>",
"extractorSlug": "<string>",
"config": {},
"schedule": {
"type": "<string>",
"jobId": "<string>"
}
}
'{
"model": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"slug": "<string>",
"name": "<string>",
"datasetUuid": "<string>",
"extractorSlug": "<string>",
"position": {
"x": 123,
"y": 123
},
"config": {},
"schedule": {
"type": "<string>",
"jobId": "<string>"
},
"meta": {},
"columns": [
{
"slug": "<string>",
"type": "string",
"label": "<string>",
"kind": "<string>",
"originalSlug": "<string>",
"properties": [
"<string>"
],
"description": "<string>"
}
],
"additionalColumns": [
{
"slug": "<string>",
"type": "string",
"label": "<string>",
"kind": "<string>",
"properties": [
"<string>"
],
"description": "<string>"
}
],
"idColumnSlug": "<string>",
"uniqueColumns": [
"<unknown>"
],
"unificationType": "<string>",
"titleColumnSlug": "<string>",
"timeColumnSlug": "<string>",
"playsCount": 123,
"segmentsCount": 123,
"isPaused": true,
"lastEmittedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"lastRun": {
"uuid": "<string>",
"status": "pending",
"errorMessage": "<string>",
"createdAt": "<string>",
"finishedAt": "<string>"
}
}
}Create a new model
curl --request POST \
--url https://api.getcargo.io/v1/storage/models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"slug": "<string>",
"name": "<string>",
"datasetUuid": "<string>",
"extractorSlug": "<string>",
"config": {},
"schedule": {
"type": "<string>",
"jobId": "<string>"
}
}
'{
"model": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"slug": "<string>",
"name": "<string>",
"datasetUuid": "<string>",
"extractorSlug": "<string>",
"position": {
"x": 123,
"y": 123
},
"config": {},
"schedule": {
"type": "<string>",
"jobId": "<string>"
},
"meta": {},
"columns": [
{
"slug": "<string>",
"type": "string",
"label": "<string>",
"kind": "<string>",
"originalSlug": "<string>",
"properties": [
"<string>"
],
"description": "<string>"
}
],
"additionalColumns": [
{
"slug": "<string>",
"type": "string",
"label": "<string>",
"kind": "<string>",
"properties": [
"<string>"
],
"description": "<string>"
}
],
"idColumnSlug": "<string>",
"uniqueColumns": [
"<unknown>"
],
"unificationType": "<string>",
"titleColumnSlug": "<string>",
"timeColumnSlug": "<string>",
"playsCount": 123,
"segmentsCount": 123,
"isPaused": true,
"lastEmittedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"lastRun": {
"uuid": "<string>",
"status": "pending",
"errorMessage": "<string>",
"createdAt": "<string>",
"finishedAt": "<string>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request body schema.
Model slug.
Model name.
Dataset identifier.
Extractor identifier.
Model configuration.
Show child attributes
Model schedule configuration.
Show child attributes
Successful response
Created model details.
Show child attributes
Was this page helpful?