Request : POST /papi/v1/project/[Project Id]/proof/upload/[File name]

Upload a File as a New Proof to the Project. When the new proof is created a proof id is returned of a successful request.

Parameter Parameter Type Mandatory Description
Project Id Path yes Unique project id where to upload the file.
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 an x-auth-token header for every API request.
More information about authentication token.

Response: Proof Id (string).

cURL example

curl --location --request POST 'https://[EMMi instance]/papi/v1/project/[Project Id]/proof/upload/[File name]' \
--header 'Content-Type: application/octet-stream' \
--header 'x-auth-token: [Session token]' \
--data-binary '@[Path + File name]'

Delete proof

Deletes proof and its versions with the given ID.

Request : DELETE /papi/v1/proof/[Proof Id]

Parameter Parameter Type Mandatory Description
Proof Id Path yes Unique proof id
x-auth-token Header yes The authentication token must be provided as an x-auth-token header for every API request.
More information about authentication token.

Response: HTTP Status Code 204 – No Content

cURL example

curl --location --request DELETE 'https://[EMMi instance]/papi/v1/proof/[Proof Id]' \
--header 'x-auth-token: [Session token]'

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