Update an ad order status

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:
  • 0: Inactive
  • 1: Active
  • 2: Archived
  • 3: Paused
  • 4: Completed

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
  }
}
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!