Forum Discussion

pp_01's avatar
pp_01
Mentor
6 years ago

Adding custom metadata fields while creating a blog in the API.

Hey all. Is there any way we can add a custom metadata field's value as a custom parameter while creating a blog in the API call for blog creation apart from the usual fields like message.subject, m...
  • him_varma's avatar
    6 years ago

    Hi pp_01 ,

    You can achieve this. You will just have to add another parameter in API with the custom metadata name and its value. For example : API - /restapi/vc/blogs/id/(blog board id)/messages/post?message.subject=test subject&(custom metadata name)=(custom metadata value)

    The above will create message and add the value to that corresponding message ID's custom metadata.

    Thanks