Develop > API calls > Scheduler APIs > Modify Promotion Schedule

Modify Promotion Schedule

This API modifies a schedule that is already defined for the promotion of a package.

URI Method Parameters Returns
/codar/app/scheduler/promote/{scheduleId} PUT scheduleId

200 - updated
400 - bad request
404 - not found

Examples

The following URL was sent:

https://localhost:8444/csa/api/codar/app/scheduler/promote/3af8a936-e292-499a-80b0-d6a701d6361f

The following JSON was sent:

{

"name":"Updated Schedule For Promote in development",

"scheduledOn": "03/31/2016 5:30 PM",

"comments": "Schedule for the Development stage"

}

JSON Attribute Description
name Updated name for the schedule. This is an optional field.
scheduledOn The schedule date and time in MM/dd/yyyy hh:mm a format. This is an optional field.
comments Comments that provide other details of the schedule. This is an optional field.

The following JSON was returned:

{
"@self": "/csa/api/codar/app/scheduler/3af8a936-e292-499a-80b0-d6a701d6361f",
"@type": "urn:x-hp:2012:software:cloud:data_model:scheduler",
"id": "3af8a936-e292-499a-80b0-d6a701d6361f",
"name": "Updated Schedule For Promote in development",
"scheduledOn": "2016-07-23T07:00:00.000Z",
"status": "PENDING",
"eventType": "ONE_TIME",
"type": "PROMOTION",
"createdBy": "admin",
"createdOn": "2016-06-02T06:15:11.676Z",
"promotionSchedule": {
"comments": "Schedule for the Development stage",
"packageId": "b5b080d0-3a47-4acc-895c-879259e2ceaf",
"fromStage": "DEVELOPMENT",
"fromStageDisplayName": "Development"
}
}