Hello,
I have a problem with the Bynder API to update an asset metaproperty of type text.
I am able to update the name, the description and the select-type metaproperties. But i cannot update my text-type metaproperty. I try :
- {‘metaproperty.id’: ‘my text’}
- {‘metaproperty_name’: ‘my text’}
Both return a 202 response : “{"message":"Accepted","statuscode":202}” but the asset is not updated.
When I try :
{‘name’: ‘Mon document’, ‘metaproperty.id’: ‘my text’}
Only the name is updated.
Somebody, I have an idea ?
Best answer by Catherine L
@Tatiana Fischer You can run a update it for Select Types and Text Types
curl --request POST \
--url https://customerportal.bynder.com/api/v4/media/id \
--header 'accept: application/json' \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'metaproperty={"metaproperty.[metapropertyID]":"[metaproperty option ID]"}'
Example for a Select Type:
curl --request POST \
--url https://customerportal.bynder.com/api/v4/media/id \
--header 'accept: application/json' \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'metaproperty={"Metaproperty.[metapropertyID from the taxonomy page]":"[metaproperty option ID]"}'
Example for a Text Type:
curl -X "POST" "https://customerportal.getbynder.com/api/v4/media/ASSETID/" \
-H 'Authorization: Bearer token details \
-H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
--data-urlencode "metaproperty.Metaproperty ID=metaproperty option value"
Here’s a working example from one of our test portals:
curl -X "POST" "https://testaccount.getbynder.com/api/v4/media/7D6018BD-A787-41A0-879769A896498B76/" \
-H 'Authorization: Bearer token' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
--data-urlencode "metaproperty.42474550-A198-4F13-908C837204C94E5F=BynderTest1"