DELETE api/v2.0/Volunteer/WithdrawFromOpportunityByLegacyContactKey?volunteerOpportunityKey={volunteerOpportunityKey}&legacyContactKey={legacyContactKey}&comments={comments}

Removes the requesting user from a Volunteer Opportunity. If successful, responds with a 204 (no content). If the current user is not currently listed as a Volunteer for the specified Volunteer Opportunity, responds with a 404 (not found). Can only be accessed by an Admin user.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
volunteerOpportunityKey

Unique Key for the Volunteer Opportunity to withdraw from.

globally unique identifier

Required

legacyContactKey

Unique Integration Key for the Contact to Volunteer for the Opportunity.

string

Required

comments

Any comments to add to the Volunteer Opportunity record.

string

Default value is

Body Parameters

None.

Response Information

Resource Description

VolunteerOpportunity
NameDescriptionTypeAdditional information
VolunteerOpportunityKey

The Unique Identifier for the Volunteer Opportunity.

globally unique identifier

None.

Title

The Title of the Volunteer Opportunity.

string

None.

Description

Descriptions for the Volunteer Opportunity.

string

None.

Deadline

Sign-up deadline for the Volunteer Opportunity.

string

None.

AdditionalRequirements

Additional Volunteer Requirements for this Volunteer Opportunity.

string

None.

Location

Location for the Volunteer Opportunity.

string

None.

VolunteersNeeded

Number of Volunteers needed for this Volunteer Opportunity.

integer

None.

CreatedOn

Date the Volunteer Opportunity was created.

date

None.

CloseDate

Date that registration as a Volunteer Closes.

date

None.

UpdatedOn

Date this Volunteer Opportunity was last updated.

date

None.

EstimatedHours

Estimated Hours required for the Volunteer Opportunity.

decimal number

None.

SkillMultiplier

decimal number

None.

StartDateTime

Date and Time the Volunteer Opportunity begins.

date

None.

EndDateTime

Date and Time the Volunteer Opportunity ends.

date

None.

Community

If the Volunteer Opportunity is linked to a specific Community, this will contain the Community data for that Community.

None.

Response Formats

application/json, text/json

Sample:
{
  "VolunteerOpportunityKey": "a9528456-7b80-478e-8571-8ae2f6f92ebe",
  "Title": "sample string 2",
  "Description": "sample string 3",
  "Deadline": "sample string 4",
  "AdditionalRequirements": "sample string 5",
  "Location": "sample string 6",
  "VolunteersNeeded": 7,
  "CreatedOn": "2024-04-13T09:48:13.5822917Z",
  "CloseDate": "2024-04-13T09:48:13.5822917Z",
  "UpdatedOn": "2024-04-13T09:48:13.5822917Z",
  "EstimatedHours": 11.0,
  "SkillMultiplier": 12.0,
  "StartDateTime": "2024-04-13T09:48:13.5822917Z",
  "EndDateTime": "2024-04-13T09:48:13.5822917Z",
  "Community": null,
  "RequiresApproval": true,
  "Status": 0,
  "StatusText": "sample string 16",
  "CanSignUpViaApi": true,
  "ApplicationStatus": 0,
  "ApplicationStatusText": "sample string 18",
  "VolunteerOpportunityTypeKey": "44b3c340-f31e-4991-b284-1c079ed10918",
  "LinkToListOfOpportunities": "sample string 20",
  "PictureUrl": "sample string 21",
  "LinkToOpportunity": "sample string 22",
  "OpportunityName": "sample string 23",
  "OpportunityAddress": "sample string 24",
  "VolunteerSpotsAvailable": 25,
  "Points": 26,
  "VolunteerOpportunityIntegrationCode": "sample string 27"
}

application/xml, text/xml

Sample:
<VolunteerOpportunity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Volunteer">
  <AdditionalRequirements>sample string 5</AdditionalRequirements>
  <ApplicationStatusText>sample string 18</ApplicationStatusText>
  <CloseDate>2024-04-13T05:48:13.5822917-04:00</CloseDate>
  <CreatedOn>2024-04-13T05:48:13.5822917-04:00</CreatedOn>
  <Deadline>sample string 4</Deadline>
  <Description>sample string 3</Description>
  <EndDateTime>2024-04-13T05:48:13.5822917-04:00</EndDateTime>
  <EstimatedHours>11</EstimatedHours>
  <LinkToListOfOpportunities>sample string 20</LinkToListOfOpportunities>
  <LinkToOpportunity>sample string 22</LinkToOpportunity>
  <Location>sample string 6</Location>
  <OpportunityAddress>sample string 24</OpportunityAddress>
  <OpportunityName>sample string 23</OpportunityName>
  <PictureUrl>sample string 21</PictureUrl>
  <Points>26</Points>
  <RequiresApproval>true</RequiresApproval>
  <SkillMultiplier>12</SkillMultiplier>
  <StartDateTime>2024-04-13T05:48:13.5822917-04:00</StartDateTime>
  <StatusText>sample string 16</StatusText>
  <Title>sample string 2</Title>
  <UpdatedOn>2024-04-13T05:48:13.5822917-04:00</UpdatedOn>
  <VolunteerOpportunityKey>a9528456-7b80-478e-8571-8ae2f6f92ebe</VolunteerOpportunityKey>
  <VolunteerOpportunityTypeKey>44b3c340-f31e-4991-b284-1c079ed10918</VolunteerOpportunityTypeKey>
  <VolunteerSpotsAvailable>25</VolunteerSpotsAvailable>
  <VolunteersNeeded>7</VolunteersNeeded>
</VolunteerOpportunity>