Sorry for the beginner’s nature of this question, I have managed to create an entity via API in the sandbox environment, I have given the entity id 177 in the ‘meta’ section.
https://api-sandbox.yext.com/v2/accounts/me/entities?api_key=079afb52dbfe768e7ea6482d1cd149d4&v=20231213&entityType=healthcareFacility
with body:
{
"meta": {
"id": "177"
},
"name": "Bozeman MT-Main St-BIO",
"address": {
"city": "Madison",
"region": "CA",
"postalCode": "08530",
"countryCode": "US",
"line1": "Adress line2"
},
"hours": {
"friday": {
"isClosed": false,
"openIntervals": [
{
"end": "18:00",
"start": "08:00"
}
]
},
"monday": {
"isClosed": false,
"openIntervals": [
{
"end": "18:00",
"start": "08:00"
}
]
},
"saturday": {
"isClosed": false,
"openIntervals": [
{
"end": "18:00",
"start": "08:00"
}
]
},
"sunday": {
"isClosed": false,
"openIntervals": [
{
"end": "18:00",
"start": "08:00"
}
]
},
"thursday": {
"isClosed": false,
"openIntervals": [
{
"end": "18:00",
"start": "08:00"
}
]
},
"tuesday": {
"isClosed": false,
"openIntervals": [
{
"end": "18:00",
"start": "08:00"
}
]
},
"wednesday": {
"isClosed": false,
"openIntervals": [
{
"end": "18:00",
"start": "08:00"
}
]
}
}
}
Now I want to update this entity, but when I execute the following call:
https://api-sandbox.yext.com/v2/accounts/me/entities/177?api_key=079afb52dbfe768e7ea6482d1cd149d4&v=20231213
with this body:
{
"name": "Bozeman MT-Main St-UPDATED"
}
I always get the following error:
“code”: 46,
“type”: “FATAL_ERROR”,
“message”: “HTTP method not allowed for this resource.”,
“name”: “method_not_allowed”
Somebody could help me please?