Generic Resource
PEPPERI NOTIFICATION SERVICE
Actions Queue
CPI Node
TODO training

Execute Job Using Draft Code

Only for UserCodeJob

See full documentation in Execute Job Using Published Code - its the exactly the same, except for the need to publish - the idea of this endpoint is to run enable testing your code without affecting production and your deployed code.

post
Execute Draft Code - Asynchronous

https://api.pepperi.com/v1.0/code_jobs/async/{Code Job UUID}/execute_draft
Request
Response
Request
Path Parameters
optional
string
Response
200: OK
{
"ExecutionUUID": "881951ad-c2bd-4df1-8c88-80c5dabc0a37",
"URI": "/audit_log/881951ad-c2bd-4df1-8c88-80c5dabc0a37"
}

post
Execute Draft Code - Synchronous

https://api.pepperi.com/v1.0/code_jobs/{Code Job UUID}/execute_draft
Request
Response
Request
Path Parameters
optional
string
Response
200: OK

Error Codes :

Scenario

Error Code

Fault String

HTTP Status Code

Execute with no Draft Code

InvalidParameterCJ008

Invalid field value. Field:{0}: Value cannot be null or empty.

400

Cannot find Code Job

InvalidParameterCJ004

{ jobUUID } does not exist.

404

Execute draft of addon job

InvalidParameterCJ014

Can execute only user codejob draft code

400