Update Deployment Milestone API

📘

This API is used to update the milestone of a deployment. For example, to pause, resume, stop, or activate a deployment.

📘

Know your endpoint

Based on the domain you use to log in to Webex Campaign, the endpoint domain for your API varies. For more information, refer to the Know Your API Endpoints section.

Headers

The following table describes the request headers:

Request HeaderDescription
content-typeapplication/json
authorizationAccess token or API Secret Key in Bearer format

Example: Bearer $(key)

Request Parameters

ParameterTypeMandatoryDescription
milestoneIntegerYesSpecifies the deployment milestone.

* 0 (Activate)
* 0 (Resume)
* 8 (Stop)
commentsStringNoSpecifies deployment comments.

Request Example


https://yourapihubdomain.io/v1/campaigns/{campaignID}/deployments/{deploymentid}/milestone?operation=<milestone>&comments=<comment>

Response Parameters

This API will return the following response parameters:

ParameterDescription
nameReturns the name of the Purpose.
idReturns the id of the Purpose.
messageReturns a confirmation message.

Response Example

{
    "id": "SMS_1673354051193000121",
    "message": "Deployment 'FROM_API_CHECK_3' :status changed from 'draft' to 'pending'."
}

Failure Response Codes

The API will return code within the response as per the following table in case of failure scenarios.

HTTP Status CodeCode within API ResponseDescription
400400I/O error on post request. Cannot retry due to server authentication, in streaming mode.
401430Authorization failed. This resource is not allowed to access using this TOKEN or KEY
401498Invalid token or Access token expired
404404Not found
405405Method not supported
500500Internal server error
5001001Invalid input JSON
Language