MCPOutils MCP/Emplacements/delete_location_media
delete_location_media
Writelocations:write
Remove photos from a location. Pass `urls` to delete specific photos, or `category` to clear a whole category. The logo cannot be deleted — upload a new LOGO image to replace it instead. Photos Synup itself put on Google or Facebook are removed there too; photos imported from Google, or added there by the owner, stay on Google. A link that isn't one of the location's photos is not deleted: when none match, the call fails and says so, and otherwise `notFound` lists the ones that didn't — never tell the user those were deleted. An archived location can't be changed. You don't pass an agency — it comes from your credentials.
Paramètres
locationIdstringobligatoire
The id of the location to remove photos from. Accepts the database ID or public loc- ID. IDs must belong to the authenticated agency and permitted client.
urlsstring[]facultatif
Specific photo URLs to remove (from get_location_media).
category"COVER" | "PROFILE" | "EXTERIOR" | "INTERIOR" | "PRODUCT" | "FOOD_AND_DRINK" | "MENU" | "AT_WORK" | "TEAMS" | "ROOMS" | "COMMON_AREA" | "ADDITIONAL"facultatif
Clear every photo in this category. Allowed values: COVER, PROFILE, EXTERIOR, INTERIOR, PRODUCT, FOOD_AND_DRINK, MENU, AT_WORK, TEAMS, ROOMS, COMMON_AREA, ADDITIONAL.
Exemple de requête
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "delete_location_media",
"arguments": {
"locationId": "string"
}
}
}Exemple de réponse
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.