Update Promote Status For Offers
PS: You need to use Token to change the status, for more details, please check Token
Through this interface, you could start/pause the offer.
Request address
https://ss-api.mintegral.com/api/open/v1/offer/status
Request method
PUT
Request example
json
PUT /api/open/v1/offer/status
HTTP/1.1 Host: ss-api.mintegral.com
Content-Type: application/json
{"offer_id": 123, "status": "RUNNING"}Request Parameter
| Fields | Type | Explanations | Default Value | Examples |
|---|---|---|---|---|
| offer_id | int | Unique id for offer | — | 123 |
| status | string | Offer status, including:"RUNNING"、"STOPPED" | — | "RUNNING" |
Response
| Fields | Type | Explanations |
|---|---|---|
| code | int | 200 code, is success. Others, are fail. |
| msg | string | If success, return to "success". If fail, return to detailed wrong info. |
| data | json | If success, return plain object. If fail, return to detailed wrong info. |
Response Example
json
{
"msg": "success",
"code": 200,
"data": {}
}