PEPPERI NOTIFICATION SERVICE
Actions Queue
CPI Node

Publish a Single Code Job

Publishing should also empty the DraftCode field

Every publish creates audit log entry of type=data and action=publish

Only UserCodeJob can be published

post
Publish Code Job

https://api.pepperi.com/v1.0/code_jobs/{Code Job UUID}/publish
Request
Response
Request
Path Parameters
Code Job UUID
required
string
‚Äč
Body Parameters
Comment
required
string
The comment that should describe the changes in this current publish
Response
200: OK
No content - if created return 200 Ok - if not return 500

Error Codes :

Scenario

Error Code

Fault String

HTTP Status Code

Publish with no Draft Code

InvalidParameterCJ001

Invalid field value. Field: CodeDraft: Value cannot be null or empty.

400

Cannot find Code Job

InvalidParameterCJ004

{ jobUUID } does not exist.

404

Publish addon job

InvalidParameterCJ011

Can publish only user codejob

400