put http://staging-apigateway.snapdeal.com/seller-api/campaigns/status
This is used to update the statuses of the campaigns. Multiple campaigns can be updated at a time and status for each is returned in the response array.
Request
Parameter Name | Data Type | Parameter Type | Requirement | Description |
---|---|---|---|---|
campaignIds | Array of Integers | body | mandatory | List of campaign Ids for whose status user wishes changed. |
status | String | body | mandatory | New status |
Response
Field Name | Data Type | Description |
---|---|---|
code | Integer | Response code. Contains an error code in case of any error. |
data | Array of objects | Array of JSON objects representing the campaigns. |
data.0.campaignId | String | ID of the campaign. |
data.0.status | String | Message, OK in case of success. This is for specific campaign. |
data.0.error | String | Message, error message in case of errors for specific campaign. |
data.0.campaignStatus | String | Resultant campaign status. Status might be different than what was supplied (Inactive in case of out of stock products or low rating or low balance.). |
data.0.campaignSubStatus | String | Resultant substatus of the campaign. |
status | String | Overall status message, error message in case of errors. OK in case of success. |