Get the volunteer tasks for a race.
If include_resource_info
is set to âTâ, volunteer_people_resources
and volunteer_custom_resources
are included.
volunteer_people_resources
contains information about the timeslots for this task.
volunteer_custom_resources
contains information about the resources needed for this task.
{ "tasks": [ { "volunteer_task_id": 1286, "volunteer_session_id": 37, "task_title": "Handing out race Bibs", "deleted": "F", "public_task": "T", "volunteer_category_id": 16, "timeslots": "T", "sort_order": 1000, "volunteer_last_year_task_id": null, "volunteer_age_minimum": null, "volunteer_age_maximum": null, "volunteer_people_resources": [ { "volunteer_people_resource_id": 1307, "min_people": 2, "max_people": 5, "start_ts": 1919678400, "end_ts": 1919685659 } ], "volunteer_custom_resources": [] }, { "volunteer_task_id": 1287, "volunteer_session_id": 37, "task_title": "Handing out water at station 1", "deleted": "F", "public_task": "T", "volunteer_category_id": 16, "timeslots": "T", "sort_order": 1001, "volunteer_last_year_task_id": null, "volunteer_age_minimum": null, "volunteer_age_maximum": null, "volunteer_people_resources": [ { "volunteer_people_resource_id": 1308, "min_people": 2, "max_people": 5, "start_ts": 1919678400, "end_ts": 1919685659 } ], "volunteer_custom_resources": [ { "volunteer_custom_resource_id": 38, "volunteer_custom_resource_name": "Water Cups", "min_resources": 800, "max_resources": 1000 } ] } ] }
Parameter | HTTP Method | Default | Description | Datatype |
---|---|---|---|---|
race_id Required |
GET | Race ID. | uint |
|
api_key |
GET | API key. | string |
|
api_secret |
GET | API secret. | string |
|
include_resource_info |
GET | F | Should resource info be included? | bool |
{ "openapi": "3.0.3", "info": { "title": "Get Race Volunteer Tasks", "description": "Get volunteer tasks for a race.", "version": "1.0.0", "contact": { "name": "RunSignup API Support", "url": "https://runsignup.com/API", "email": "info@runsignup.com" } }, "servers": [ { "url": "https://runsignup.com/API", "description": "Production API Server" } ], "tags": [ { "name": "Volunteers", "description": "APIs related to Volunteers" } ], "components": { "schemas": { "Error": { "type": "object", "properties": { "error": { "type": "string", "description": "Error message" } }, "required": [ "error" ] }, "BadRequestError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating invalid request parameters or structure" } ] }, "UnauthorizedError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating authentication failure" } ] }, "ForbiddenError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating the authenticated user lacks required permissions" } ] }, "NotFoundError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating the requested resource does not exist" } ] }, "ServerError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating an unexpected server-side issue" } ] } }, "securitySchemes": { "apiKey": { "type": "apiKey", "in": "query", "name": "api_key", "description": "RunSignup API Key" }, "apiSecret": { "type": "apiKey", "in": "query", "name": "api_secret", "description": "RunSignup API Secret" } } }, "paths": { "/v2/volunteers/get-race-volunteer-tasks.json": { "get": { "tags": [ "Volunteers" ], "summary": "Get Race Volunteer Tasks", "description": "Get volunteer tasks for a race.", "operationId": "v2_volunteers_get_race_volunteer_tasks_json", "parameters": [ { "name": "race_id", "in": "query", "description": "Race ID.", "required": true, "schema": { "type": "integer" } }, { "name": "checkin_api_key", "in": "query", "description": "Checkin API key.", "required": false, "schema": { "type": "string" } }, { "name": "X-CHECKIN-API-SECRET", "in": "header", "description": "Checkin API secret.", "required": false, "schema": { "type": "string" } }, { "name": "api_key", "in": "query", "description": "API key.", "required": false, "schema": { "type": "string" } }, { "name": "api_secret", "in": "query", "description": "API secret.", "required": false, "schema": { "type": "string" } }, { "name": "include_resource_info", "in": "query", "description": "Should resource info be included?", "required": false, "schema": { "type": "boolean", "enum": [ "T", "F" ], "default": "F" } } ], "security": [ { "apiKey": [] }, { "apiSecret": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BadRequestError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UnauthorizedError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForbiddenError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotFoundError" } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServerError" } } } } }, "x-permissions": [ "partners", "race_directors", "timers" ] } } } }