Documentación
Siniestros
Siniestros y reclamos de seguros.
type: siniestro EntitySet: Siniestros
Scopes
comunidesk:readcomunidesk:write
Endpoints
GET /v1/rest/Siniestros
Listar
Scopes: comunidesk:read
GET /v1/rest/Siniestros/{id}
Obtener por id
Scopes: comunidesk:read
POST /v1/rest/Siniestros
Crear
Scopes: comunidesk:write
PATCH /v1/rest/Siniestros/{id}
Actualizar
Scopes: comunidesk:write
Ejemplo de request
curl -X GET 'https://gateway.comunidesk.com/v1/rest/Siniestros' \
-H "Authorization: Bearer $OAUTH_TOKEN" \
-H "x-comunidesk-user-authorization: Bearer $USER_JWT"Campos de escritura
Campos aceptados en POST/PATCH.
| Campo | Tipo | Obligatorio | Enum |
|---|---|---|---|
| edificioId | string | Sí | |
| seguroId | string | No | |
| departamentoId | string | No | |
| descripcion | string | Sí | |
| fechaSiniestro | string | Sí | |
| montoEstimado | number | No | |
| estado | string | No | abierto | en_proceso | cerrado |
Solo lectura: _id, _rev, type, createdAt, updatedAt
