POST /Update Existing Fee

Prev Next

Use this function to update the CPM of an already existing segment. This new CPM will not be inherited by any children segments. The latest valid fee updates received will be processed once a day and applied to the segment fees.

Current Rate limit

  • 25 calls per provider in a window of 1 hour

  • 20 segments with fee updates per call

Sample Request

POST /v1/segmentfee HTTP/1.1
Host: datax.yahooapis.com
Content-Type: multipart/form-data;boundary=xyz

--xyz
Content-Disposition: form-data; name="metadata"
Content-Type: application/json;charset=UTF-8

{ "description" : "Test Segment Fee Update" }

--xyz
Content-Disposition: form-data; name="data" Content-Type: application/json;charset=UTF-8

[  
    {
        "id" : "testsegment1",
        "segmentFees" : [
            {
                "fee" : 1.0,
                "mediaType" : "display"
            },
            {
                "fee" : 2.0,
                "mediaType" : "video"
            }
    },
    {   "id" : "testsegment2",
    ...
]
--xyz-

Sample Response

HTTP/2 202
Date: Thu, 05 Dec 2024 21:36:55 GMT
Content-type: application/json

{
  "resourceType" : "datax-feeupdate",
  "resourceId" : "NOVAE2E.segmentfee.20241205T213655Z426629533",
  "description" : "Segment fee update",
  "createTime" : "2024-12-05T21:36:55.455422",
  "status" : {
    "state" : "PENDING",
    "lastUpdateTime" : "2024-12-05T21:36:55.455422"
  }
}