Creates a Teamraiser.
Client Servlet | Server Servlet | HTTP Methods Supported | Requires Authentication |
---|---|---|---|
CRTeamraiserAPI | SRTeamraiserAPI | POST | Server. |
This method accepts a list containing one or more TeamRaiser Event data blocks, up to a system-configurable maximum of 1000 Events, and asynchronously adds them to the Luminate Online database.
Input data is passed url-encoded as the value of the add_teamraiser parameter in the following format:
<addTeamraiserRequest xmlns="http://convio.com/crm/v1.0">
<baseFrId>1010</baseFrId>
<createAsChild>true</createAsChild>
<createAsBlueprint>false</createAsBlueprint>
<teamraiserCreate>
<eventStatus>2</eventStatus>
<eventDateDay>3</eventDateDay>
<eventDateMonth>11</eventDateMonth>
<eventDateYear>2011</eventDateYear>
<eventTitle>Mathathon 78705</eventTitle>
<eventUserTitle>Mathathon Austin Texas</eventUserTitle>
<eventLocalOfficeAttn>Chris</eventLocalOfficeAttn>
<eventLocalOfficeStreet1>123 Main St</eventLocalOfficeStreet1>
<eventLocalOfficeStreet2>Unit 194</eventLocalOfficeStreet2>
<eventLocalOfficeCity>Austin</eventLocalOfficeCity>
<eventLocalOfficeState>TX</eventLocalOfficeState>
<eventLocalOfficeZip>78726</eventLocalOfficeZip>
<fundraisingCampaign>1021</fundraisingCampaign>
<fundraisingForm>4</fundraisingForm>
<eventCategory>General</eventCategory>
<eventInterest>Math</eventInterest>
<prevFrId>1000</prevFrId>
<classificationId>Generic</classificationId>
<classificationId2>ABC123</classificationId2>
<fiscalYear>2010</fiscalYear>
<locale>en_US</locale>
<publicEventType>EventType3</publicEventType>
<eventDate>March 11th</eventDate>
<eventLocation>Cowboys Stadium</eventLocation>
<eventLocationStreet1>One Legends Way</eventLocationStreet1>
<eventLocationCity>Arlington</eventLocationCity>
<eventLocationState>TX</eventLocationState>
<eventLocationZip>76011</eventLocationZip>
<eventLocationCountry>United States</eventLocationCountry>
<eventLocationCounty>Dallas County</eventLocationCounty>
<eventLocationRegion>North Texas</eventLocationRegion>
<eventLocationArea>Dallas Metro</eventLocationArea>
<eventSchedule>Arrive at 11. The math begins at noon, prizes at 3pm.</eventSchedule>
<mapLink>www.maps.google.com/cowboysstadium</mapLink>
<coordinatorEmail>jjones@cowboys.com</coordinatorEmail>
<coordinatorName>Jerry Jones</coordinatorName>
<coordinatorPhone>(512) 555-5555</coordinatorPhone>
<sponsor1>Pepsi</sponsor1>
<sponsor2>Frito Lay</sponsor2>
<sponsor3>NFL</sponsor3>
<sponsor4>Ford</sponsor4>
<sponsor5>ESPN</sponsor5>
</teamraiserCreate>
<teamraiserCreate>
<eventDateDay>3</eventDateDay>
<eventDateMonth>11</eventDateMonth>
<eventDateYear>2011</eventDateYear>
<eventTitle>Mathathon 55901</eventTitle>
<eventUserTitle>Mathathon Rochester</eventUserTitle>
</teamraiserCreate>
<teamraiserCreate>
<eventDateDay>3</eventDateDay>
<eventDateMonth>11</eventDateMonth>
<eventDateYear>2011</eventDateYear>
<eventTitle>Mathathon 77047</eventTitle>
<eventUserTitle>Mathathon Houston</eventUserTitle>
</teamraiserCreate>
</addTeamraiserRequest>
Within the <addTeamraiserRequest> structure, the <baseFrId> is required. It specifies a blueprint event that will be used for all events added by the call. This event will be copied and all of its properties will be updated by the specified properties in each <teamRaiserCreate> element. The <createAsChild> and <createAsBlueprint> elements are optional, and default false. Their behavior is described in the following table:
createAsBlueprint | createAsChild | Result |
---|---|---|
false | false | Creates a TeamRaiser copy of the TeamRaiser event or Blueprint specified bybaseFrId. |
true | false | Creates a new Blueprint from the Blueprint specified bybaseFrId. |
false | true | Creates a child TeamRaiser Event from the Blueprint specified bybaseFrId. |
true | true | Creates a child Blueprint from the Blueprint specified bybaseFrId. |
The <addTeamraiserRequest> also contains a collection of one or more <teamraiserCreate> elements. Each specifies the TeamRaiser parameters that will be used to build the event. In each <teamraiserCreate> block, you must specify valid values for <eventDateDay>, <eventDateMonth>, <eventDateYear>, and <eventTitle> elements, and the value of <eventTitle> must be unique. All other elements are optional.
The elements of the <TeamRaiserCreate> structure are described as follows:
If the call is successful, it returns a unique job ID for the batch.
Prerequisites
API Administrator accounts that access this API must be assigned TeamRaiser API User permission under the TeamRaiser Management permission type.
This API requires that the TeamRaiser Blueprinting feature be enabled for your site.
See topic Common Parameters.
Required. XML document specifying the TeamRaiser events to add.
Type crm:addTeamraiserList.
See topic Common Parameters.
Required. XML document specifying the TeamRaiser events to add.
Type crm:addTeamraiserList.
See topic HTTP Status Codes.
XML response<?xml version="1.0" encoding="UTF-8"?>JSON response
<addTeamraiserResponse xsi:schemaLocation="http://convio.com/crm/v1.0 http://service.convio.net/xmlschema/crm.public.v1.xsd" xmlns="http://convio.com/crm/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<jobId>1451426381692</jobId>
</addTeamraiserResponse>
{"addTeamraiserResponse":{"jobId":"1454341419996"}}