Update Demand

Update Demand

PATCH /api/demand/[Demand_id]

Request
Body Parameters
Attribute Name
Summary
Possible Values
nameDemand Namestring
cpmDemand CPMfloat
urlDemand URLstring
is_mobile_webIs mobile web tag0/1
is_mobile_appIs mobile app tag0/1
is_desktopIs desktop tag0/1
is_ctv
Is CTV tag
0/1
activeIs Demand active0/1
user_mvrVAST Requests Limitfrom 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_typeList restriction type 

1 - white list

2- black list

 

 

Response
Attribute Name
Summary
Possible Values
vastIdDemand Idint
nameDemand Namestring
cpmDemand CPMfloat
urlDemand URLstring
is_mobile_webIs mobile web tag0/1
is_mobile_appIs mobile app tag0/1
is_desktopIs desktop tag0/1
is_ctvIs CTV tag0/1
activeIs Demand active0/1
user_mvrVAST Requests Limitfrom 1 to 5 (highest)
vast_typeDemand 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": {

            "active": "1",

            "cpm": 10,

            "created": "2020-10-26 04:59:44",

            "custom_mvr": false,

            "domainId": "14",

            "domain_list_type": "2",

            "is_ctv": "0",

            "is_desktop": "0",

            "is_mobile_app": "1",

            "is_mobile_web": "0",

            "name": "MyDemand",

            "partnerId": "12345",

            "updated": "2021-10-26 01:29:05",

            "url": "http://www.exampleURL2.com/",

            "user_mvr": 0,

            "user_type": "0",

            "vastId": "456789",

            "vast_type": "0"

        }
    }
}         

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article