Skip to content

List Uploaded Parts



POST /api/v1/rum_sourcemap/part_list

Overview

Reads the part numbers currently saved for the upload session.

Before Calling and Usage Steps

This request uses the uploadId returned by initialization; appId, env, and version are already bound during initialization, so do not submit these scope fields again in this request.

The current Key requires rum.rumCfgManage. Only the workspace to which the current Key belongs is supported. Take appId from content[].appId in the RUM application quick list; it must be consistent with app_id in SDK/error records and cannot be replaced with the database internal UUID. SourceMap is precisely located by application, environment env, and version version; case/whitespace are part of the identifier itself and must exactly match the collection records. The appId/env/version of this request inherit the scope bound during initialization; additional scope fields are not accepted, and omitting these fields does not change the bound environment or version. The current hosted lifecycle requires each to be at most 256 characters.

For the workflow, see SourceMap Multipart Upload Related API Usage Instructions, and you can also refer to the Multipart Upload Operations Guide. Initialize → upload all parts of the original ZIP → verify the part list → merge → query the version status and file tree. Successful initialization/merge does not mean the ZIP has been validated or can be parsed; statuses such as processing/failed/blocked still require further verification.

Send the original uploadId as JSON via POST; returns an ascending array of integer part numbers; [] when there are no parts. Callers must use their own part list to verify the count, indexes, and original content of each part before merging. This API does not provide part size, digest, total part count, or upload progress percentage.

This endpoint validates the upload cache and application ownership, but does not interpret every read as "the target is still writable"; when a merge has already been initiated, the cache/temporary parts may still exist. The returned numbers do not prove that the content has not been published, that the merge succeeded, or that the ZIP is complete. If the read-only cache has expired or the task has been overwritten, 406 is returned; if a cross-workspace application is unreadable, NotFoundRumSet is returned.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or enter: Obtain an OpenAPI Key with the required permission for this operation from API Key Management in the target workspace.

Body Request Parameters

Parameter Type Required Description
uploadId string Y Required upload session ID; do not construct it yourself or substitute taskId. A Key with management permissions in the same workspace can continue; access is not isolated by the Key that created the session. The session lasts 3600 seconds by default, and multipart upload does not renew it automatically; if it expires or is overwritten by a new session, verify and re-initialize.
Null allowed: False
Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
How to obtain or enter: Save content.uploadId from the successful response of Initialize Multipart Upload as-is.

Additional Parameter Notes

For the workflow, see SourceMap Multipart Upload Related API Usage Instructions, and you can also refer to the Multipart Upload Operations Guide. Initialize → upload all parts of the original ZIP → verify the part list → merge → query the version status and file tree. Successful initialization/merge does not mean the ZIP has been validated or can be parsed; statuses such as processing/failed/blocked still require further verification.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/rum_sourcemap/part_list' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"uploadId":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.uploadId string Session ID.
content.chunkIndexs array<integer> Ascending list of saved part numbers; the field is spelled chunkIndexs.
content.chunkIndexs[] integer A saved part number.
content.declaration object or null Workspace common declaration attached to a non-empty business object; when not configured, it may be null or an empty object; empty objects are not added. It does not change the semantics of same-named business fields on the entity itself.
{
  "code": 200,
  "content": {
    "uploadId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
    "chunkIndexs": [
      0,
      1,
      2
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
406 ft.ParameterValidationFailed Request field is missing, or the field value violates the declared validation conditions Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Invalid request JSON syntax Request JSON format error Correct the JSON according to content.reason, line, and column.
400 ft.JsonFormatError JSON top level is not an object Part of the JSON file is malformed Submit an object containing uploadId.
404 ft.NotFoundRumSet The application is not in the current workspace, has been deleted, or does not exist The specified RUM setting was not found Refresh the RUM application quick list and use the real appId in the current workspace.
406 ft.InvalidUploadId Session cache does not exist, has expired, or the ID has been replaced by a later session Invalid UploadId value, or the task has been overwritten Verify the original uploadId and uploaded parts; after confirming the old session and publishing status, re-initialize instead of blindly overwriting.
500 ft.InternalServerError Database, file read/snapshot, historical configuration, or unhandled parsing exception Internal error Retain the traceId and application/env/version, first confirm the version status and files, then handle the actual error; reads can be retried with backoff.

Feedback

Is this page helpful?