v1

latestOpenAPI 3.1.02026-07-24251250397.8 KB
advertising

Update an advertising schedule

Update an advertising schedule

patch/v2/sites/{site_id}/advertising/schedules/{ad_schedule_id}/

Path parameters

site_idstring required

Unique identifier for a resource

Example:Ny05CEfj

Unique alphanumeric ID of the site

ad_schedule_idstring required

Unique identifier for a resource

Example:Ny05CEfj

Unique alphanumeric ID of the advertising schedule

Request body

Example request

{
  "metadata": {
    "breaks": [
      {
        "tags": [
          "http://doubleclick.com/tag1.xml"
        ]
      }
    ],
    "bids": {
      "bidders": {
        "custom_params": {
          "param1": "value1"
        }
      }
    }
  }
}

Response

Resource successfully updated

schemastring
idstring

Unique identifier for a resource

createdstring

Date and time at which the resource was created

last_modifiedstring

Date and time at which the resource was most recently modified

typestring

Name of the type of resource.

relationshipsobject

Ancilliary resources associated to the primary resource being read

Example response

{
  "schema": "https://schema.jwplayer.com/types/thumbnail.json",
  "id": "Ny05CEfj",
  "created": "2019-09-25T15:29:11.042095+00:00",
  "last_modified": "2019-09-25T15:29:11.042095+00:00",
  "metadata": {
    "breaks": [
      {
        "tags": [
          "http://doubleclick.com/tag1.xml"
        ]
      }
    ],
    "bids": {
      "bidders": {
        "custom_params": {
          "param1": "value1"
        }
      }
    }
  }
}