API reference / volunteer

volunteer

GET/api/v1/volunteers

List volunteers

Auth:
required (min role: admin)
Query:
limit, offset, role, teamId, divisionId
Response:
{ data }
POST/api/v1/volunteers

Create volunteer

Auth:
required (min role: admin)
Request:
{ userId, role, teamId, divisionId, certifications, notes }
Response:
{ data }
GET/api/v1/volunteers/:id

Get volunteer by ID

Auth:
required (min role: admin)
Response:
{ data }
PUT/api/v1/volunteers/:id

Update volunteer

Auth:
required (min role: admin)
Request:
{ role, teamId, divisionId, certifications, status, notes }
Response:
{ data }
DELETE/api/v1/volunteers/:id

Delete volunteer

Auth:
required (min role: admin)
Response:
{ success, message }
volunteer API — Peer10 Developers