Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

METHODPOST
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

AuthorizationBear 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
titleData Manager API file upload
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
titleData Manager API file upload
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"'

...