Add/Update Site Group

Usa esto cuando un negocio tiene varias ubicaciones que deben administrarse en conjunto.


If a business has multiple sites or locations, you can organize them by putting them all in a single Site Group.


Punto Final

The following endpoint can be used to add or update site groups. You must replace the {base_url} variable.

POST
{base_url}/api/v4/siteGroup/addUpdate

Solicitud
Campo
Tipo
Descripción
externalId
String
Tu propio id para este grupo de sitios, desde tu software. Envía de nuevo el mismo externalId para actualizar este grupo de sitios en lugar de agregar uno nuevo.
name
String
El nombre del grupo del sitio.
agency
Agency
Una referencia al registro de la agencia.
siteEnterprise
Una referencia al registro de la empresa del sitio.
deleted
Boolean
Esta bandera representa si el registro ha sido eliminado y ya no está disponible para ser utilizado.
Respuesta
Campo
Tipo
Descripción
success
Boolean
Whether the record was added or updated successfully.
action
String
Informs whether the record was added or updated. Will only be returned if success is true.
One of added, updated
_id
String
The id we assign to the record.
updatedAt
The date the record was last updated. Un momento en el tiempo en formato ISO 8601, con zona horaria. Format = YYYY-MM-DDTHH:mm:ss.SSSZ
errors
String [ ]
A list of errors. Will only be returned if success is false.
			
{
  "success": true,
  "action": "added",
  "_id": "60f720d248f143332af022e0",
  "updatedAt": "2025-05-30T19:19:44.143Z"
}


		

Ver también