Jump to content

TuCloudAPI updatecalendar

From Wiki 7Kas

TuCloudAPI function to manage FuturePBX (the cloud PBX). Available to: SuperRoot, Operator, Client.

Description

Edit a calendar row (same fields as addcalendar). 404 if not in the caller's PBX. Requires a non-readonly ukey.

Call

GET  https://tucloudapi.7kas.com:9087/tucloud?func=updatecalendar&ukey=YOUR_KEY

Requires the ukey parameter.

Parameters

Parameter Type Required Default Meaning
pbx string Yes FuturePBX NAME (e.g. tucall). The (ukey, pbx) pair is the tenant boundary; the server verifies the ukey owns this PBX.
id integer Yes Calendar row id (_id).
template integer Yes Calendar-template group 1-99.
monthstart integer Yes Start month 1-12.
monthend integer Yes End month 1-12.
dayend integer Yes End day 1-31.
destination integer Yes Route _id to divert to (required, in-tenant).
daystart integer No 0 Start day 1-31, or 0/blank = all days (Todos).
timestart string No 00:00 Start time HH:MM.
timeend string No 00:00 End time HH:MM.
hold integer No 0 UI flag 0/1.
nota string No Free note (max 256).

Example

https://tucloudapi.7kas.com:9087/tucloud?func=updatecalendar&ukey=KEY&pbx=tucall&id=81522&template=1&monthstart=1&daystart=1&monthend=1&dayend=1&destination=197

Response

{ok, calendar:{...}}.


Back to TuCloudAPI