Hello we are trying to create assets via API. I am able to create the asset but I am having trouble adding our custom field in. Ive tried to pass the custom field when creating the asset initially and I have also tried updating the asset post creation with the field.
I had seen another discussion post where they did via the bulk set-info end point. I tried to follow that but it still did not work. Please let me know if I am doing anything wrong.
def set_asset_custom_field(self, asset_id: str, field_id: str, value):
payload = {
"AssetIds": f"[{asset_id}]",
"Request": {
"Values": [
{
"Key": f"$assets.custom-field:{field_id}",
"Value": f"{value}"
}
]
}
}
response = self.request("POST", "/assets/bulk/set-info", payload)

