POST api/appointments/key/{key}
Sets the selected invite using the pUrl key for the given appointment time.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| key | string |
Required |
Body Parameters
AppointmentTimeDto| Name | Description | Type | Additional information |
|---|---|---|---|
| AvailableSlots | integer |
None. |
|
| EventId | globally unique identifier |
None. |
|
| StartTime | date |
None. |
|
| Bookings | Collection of AppointmentItemDto |
None. |
|
| SalesPeople | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"AvailableSlots": 1,
"EventId": "1e02ddf7-2441-4e70-ac9f-0904c10129ca",
"StartTime": "2026-01-10T00:51:26.3340626+00:00",
"Bookings": [
{
"Id": "9445e957-5924-4cb6-93ea-172158446401",
"CreationDate": "2026-01-10T00:51:26.3340626+00:00",
"StartDate": "2026-01-10T00:51:26.3340626+00:00",
"EndDate": "2026-01-10T00:51:26.3340626+00:00",
"PromotionalEventId": "e568a4dd-7290-498f-8090-16a53d213a03",
"InviteId": "30cbde6c-e133-40a9-b481-2c40761b5666",
"SalesPersonId": "d845db62-7020-4d7e-bcf5-e10f88dc387d",
"PersonId": "35b6ec04-f954-4958-84f0-d23dc7b8020c",
"PersonName": "sample string 5"
},
{
"Id": "9445e957-5924-4cb6-93ea-172158446401",
"CreationDate": "2026-01-10T00:51:26.3340626+00:00",
"StartDate": "2026-01-10T00:51:26.3340626+00:00",
"EndDate": "2026-01-10T00:51:26.3340626+00:00",
"PromotionalEventId": "e568a4dd-7290-498f-8090-16a53d213a03",
"InviteId": "30cbde6c-e133-40a9-b481-2c40761b5666",
"SalesPersonId": "d845db62-7020-4d7e-bcf5-e10f88dc387d",
"PersonId": "35b6ec04-f954-4958-84f0-d23dc7b8020c",
"PersonName": "sample string 5"
}
],
"SalesPeople": [
"9d28fb41-8dbe-476d-8805-a17c261446b1",
"598fa865-9085-4aca-842c-273c870cffac"
]
}
application/xml, text/xml
Sample:
<AppointmentTimeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.EventManagement.Models">
<AvailableSlots>1</AvailableSlots>
<Bookings>
<AppointmentItemDto>
<CreationDate>2026-01-10T00:51:26.3340626+00:00</CreationDate>
<EndDate>2026-01-10T00:51:26.3340626+00:00</EndDate>
<Id>9445e957-5924-4cb6-93ea-172158446401</Id>
<InviteId>30cbde6c-e133-40a9-b481-2c40761b5666</InviteId>
<PersonId>35b6ec04-f954-4958-84f0-d23dc7b8020c</PersonId>
<PersonName>sample string 5</PersonName>
<PromotionalEventId>e568a4dd-7290-498f-8090-16a53d213a03</PromotionalEventId>
<SalesPersonId>d845db62-7020-4d7e-bcf5-e10f88dc387d</SalesPersonId>
<StartDate>2026-01-10T00:51:26.3340626+00:00</StartDate>
</AppointmentItemDto>
<AppointmentItemDto>
<CreationDate>2026-01-10T00:51:26.3340626+00:00</CreationDate>
<EndDate>2026-01-10T00:51:26.3340626+00:00</EndDate>
<Id>9445e957-5924-4cb6-93ea-172158446401</Id>
<InviteId>30cbde6c-e133-40a9-b481-2c40761b5666</InviteId>
<PersonId>35b6ec04-f954-4958-84f0-d23dc7b8020c</PersonId>
<PersonName>sample string 5</PersonName>
<PromotionalEventId>e568a4dd-7290-498f-8090-16a53d213a03</PromotionalEventId>
<SalesPersonId>d845db62-7020-4d7e-bcf5-e10f88dc387d</SalesPersonId>
<StartDate>2026-01-10T00:51:26.3340626+00:00</StartDate>
</AppointmentItemDto>
</Bookings>
<EventId>1e02ddf7-2441-4e70-ac9f-0904c10129ca</EventId>
<SalesPeople xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>9d28fb41-8dbe-476d-8805-a17c261446b1</d2p1:guid>
<d2p1:guid>598fa865-9085-4aca-842c-273c870cffac</d2p1:guid>
</SalesPeople>
<StartTime>2026-01-10T00:51:26.3340626+00:00</StartTime>
</AppointmentTimeDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.