PUT /v1/phone_call_report_settings
PUT/v1/phone_call_report_settings
CodeMeta OS API endpoint.
Modelo de datos
Esta operación trabaja sobre la entidad Phone Call Weekly Report Settings (phone_call_report_settings). Los 8 campos (tipo, validación, obligatoriedad y relaciones) figuran en la referencia del esquema.
-
Campos obligatorios:
enabled,dayOfWeek,hour,minute,timezone -
Gestionados por el servidor:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy. La plataforma asigna estos campos; si se envían en la solicitud, se descartan.
Cuerpo de la solicitud
| Nombre | Tipo | Descripción |
|---|---|---|
enabled | boolean | |
dayOfWeek | integer | |
hour | integer | |
minute | integer | |
timezone | string | |
notifyInApp | boolean | |
notifyByEmail | boolean | |
emailRecipients | string[] |
Ejemplo
curl -X PUT https://api.codemeta-os.de/v1/phone_call_report_settings \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"enabled": false,
"dayOfWeek": 0,
"hour": 0,
"minute": 0,
"timezone": "string",
"notifyInApp": false,
"notifyByEmail": false,
"emailRecipients": []
}'const result = await cm.phone_call_report_settings.put({
"enabled": false,
"dayOfWeek": 0,
"hour": 0,
"minute": 0,
"timezone": "string",
"notifyInApp": false,
"notifyByEmail": false,
"emailRecipients": []
});Códigos de respuesta
| HTTP | Significado |
|---|---|
200 |
Default Response |