Shift Type

You must have the volunteers ConventionPrivilege to access this. ShiftTypes are accessed via /api/shifttype.

Properties

See "Object Properties" in Introduction for basic shared properties.

Complete details in ShiftTypeProperties. It also has these extra read-only properties:

is_autoscheduled

Volunteer applications for shifts of this type will be scheduled automatically.

Related Objects

See "Related Objects" in Introduction for how to use them.

convention

The Convention this shifttype belongs to.

room

Optional. The Room in which shifts of this type are located.

Relationships

See "Relationships" in Introduction for how to use them.

shifts

Shifts created for this convention.

Includes

See "Includes" in Introduction for how to use them.

There are no additional Include options for shift types.

Services

The services used to fetch and manipulate shifttypes.

Search ShiftTypes

Search across all conventions is not enabled. To search on a single convention see "Relationships" in Convention.

Create ShiftType

 POST /api/shifttype
Required Params
name
convention_id

Returns the same as a normal read.

Read ShiftType

 GET /api/shifttype/xxx

Returns:

 {
   "id" : "xxx",
   "name" : "The Captain is Dead",
   ...
 }

Update ShiftType

 PUT /api/shifttype/xxx

Returns the same as a normal read.

Delete ShiftType

 DELETE /api/shifttype/xxx

Returns:

 {
   "success" : 1
 }