Skip to main content
POST
Create attendee

Authorizations

Authorization
string
header
required

Authenticate with an API access token in the Authorization header: Authorization: Bearer <token>. Create a token from the API Access Tokens page in Contractors Cloud, under Integrations.

Path Parameters

appointmentId
integer
required

The id of the appointment.

Body

application/json
email
string<email>

The attendee's email address. Required unless model_type and model_id are both given. Must not duplicate another attendee on the same appointment.

Maximum string length: 100
Example:

"jane.doe@example.com"

model_type
enum<string>

The type of resource this attendee references. Required (together with model_id) unless email is given.

Available options:
user,
contact
Example:

"user"

model_id
integer

The id of the referenced user or contact, matching model_type. Required (together with model_type) unless email is given.

Example:

1159

name
string

The attendee's display name. Optional.

Maximum string length: 60
Example:

"Jane Doe"

is_optional
boolean

Whether the attendee's attendance is optional. Optional; defaults to false.

response
enum<string>

The attendee's RSVP response. Optional; defaults to pending.

Available options:
no,
yes,
maybe,
pending

Response

The created attendee.

id
integer

The attendee's unique identifier.

Example:

15032

tenant_id
integer

The id of your organization's account.

Example:

12

appointment_id
integer

The id of the appointment this attendee belongs to.

Example:

8420

model_type
enum<string> | null

The type of resource this attendee references. Null when the attendee was added as a plain email address with no linked user or contact.

Available options:
user,
contact
Example:

"user"

model_id
integer | null

The id of the referenced user or contact, matching model_type. Null when the attendee was added as a plain email address.

Example:

1159

name
string | null

The attendee's display name. Null if not set.

Example:

"Jane Doe"

email
string | null

The attendee's email address. Null if not provided.

Example:

"jane.doe@example.com"

is_optional
boolean

Whether the attendee's attendance is optional.

Example:

false

response
enum<string>

The attendee's RSVP response.

Available options:
no,
yes,
maybe,
pending
Example:

"yes"

is_self
boolean

Whether this attendee is the authenticated user making the request.

Example:

false