ColorSyncProfileSetTag() doesn't add tag to my profile.

Hello,

I am using ColorSyncProfileSetTag(profileRef, tag, tagData) to set "vcgt" tag to my test.icc profile. The profileRef is getting updated after this call whereas when I open test.icc profile using ColorSync Utility app, it doesn't show me the added tag. Do I have any other api to update profile?Sorry, couldn't find any proper documentation. Can you please help me to solve this issue?

Thanks in advance.