Skip to content

Get Task

POSThttps://portal-prod.rosettalab.top/rosetta-open/task/get

body params

*projectIdlong
Project id which returned by Create Project
*taskIdstring
Task id which provided by callback or returned by List task.
Examples
shell
curl https://portal-prod.rosettalab.top/rosetta-open/task/get \
 -X POST \
 -H "Content-Type: application/json" \
 -H "X-STARDUST-KEY: <X-STARDUST-KEY>" \
 -H "X-TS: <X-TS>" \
 -H "X-SIGN: <X-SIGN>"

response data

statusinteger
ValueDescriptionValueDescription
1Waiting for Distribution2Distributed
3Working4Waiting for Submission
5Pause6Error
7Suspend8Submission Failed
9Complete10Invalid

examples

200
{
"code": 200,
"message": "Succeed",
"data": {
"taskId": "358183635595169792",
"taskParams": {...},
"pointData": null,
"taskNoteDTOList": [...],
"result": {...},
"previousResult": {...},
"appendInfo": {...},
"status": 9,
"qualityStatus": null,
"taskDeadline": null,
"rejectDeadline": null,
"serverTime": "2024-05-17 17:22:21",
"qualityMessages": [...],
"errorMessage": {...},
"workerInfo": null,
"issueTransferConfigs": [...],
"instancePropertyShortcutMappingList": null
},
"date": "2024-05-17 17:22:21",
"requestId": "c597b2ac171593779390810011afb4",
"success": true
}
400
{
"code": 400,
"data": null,
"message": "Invalid Parameter",
"date": "2024-05-17 17:22:21",
"requestId": "c597b2ac171593779390810011afb4",
"success": false
}