Participants

From version 2016.3502

List all participants

Request

HTTP GET to /eventbookings/{eventbookingid}/participants.xml

Example:

 

GET:APIURL/eventbookings/44/participants.xml?apikey:338934897438

List one participant

Request

HTTP GET to /eventbookings/{eventbookingid}/participants/{id}.xml

Example:

 

GET:APIURL/eventbookings/44/participants/102.xml?apikey:338934897438

Modify participant

Request

HTTP PUT to  /eventbookings/{eventbookingid}/participants/{id}.xml

participantperson

No

participantperson=4

Person id in BRP for participant

firstnameNofirstname=KalleFirst name for participant
lastnameNolastname=KundLast name for participant

Name

Required

Value

Description

Add participant

Request

HTTP POST to  /eventbookings/{eventbookingid}/participants.xml

participantperson

No

participantperson=4

Person id in BRP for participant

firstnameNofirstname=MargeFirst name for participant
lastnameNolastname=SimpsonLast name for participant

Name

Required

Value

Description

Response

Response for add/modify/list one participant

<participant>
     <id>102</id>
     <personid>4</personid>
     <firstname>Marge</firstname>
     <lastname>Simpson</lastname>
</participant>
Response for list participants

 

<participants>
<participant>
      <id>102</id>
      <personid>4</personid>
      <firstname>Marge</firstname>
      <lastname>Simpson</lastname>
        </participant>
<participant>
      <id>103</id>
      <personid>7</personid>
      <firstname>Homer</firstname>
      <lastname>Simpson</lastname>
</participant>
....
</participants>

 

Remove participant

Removes the participant from eventbooking. It is not allowed to delete the last participant in an event booking.

Request

HTTP DELETE to  /eventbookings/{eventbookingid}/participants/{id}.xml

Response

HTTP 204
No contents.