How to assign personel to a bookings appointment made through the api

Tonti 20 Reputation points
2023-02-09T12:48:33.0166667+00:00

Hi,

I managed to make bookings reservations throught graph api, but I have realized the personel is not assigned automatically. Having a look to the create appointment documentation (https://learn.microsoft.com/en-us/graph/api/bookingbusiness-post-appointments?view=graph-rest-1.0), I can't see how to include the personel the appointment will be assigned to.

Any idea of how to do it?

Thanks in advance

Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. Shivam Dhiman 6,081 Reputation points
    2023-02-09T16:30:20.2066667+00:00

    Hi @Tonti

    If you are looking to create booking with staff member, you need to use staffMemberIds property. You need to use the ID of each bookingStaffMember who is scheduled in this appointment. You can get staff member id using GET /solutions/bookingBusinesses/{id}/staffMembers refer to this documentation for more details.
    Please note: staffMemberIds property is a String collection type.

    Please refer to the below sample screenshot:
    Book

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.