20240325 - Changes to Doohly API
We have made changes to the Doohly API to improve the structure of our models relating to creatives. Specifically the IFile
type was originally used to represent creatives, but overtime has been also used for device reference images, frame standby images and more, even though the type includes fields that are only relevant for creatives. Thus we've introduced a new Creative
type to represent creatives going forward, and removed creative specific fields from the IFile
type.
Deprecated and New Endpoints
The following endpoints have been deprecated.
Deprecated endpoint | New endpoint to use instead |
---|---|
GET /v1/campaigns/:id | GET /v2/campaigns/:id |
GET /v1/bookings | GET /v2/bookings |
GET /v1/bookings/:id | GET /v2/bookings/:id |
POST /v1/bookings | POST /v2/bookings |
PATCH /v1/bookings/:id | PATCH /v2/bookings/:id |
GET /v1/bookings | GET /v2/bookings |
GET /v1/devices/:id | GET /v2/devices/:id |
If you are using any of these endpoints, please update your code to use the new version as soon as possible, paying special attention to use the new request and response models.
Note that the following endpoints will not return urls for creative files and thumbnails, and instead simply include ids for the creative files and thumbnails. We will be introducing API endpoints for accessing and managing creatives in a future release.
POST /v2/bookings
GET /v2/bookings
GET /v2/bookings/:id
PATCH /v2/bookings/:id
GET /v2/devices/:id
Changes to models
Booking
- The
creatives
property has been replaced byassignedCreatives
of typeBookingAssignedCreative[]
- The
frames
property has been replaced byassignedFrames
of typeBookingAssignedFrame[]
- The
type
property has been removed. Refer toplaysPerLoop
andloopsPerPlay
instead
BookingCreative
- The
BookingCreative
type has been superseded byBookingAssignedCreative
BookingAssignedCreative
-
BookingAssignedCreative
has acreative
property of typeCreative
(instead of afile
property of typeIFile
) -
Previously,
BookingCreative
had aduration
property of typenumber
(in seconds). NowBookingAssignedCreative
has adurationMs
property (instead of aduration
property) which is of typenumber
(in milliseconds)
BookingFrame & BookingAssignedFrame
- The
BookingFrame
type has been superseded byBookingAssignedFrame
. Though, at this point in time they are structurally identical
Frame
- The
bookingFrames
property has been replaced bybookingAssignedFrames
of typeBookingAssignedFrame[]
IFile
- The
name
,type
&playback
properties have been moved to the newCreative
type
Creative
- The
Creative
type represents creatives (instead of theIFile
type) going forward - See documentation for more information on this type