Copy files
POST /nd/api/file/copy
POST body parameters
| Parameter | Type | Description |
|---|---|---|
file_ids |
ID collection |
Required source file IDs |
target_id |
string |
Required destination folder ID |
Response
Fields listed in the source: code, success, copyKey, fileNum.
The source describes file_ids as both an array and string; confirm serialization with the deployment. Use the returned copyKey with copy_progress to check completion; acceptance is not completion.
Calling the Endpoint
Use Authorization: Bearer <access_token>. GET parameters belong in the URL query; normal business POST requests use JSON. Check HTTP status and then the business result. Confirm array serialization and ambiguous types with the deployment instead of inventing fields.