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/bookingsGET /v2/bookingsGET /v2/bookings/:idPATCH /v2/bookings/:idGET /v2/devices/:id
Changes to models
Booking
- The
creativesproperty has been replaced byassignedCreativesof typeBookingAssignedCreative[] - The
framesproperty has been replaced byassignedFramesof typeBookingAssignedFrame[] - The
typeproperty has been removed. Refer toplaysPerLoopandloopsPerPlayinstead
BookingCreative
- The
BookingCreativetype has been superseded byBookingAssignedCreative
BookingAssignedCreative
-
BookingAssignedCreativehas acreativeproperty of typeCreative(instead of afileproperty of typeIFile) -
Previously,
BookingCreativehad adurationproperty of typenumber(in seconds). NowBookingAssignedCreativehas adurationMsproperty (instead of adurationproperty) which is of typenumber(in milliseconds)
BookingFrame & BookingAssignedFrame
- The
BookingFrametype has been superseded byBookingAssignedFrame. Though, at this point in time they are structurally identical
Frame
- The
bookingFramesproperty has been replaced bybookingAssignedFramesof typeBookingAssignedFrame[]
IFile
- The
name,type&playbackproperties have been moved to the newCreativetype
Creative
- The
Creativetype represents creatives (instead of theIFiletype) going forward - See documentation for more information on this type