Request : POST /papi/v1/folder/[Folder id]/upload/[File name]

Uploads a file to a folder. This action will create a new asset in the folder.

Parameter Parameter Type Mandatory Description
Folder id Path yes Unique folder id where to upload the file.
More information about folders
File name Path yes filename containing the extension.
File content Body yes Request body containing the file as a binary file.
x-auth-token Header yes The authentication token must be provided as a x-auth-token header for every api request.
More information about authentication token.

Response: JSON – Asset object.
The new asset JSON path is: $.Id

{
    "Id": "2179",
    "Name": {
        "x-default": "image"
...

cURL example

curl --location --request POST 'https://[EMMi instance]/papi/v1/folder/[Folder id]/upload/image.png' \
--header 'x-auth-token: [Session token]' \
--header 'Content-Type: image/png' \
--data-binary '@/Downloads/image.png'

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment