Collapse
Submit a Service Request
Contact Information for Technical Support
My Service Notifications
dateModified different than lastModifiedDate
Answer ID 12653 |
Last Review Date 07/05/2023
Why are the timestamps different for the content metadata fields dateModified and lastModifiedDate?
Environment:
- Knowledge Advanced REST API
- Oracle B2C Service sites with Knowledge Advanced only, all versions
- GET /km/api/v1/content/[…] API endpoints
Issue:
When we get content from the REST API, there are fields "dateModified" and "lastModifiedDate." Sometimes they are the same. Sometimes they are different.
Resolution:
Understand that these fields represent two different things.
lastModifiedDate: The last time the content XML of the article was modified.
dateModified: The last time anything about this article version was modified. This could include publishing or unpublishing.
You should use the field that is appropriate to your use case. For end-user display, you may find that the field publishDate is more useful in your client application or custom widget.