Skip to content

Commit 8346485

Browse files
committed
add busyFlag to update
1 parent a843753 commit 8346485

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ function updateEditAnActivity($options)
563563
| participants | ``` Optional ``` | List of multiple persons (participants) this activity will be associated with. If omitted, single participant from person_id field is used. It requires a structure as follows: [{"person_id":1,"primary_flag":true}] |
564564
| orgId | ``` Optional ``` | ID of the organization this activity will be associated with |
565565
| note | ``` Optional ``` | Note of the activity (HTML format) |
566+
| busyFlag | ``` Optional ``` | Set the activity as 'Busy' or 'Free'. If the flag is set to true, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with null. When the value of the flag is unset (null), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. Format: true/false |
566567

567568

568569

src/Controllers/ActivitiesController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,8 @@ public function updateEditAnActivity(
432432
'person_id' => $this->val($options, 'personId'),
433433
'participants' => $this->val($options, 'participants'),
434434
'org_id' => $this->val($options, 'orgId'),
435-
'note' => $this->val($options, 'note')
435+
'note' => $this->val($options, 'note'),
436+
'busy_flag' => $this->val($options, 'busyFlag')
436437
);
437438

438439
//call on-before Http callback

0 commit comments

Comments
 (0)