Using the API to manually set "created on" date

1 reply [Last post]
Joined: 01/27/2012
Points: 6

We have a number of customers that desire the ability to have the created on date of their videos to be set on the day the videos were created, not when they were uploaded.

What is the best practice to accomplish this? Is there an API method, or can we manually set date in database?

Thanks!

Joined: 01/05/2009
Points: 1697

Hi there,

This field (createdAt) is set automatically by the server when the entry is created and we don’t want to allow API apps to tweak it to avoid various potential issues such as during synchronization.
For that matter, the fields: createdAt, updatedAt, deletedAt, id, partnerId are always read-only in the API.

To answer your use-case correctly, I suggest the following -
Create a custom metadata field, called originalCreatedDate as Date type and designate it searchable.
Then in lists and searches you can add it as condition (e.g. originalCreatedDate>2011) or order by it using the API.
This feature though only available in the Eagle version (CE 5), which will be released this week.