Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

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

person

No

person=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

person

No

person=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>102</id>
      <personid>4</personid>
      <firstname>Marge</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.