post
https://sandbox-api.viantinc.com/{basePath}/adorder/updateStatus
Update the status of an Ad Order.
Request
POST /adorder/updateStatus
Request Body
| Name | Type | Description | Required |
|---|---|---|---|
| id | Number | Ad order ID. This ad order must have been previously created. | Yes |
| status | Integer | The status that will be updated to for the Ad Order. | Yes |
Response
| JSON Fields | Type | Description |
|---|---|---|
| messages | String Array | An array of any error messages. |
| entity | Object | An Ad Order Status object. |
| entity.id | Number | The Ad Order ID |
| entity.status | Number |
The numeric value for the Ad Order's status:
|
Example
Request to make an ad order inactive
curl -u <user>:<password> -X POST -H "Content-Type: application/json" -d '{"id" : 1001,"status":0}' https://sandbox-api.viant.com/v1/adorder/updateStatus
Response
{
"messages": [],
"entity": {
"id": 1001,
"status": 0
}
}