Update Demand
PATCH /api/demand/[Demand_id]
Request
Body Parameters
Attribute Name | Summary | Possible Values |
---|---|---|
name | Demand Name | string |
cpm | Demand CPM | float |
url | Demand URL | string |
is_mobile_web | Is mobile web tag | 0/1 |
is_mobile_app | Is mobile app tag | 0/1 |
is_desktop | Is desktop tag | 0/1 |
is_ctv | Is CTV tag | 0/1 |
active | Is Demand active | 0/1 |
user_mvr | VAST Requests Limit | from 1 to 5 (highest) |
user_type
| JS/Flash Preference for Demand | 0 - auto 1 - use flash by default 2 - use JS by default 3- use flash only 4- use js only |
domain_list_type | List restriction type | 1 - white list 2- black list |
Response
Attribute Name | Summary | Possible Values |
---|---|---|
vastId | Demand Id | int |
name | Demand Name | string |
cpm | Demand CPM | float |
url | Demand URL | string |
is_mobile_web | Is mobile web tag | 0/1 |
is_mobile_app | Is mobile app tag | 0/1 |
is_desktop | Is desktop tag | 0/1 |
is_ctv | Is CTV tag | 0/1 |
active | Is Demand active | 0/1 |
user_mvr | VAST Requests Limit | from 1 to 5 (highest) |
vast_type | Demand Type | 0 - Vast 1 - CedatoX |
Sample Request
curl -X PATCH \ https: //api.cedato.com/api/demand/123456 \ -H 'accept: application/json' \ -H 'api-version: 1' \ -H 'content-type: application/x-www-form-urlencoded' \ -H 'authorization: Bearer ' domain_list_type= 1 &name=MyDemand |
Sample Response
{ "status" : "OK" , "data" : { "demand" : {
} } } |