PUT /v1/phone_call_report_settings
PUT/v1/phone_call_report_settings
CodeMeta OS API endpoint.
Data model
This operation works on the entity Phone Call Weekly Report Settings (phone_call_report_settings). All 8 fields — type, validation, required status, relationships — are listed in the schema reference.
-
Required fields:
enabled,dayOfWeek,hour,minute,timezone -
Server-managed:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy— the platform assigns these fields; they are discarded in the request.
Request body
| Name | Type | Description |
|---|---|---|
enabled | boolean | |
dayOfWeek | integer | |
hour | integer | |
minute | integer | |
timezone | string | |
notifyInApp | boolean | |
notifyByEmail | boolean | |
emailRecipients | string[] |
Example
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": []
});Response codes
| HTTP | Meaning |
|---|---|
200 |
Default Response |