Skip to main content

Volunteers

This object represents a volunteer application within a convention.

Search for volunteers

Paginate through the volunteer list.

Authentication

Service Integration with volunteer:read scope.

Request

nextPagestring (optional)
A cursor for pagination across multiple pages of results. Don't include this attribute on the first call. Use the nextPage parameter from the previous response for each subsequent request.
limitnumber (optional)
The maximum number of results to return, between 1 and 100. Defaults to 100.

Response

createdAtISO-8601 Date
The date the volunteer record was created.
updatedAtISO-8601 Date
The date the volunteer record was last updated.
contactMethodsArray of ContactMethod
Set of contact methods provided by the volunteer.
Show child attributes
namestring
The name of the contact method.
isPrimaryboolean
Whether this contact method is the preferred way of contacting the volunteer.
valuestring
An arbitrary string identifier for the contact method.
departmentsArray of DepartmentAssignment
Set of departments where the volunteer has expressed a preference or has an assignment.
Show child attributes
idstring
The unique identifier of the department.
statesArray of strings
The flags indicating the volunteer's preference or assignment for the department.
Possible values: experience, interest, avoid, assignment, request
namestring
The name of the department.
userUser
The user object for the volunteer.
Show child attributes
idstring
The unique identifier of the user.
firstNamestring
The first name of the user.
lastNamestring
The last name of the user.
usernamestring
The username of the user.
preferredNamestring (optional)
nullable
The preferred name of the user. If provided, this should be used instead of the first and last name, except where legally required.
phonestring
The phone number of the user in E.164 format.
emailstring
The email address of the user.
optionsArray of Option
A set of options, customized by the event, that contain arbitrary data provided by the volunteer.
Show child attributes
namestring
The name of the option as defined by the event.
typestring
The type of the option as defined by the event.
Possible values: select, multi, text, number.
valuenumber, string, or Array of string
The value of the option.
POST /api/v0/volunteers/searchcURL
{
"nextPage": "eyBsYXN0SWQ6IDEwMDAgfQ==",
"limit": 100,
}
Responseapplication/json
{
"data": [
{
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z",
"contactMethods": [
{
"name": "discord",
"isPrimary": true,
"value": "Username#1234"
},
],
"departments": [
{
"id": "1234",
"states": ["experience", "interest"],
"name": "Registration"
},
],
"user": {
"id": "1234",
"firstName": "John",
"lastName": "Doe",
"username": "jdoe",
"preferredName": "Johnny",
"phone": "+15555555555",
"email": "[email protected]",
},
"options": [
{
"name": "jump",
"type": "select",
"value": "How high?"
},
],
},
],
"nextPage": null,
}

Retrieve a user's volunteer record

Returns the volunteer object for the specified user.

Authentication

Service Integration with volunteer:read scope.

Response

createdAtISO-8601 Date
The date the volunteer record was created.
updatedAtISO-8601 Date
The date the volunteer record was last updated.
contactMethodsArray of ContactMethod
Set of contact methods provided by the volunteer.
Show child attributes
namestring
The name of the contact method.
isPrimaryboolean
Whether this contact method is the preferred way of contacting the volunteer.
valuestring
An arbitrary string identifier for the contact method.
departmentsArray of DepartmentAssignment
Set of departments where the volunteer has expressed a preference or has an assignment.
Show child attributes
idstring
The unique identifier of the department.
statesArray of strings
The flags indicating the volunteer's preference or assignment for the department.
Possible values: experience, interest, avoid, assignment, request
namestring
The name of the department.
userUser
The user object for the volunteer.
Show child attributes
idstring
The unique identifier of the user.
firstNamestring
The first name of the user.
lastNamestring
The last name of the user.
usernamestring
The username of the user.
preferredNamestring (optional)
nullable
The preferred name of the user. If provided, this should be used instead of the first and last name, except where legally required.
phonestring
The phone number of the user in E.164 format.
emailstring
The email address of the user.
optionsArray of Option
A set of options, customized by the event, that contain arbitrary data provided by the volunteer.
Show child attributes
namestring
The name of the option as defined by the event.
typestring
The type of the option as defined by the event.
Possible values: select, multi, text, number.
valuenumber, string, or Array of string
The value of the option.
GET /api/v0/users/:id/volunteercURL
curl https://reg.cces.dev/api/v0/users/{id}/volunteer \
-H "Authorization: Bearer <token>"
Responseapplication/json
{
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z",
"contactMethods": [
{
"name": "discord",
"isPrimary": true,
"value": "Username#1234"
},
],
"departments": [
{
"id": "1234",
"states": ["experience", "interest"],
"name": "Registration"
},
{
"id": "5678",
"states": ["avoid"],
"name": "HR"
}
],
"user": {
"id": "1234",
"firstName": "John",
"lastName": "Doe",
"username": "jdoe",
"preferredName": "Johnny",
"phone": "+15555555555",
"email": "[email protected]",
},
"options": [
{
"name": "jump",
"type": "select",
"value": "How high?"
},
]
}

Retrieve list of departments

Returns the list of volunteer departments.

Authentication

Service Integration with volunteer:read scope.

Response

idstring
The unique identifier of the department record.
namestring
The date the volunteer record was created.
emailemail
The date the volunteer record was last updated.
publiclyVisibleboolean
Department is publicly visible to all users applying for a position.
leadsArray of User
List of users who are assigned as leads for this department
Show child attributes
idstring
The unique identifier of the user.
firstNamestring
The first name of the user.
lastNamestring
The last name of the user.
usernamestring
The username of the user.
preferredNamestring (optional)
nullable
The preferred name of the user. If provided, this should be used instead of the first and last name, except where legally required.
phonestring
The phone number of the user in E.164 format.
emailstring
The email address of the user.
GET /api/v0/volunteers/departmentscURL
curl https://reg.cces.dev/api/v0/volunteers/departments \
-H "Authorization: Bearer <token>"
Responseapplication/json
[
{
"id": "1",
"email": "[email protected]",
"name": "Information Technology",
"publiclyVisible": true,
"leads": [
{
"id": "1234",
"firstName": "Bob",
"lastName": "Smith",
"username": "bobsmith",
"preferredName": "Sphere",
"phone": "+11112223333",
"email": "[email protected]"
}
]
}
]