Request : POST /papi/v1/proof
Modify Proof Name, Description or Status. Other properties cannot be edited at this moment.
To get the available proof status id’s, use the Get Proof Status command.
Parameter | Parameter Type | Mandatory | Description |
---|---|---|---|
Proof Object | Body | yes | Proof Id and the value(s) to change. Check the proof data model definitions from the swagger documentation https://grano.emmi.fi/papi/v1/swagger/ui/index#!/Project/POST_proof |
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).
Examples
Change the proof name to “Amazing Product Catalogue”
{
"Id": "[Proof Id]",
"Name": "Amazing Product Catalogue"
}
Change Proof status to “Waiting for Comments”
{
"Id": "[Proof Id]",
"ProofStatusId": 4
}
cURL example
curl --location --request POST 'https://[EMMi instance]/papi/v1/proof' \
--header 'Content-Type: application/json' \
--header 'x-auth-token: [Session Token]' \
--data-raw '{
"Id": [Proof Id],
"ProofStatusId": 4
}'
Post your comment on this topic.