Create a Volunteer Opportunity
POST {{baseUrl}}/api/VolunteerOpportunity
Request Body
{"name"=>"<string>", "startDateTime"=>"<dateTime>", "endDateTime"=>"<dateTime>", "timeZone"=>"<string>", "preferredNumberOfHours"=>"<double>", "projectId"=>"<integer>", "locationName"=>"<string>", "description"=>"<string>", "isActive"=>"<boolean>", "isLocalOnly"=>"<boolean>", "address1"=>"<string>", "address2"=>"<string>", "city"=>"<string>", "state"=>"<string>", "postal"=>"<string>", "country"=>"<string>", "preferredDateTime"=>"<dateTime>", "currentPriority"=>"<string>", "currentNeed"=>"<integer>", "customFields"=>[{"name"=>"<string>", "value"=>"<string>", "displayName"=>"<string>"}, {"name"=>"<string>", "value"=>"<string>", "displayName"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"id":"\u003cinteger\u003e","volunteerOpportunityUrl":"\u003cstring\u003e","name":"\u003cstring\u003e","locationName":"\u003cstring\u003e","displayAddress":"\u003cstring\u003e","startDateTime":"\u003cstring\u003e","endDateTime":"\u003cstring\u003e","preferredDateTime":"\u003cstring\u003e","timeZone":"\u003cstring\u003e","description":"\u003cstring\u003e","createDateTimeUtc":"\u003cdateTime\u003e","createdByUser":"\u003cstring\u003e","modifiedDateTimeUtc":"\u003cdateTime\u003e","modifiedByUser":"\u003cstring\u003e","isActive":"\u003cboolean\u003e","isLocalOnly":"\u003cboolean\u003e","preferredNumberOfHours":"\u003cdouble\u003e","projectId":"\u003cinteger\u003e","totalVolunteers":"\u003cinteger\u003e","totalVolunteerHours":"\u003cdouble\u003e","volunteerOrganizers":[{"id":"\u003cinteger\u003e","volunteerOrganizerUrl":"\u003cstring\u003e","contactId":"\u003cinteger\u003e","displayName":"\u003cstring\u003e","firstName":"\u003cstring\u003e","avatarUrl":"\u003cstring\u003e","primaryPhone":"\u003cstring\u003e","primaryEmail":"\u003cstring\u003e","contactUrl":"\u003cstring\u003e","volunteerOpportunityUrl":"\u003cstring\u003e"},{"id":"\u003cinteger\u003e","volunteerOrganizerUrl":"\u003cstring\u003e","contactId":"\u003cinteger\u003e","displayName":"\u003cstring\u003e","firstName":"\u003cstring\u003e","avatarUrl":"\u003cstring\u003e","primaryPhone":"\u003cstring\u003e","primaryEmail":"\u003cstring\u003e","contactUrl":"\u003cstring\u003e","volunteerOpportunityUrl":"\u003cstring\u003e"}],"currentNeed":"\u003cinteger\u003e","currentPriority":"\u003cstring\u003e","currentPriorityName":"\u003cstring\u003e","currentNeedFilledPercentage":"\u003cdouble\u003e","hoursFilledPercentage":"\u003cdouble\u003e","volunteerOrganizersUrl":"\u003cstring\u003e","volunteersUrl":"\u003cstring\u003e","customFields":[{"name":"\u003cstring\u003e","value":"\u003cstring\u003e","displayName":"\u003cstring\u003e"},{"name":"\u003cstring\u003e","value":"\u003cstring\u003e","displayName":"\u003cstring\u003e"}]}