Develop > API calls > Package APIs > Reject a package

Reject a package

Moves a package to the rejected state. A package in the rejected state cannot be deployed or promoted.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-package/{packageID}/reject POST Package ID

200 - successful
400 - bad request
401 - not authorized
404 - not found
500 - internal server error

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-package/a7fa2df4-9f23-4ba7-b8df-0a14f9eba221/reject

The following XML was sent:

Example XML sent in request, if applicable

The following XML was returned:

{
 "packageName": "Promote Package 2",
 "packageState": "REJECTED",
 "packageId": "a7fa2df4-9f23-4ba7-b8df-0a14f9eba221"
}