For a client we are leveraging Assets HTTP API for metadata updates on AEM as CS, there are certain metadata attributes which are of type Date or Long. What is the expected input format for Date and Long type fields in request body?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
The body is a JSON payload, which means that all your values will be represented as strings. With that said, you simply need to use the string representation of the respective value type. If you intend to update a Date or Long metadata property, ensure that you provide a valid string representation for the date or long value in the corresponding field. Failing to do so may not trigger any warnings or errors, but it could lead to malfunctions in any logic that relies on such metadata
For example, this is how I will update a Date:
Hope this helps.
@EstebanBustamante @Shashi_Mulugu Can you please review this Question and share your thoughts?
Views
Replies
Total Likes
The body is a JSON payload, which means that all your values will be represented as strings. With that said, you simply need to use the string representation of the respective value type. If you intend to update a Date or Long metadata property, ensure that you provide a valid string representation for the date or long value in the corresponding field. Failing to do so may not trigger any warnings or errors, but it could lead to malfunctions in any logic that relies on such metadata
For example, this is how I will update a Date:
Hope this helps.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies