Datasets
Copy scenarios of a shared dataset
Copy chosen scenarios, a filter or all of a dataset shared with every workspace (SIMLOG-25k) into one of your own datasets, existing or new; a scenario already copied there is skipped. dryRun counts and estimates it
POST
/
api
/
v1
/
dataset-copies
Copy scenarios of a shared dataset
curl --request POST \
--url https://dev.simforge.ai/api/v1/dataset-copies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"scope": {
"kind": "dataset",
"datasetId": "<string>"
},
"target": {
"datasetId": "<string>"
},
"dryRun": true
}
'import requests
url = "https://dev.simforge.ai/api/v1/dataset-copies"
payload = {
"scope": {
"kind": "dataset",
"datasetId": "<string>"
},
"target": { "datasetId": "<string>" },
"dryRun": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
scope: {kind: 'dataset', datasetId: '<string>'},
target: {datasetId: '<string>'},
dryRun: true
})
};
fetch('https://dev.simforge.ai/api/v1/dataset-copies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"dryRun": true,
"scenarios": 1,
"estimateSeconds": 1
}{
"id": "<string>",
"source": {
"id": "<string>",
"name": "<string>"
},
"target": {
"id": "<string>",
"name": "<string>"
},
"scope": "dataset",
"state": "queued",
"progress": {
"total": 1,
"done": 1,
"copied": 1,
"skipped": 1,
"failed": 1,
"estimateSeconds": 1
},
"failures": [
{
"scenarioId": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"message": "<string>",
"subject": "<string>",
"detail": {}
}
],
"error": {
"code": "<string>",
"message": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"finishedAt": "<string>"
}{
"id": "<string>",
"source": {
"id": "<string>",
"name": "<string>"
},
"target": {
"id": "<string>",
"name": "<string>"
},
"scope": "dataset",
"state": "queued",
"progress": {
"total": 1,
"done": 1,
"copied": 1,
"skipped": 1,
"failed": 1,
"estimateSeconds": 1
},
"failures": [
{
"scenarioId": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"message": "<string>",
"subject": "<string>",
"detail": {}
}
],
"error": {
"code": "<string>",
"message": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"finishedAt": "<string>"
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}Authorizations
A sfc_at_… access token from simforge login, or an sfk_… API key. An operation's security lists the scopes the credential must hold.
Body
application/json
⌘I
Copy scenarios of a shared dataset
curl --request POST \
--url https://dev.simforge.ai/api/v1/dataset-copies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"scope": {
"kind": "dataset",
"datasetId": "<string>"
},
"target": {
"datasetId": "<string>"
},
"dryRun": true
}
'import requests
url = "https://dev.simforge.ai/api/v1/dataset-copies"
payload = {
"scope": {
"kind": "dataset",
"datasetId": "<string>"
},
"target": { "datasetId": "<string>" },
"dryRun": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
scope: {kind: 'dataset', datasetId: '<string>'},
target: {datasetId: '<string>'},
dryRun: true
})
};
fetch('https://dev.simforge.ai/api/v1/dataset-copies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"dryRun": true,
"scenarios": 1,
"estimateSeconds": 1
}{
"id": "<string>",
"source": {
"id": "<string>",
"name": "<string>"
},
"target": {
"id": "<string>",
"name": "<string>"
},
"scope": "dataset",
"state": "queued",
"progress": {
"total": 1,
"done": 1,
"copied": 1,
"skipped": 1,
"failed": 1,
"estimateSeconds": 1
},
"failures": [
{
"scenarioId": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"message": "<string>",
"subject": "<string>",
"detail": {}
}
],
"error": {
"code": "<string>",
"message": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"finishedAt": "<string>"
}{
"id": "<string>",
"source": {
"id": "<string>",
"name": "<string>"
},
"target": {
"id": "<string>",
"name": "<string>"
},
"scope": "dataset",
"state": "queued",
"progress": {
"total": 1,
"done": 1,
"copied": 1,
"skipped": 1,
"failed": 1,
"estimateSeconds": 1
},
"failures": [
{
"scenarioId": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"message": "<string>",
"subject": "<string>",
"detail": {}
}
],
"error": {
"code": "<string>",
"message": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"finishedAt": "<string>"
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}