Issue with Update/Patch File Metadata Fields with V4 API - get code 422

,

NOOP. I think I figured it out. I referenced this post …

But used this …

endpoint … https://api.frame.io/v4/accounts/{account_id}/projects/{project_id}/metadata/values

payload = {
    "data": {“file_ids”: [asset_id],
             “values”: [{"field_definition_id": field_definition_id, "value": "my value”}]
    }
}

i got the field_definition_id for my custom field (it doesn’t use the name) by calling this endpoint …

https://api.frame.io/v4/accounts/{account_id}/metadata/field_definitions

Hopefully this helps someone else out as well.