In the request body, specify "resourceType": "EVENT" and "actionName": "EXTEND_TIMING".
Specify time values and options in the actionBody element of the request body.
The job changes event times for the current event state.
-
If the event is open for bidding, the job changes the closing time for bidding.
-
If the event is in the preview state and accepts prebids, the job changes the closing time for the preview period. You can also optionally change the bidding start time by specifying "adjustStartTime": true in the actionBody.
In the actionBody, you can specify a new close time relative to the existing close time, or a fixed (absolute) time.
Use the following data model for the request body:
{
"resourceType": "EVENT",
"actionName": "{EXTEND_TIMING | REDUCE_TIMING | REOPEN}",
"ids": {
"eventId": {eventId}
},
"actionBody": {
"isFixed": {true | false},
"unit": {unitValue},
"length": {time},
"adjustStartTime": {true | false}
}
}
To change the closing time relative to the existing close time, specify "isFixed": false and unit and length field values as follows:
-
unit: Unit of time. Valid values for unit are:
-
0: Minutes
-
1: Hours
-
2: Days
-
length: Length of time to extend the close time by, in units.
-
adjustStartTime: Optional field that is evaluated only if jobAction is EXTEND_TIMING or REDUCE_TIMING and the event is in the preview period with prebidding allowed. If true, the bidding close time is also extended or reduced in addition to the preview period. This is useful if you're extending the preview time and also need to move the bidding start time so that the bidding start time is after the end of the preview period.
In the following example, the event is in the preview period. The request extends both the event preview closing time and the bidding start time by 30 days:
{
"resourceType": "EVENT",
"actionName": "EXTEND_TIMING",
"ids": {
"eventId": "Doc3500004"
},
"actionBody": {
"isFixed": false,
"unit": 2,
"length": 30,
"adjustStartTime": true
}
}
To specify a fixed or absolute close time, include the following fields in the actionBody:
In the following example, the event is open for bidding. The request sets the bidding close date to January 31, 2023 at midnight (GMT):
{
"resourceType": "EVENT",
"actionName": "EXTEND_TIMING",
"ids": {
"eventId": "Doc3500004"
},
"actionBody": {
"isFixed": "true",
"plannedEndDate": "2023-01-31T00:00:00.000+0000"
}
}