Request : POST /papi/v1/proof/[Proof Id]/upload/[File name]
Upload a new file as a new version to a proof. The given filename does not change the proof name. Proof name can be only modified by the Modify Proof command.
Parameter | Parameter Type | Mandatory | Description |
---|---|---|---|
Proof Id | Path | yes | Unique proof id of a proof to create the new version |
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/proof/[Proof Id]/upload/[File name]' \
--header 'Content-Type: application/octet-stream' \
--header 'x-auth-token: [Session Token]' \
--data-binary '@[Path + File name]'
Delete the latest proof version
Deletes the latest version of proof with the given proof Id and file version Id. Every proof version has a file version Id. The current file version Id can be fetched with the Get Proof command.
Request : DELETE /papi/v1/proof/[Proof Id]/[Version Id]
Parameter | Parameter Type | Mandatory | Description |
---|---|---|---|
Proof Id | Path | yes | Unique proof id |
Version Id | Path | yes | File version 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]/[Version Id]' \
--header 'x-auth-token: [Session token]'
Post your comment on this topic.