⚠Due to planned maintenance you will experience short (<30 min) downtime between 08:00 - 08:30 CET.
...
Below is an example to guide how to upload a filelist ion(s) that you have access:
Step 1: Set up the credential by following the instruction in the "Implement credential"
...
URL | |
---|---|
SERVER URL | Sandbox system: https://sandbox-datamanager-api.wmda.info Production system: https://datamanager-api.wmda.info |
URI | /api/v1/files/upload |
METHOD | POST |
Full URL path example | https://sandbox-datamanager-api.wmda.info/api/v1/filesions/uploadlist |
Request formbody | --form 'file=@c:/path/to/file/ION-<yourion>-D.gpg' \ --form 'ion="<yourion>"' \ --form 'folder="upload"'no request body needed |
HEADER | Authorization and Content-Type are required, the other ones are optional |
Authorization | Bear Token |
Content-Type | multipartapplication/form-datajson |
Step 3:
Run curl call as below to upload a file:get the ion(s) you have access. You may get one or multiple ions based on your access permission.
Code Block | ||
---|---|---|
| ||
curl -i POSTGET 'https://sandbox-datamanager-api.wmda.info/api/v1/filesions/uploadlist' \ --header 'Authorization: Bearer ••••••' \ --header 'Content-Type: multipart/form-data' --form 'file=@c:/path/to/file/ION-0999-D.gpg' \ --form 'ion="9999"' \ --form 'folder="upload"'application/json' |
Upload
Below is a suggestion for curl call based on the Data Manager swagger doc doc to upload a file in for an ION.
Code Block | ||
---|---|---|
| ||
curl -i POST 'https://sandbox-datamanager-api.wmda.info/api/v1/files/upload' \ --header 'Authorization: Bearer ••••••' \ --header 'Content-Type: multipart/form-data' --form 'file=@c:/path/to/file/ION-0999-D.gpg' \ --form 'ion="9999"' \ --form 'folder="upload"' |
...