Skip to content

Get Sampling Package Record

GEThttps://${domain}/rosetta-open/statistics/samplePackageRecord

We will provide a POST API for retrieving the sample package record.

query params

*campaignIdstring Defaults to a3f8b6e4-9c1d-4d8a-93b2-7f7e8f3a1d5e
Helix Campaign ID
*offsetnumber Defaults to 1
The page number for pagination, starting from 1.
*limitnumber Defaults to 10
The number of records per page, a positive integer.By default, protect the maximum value of the server is 1000.
Examples
shell
curl https://${domain}/rosetta-open/statistics/samplePackageRecord?campaignId=a3f8b6e4-9c1d-4d8a-93b2-7f7e8f3a1d5e&offset=1&limit=10 \
 -X GET \
 -H 'Content-Type: application/json' \
 -H 'X-STARDUST-KEY: <X-STARDUST-KEY>' \
 -H 'X-TS: <X-TS>' \
 -H 'X-SIGN: <X-SIGN>'

responses

2000
{
"code": 2000,
"data": {
"data": [...],
"count": 1
}
}
57008
{
"code": 58002,
"data": null,
"message": "task not exists.",
"date": "2025-03-13 20:00:00",
"requestId": "864b70706a7349ea83e177a49800464f",
"success": false
}

Description of the structure of the samplePackageHistoryList parameter in the response

Parameter NameTypeDescription
samplePackageIdnumberUnique identifier for the sampling package
samplePackageStatusnumberPackage status:
0 - Sampling completed
1 - Sampling in progress
sampleStatusnumberInspection result:
2 - No sampling
3 - Pending
4 - Qualified
5 - Unqualified
sampleProcessnumberFinal action:
1 - Approve
3 - Disband
4 - Reject to origin
5 - Reject to previous
7 - Batch-approve
8 - Batch-reject
assigneeNameStringQuality inspector's name
assigneeIdnumberQuality inspector's system ID
createdTimeDateCreation timestamp (ISO8601 format)
indexnumberPosition index in parent package
interceptionBeginnumberStart frame number (inclusive)
interceptionEndnumberEnd frame number (inclusive)
interceptionListList<List<number>>Frame ranges as ordered pairs (e.g., [[10,20], [30,45]])