apikey: ********************{
"entity_type": "services",
"entity_id": "1bd65521-34ef-4fc4-b64e-a2fa5c852cb6",
"metadata": [
{
"key": "test",
"value": "hello"
},
{
"key": "hello",
"value": "world"
}
]
}curl --location --request POST 'https://api.bazaar.travel/functions/v1/update-metadata' \
--header 'apikey: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"entity_type": "services",
"entity_id": "1bd65521-34ef-4fc4-b64e-a2fa5c852cb6",
"metadata": [
{
"key": "test",
"value": "hello"
},
{
"key": "hello",
"value": "world"
}
]
}'{
"success": true,
"data": [
{
"id": 1,
"org_id": "70ea290f-6d54-44e8-ba49-395d8dfb75a9",
"service_id": "1bd65521-34ef-4fc4-b64e-a2fa5c852cb6",
"metadata": [
{
"key": "78ea9e5c-cd60-4128-bf05-08a5f9566f05",
"value": "1"
},
{
"key": "430e859b-5c54-4c6e-866b-ee16b6ba0a27",
"value": "15"
},
{
"key": "67be5047-9bcc-4c10-8d94-562330911ed0",
"value": "10"
},
{
"key": "test",
"value": "helloo"
},
{
"key": "hello",
"value": "world"
}
],
"created_at": "2024-12-23T10:23:21.131009+00:00",
"updated_at": null
}
]
}