Answers.Body: <p>The right place to experiment with possibilities of the API is API Explorer that you can find at <em>Support -> Developer - API Explorer</em> in your local CivCRM instance or on the <a href="http://dmaster.demo.civicrm.org/civicrm/api#explorer" rel="nofollow noreferrer">Demo site</a>. </p>
  
  <p>All the participants of an event can be selected with:</p>
  
  <p><code>http://dmaster.demo.civicrm.org/sites/all/modules/civicrm/extern/rest.php?entity=Participant&amp;action=get&amp;api_key=userkey&amp;key=sitekey&amp;json={"sequential":1,"event_id":3}</code></p>
  
  <p>The update of status can be accomplished with the create action in combination with an already existing participant_id. For example:</p>
  
  <p><code>http://dmaster.demo.civicrm.org/sites/all/modules/civicrm/extern/rest.php?entity=Participant&amp;action=create&amp;api_key=userkey&amp;key=sitekey&amp;json={"sequential":1,"id":3,"status_id":"Cancelled"}</code></p>
  
  <p>moves the status to Cancelled.</p>
  
  <p>Success with your app.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-03T12:47:00.753Z
Answers.Text: thanks for your reply. I managed continue using the Chain API calls to make it happened. It works great.
Answers.UserDisplayName: Jeff Salleh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-13T20:38:42.710Z
Answers.LastActivityDate: 2017-05-13T18:52:31.580Z
Answers.LastEditDate: 2017-05-13T18:52:31.580Z
Answers.UserDisplayName: Kainuk - CiviCooP
Body: <p>I am trying to find a way to bulk update participants' status via the REST api. I could only think of using the API chaining method. I tried to do a for loop to update individually but I got random number of successful updates.</p>
  
  <p>Would like to know if there is a better way to do it ? I am calling from an android app using Retrofit2.</p>
  
  <p>thanks,
  j.</p>
  
Tags: <rest>
Title: Bulk Update Participant Status via REST API
ThreadText: # Bulk Update Participant Status via REST API
  
  (Asked by: username_0 on 2016-12-13)
  
  I am trying to find a way to bulk update participants' status via the REST api. I could only think of using the API chaining method. I tried to do a for loop to update individually but I got random number of successful updates.
  
  Would like to know if there is a better way to do it ? I am calling from an android app using Retrofit2.
  
  thanks,
  j.
  
  **Tags:** rest
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-12-13. Score: 1
  
  The right place to experiment with possibilities of the API is API Explorer that you can find at *Support -> Developer - API Explorer* in your local CivCRM instance or on the [Demo site](http://dmaster.demo.civicrm.org/civicrm/api#explorer).
  
  All the participants of an event can be selected with:
  
  `http://dmaster.demo.civicrm.org/sites/all/modules/civicrm/extern/rest.php?entity=Participant&action=get&api_key=userkey&key=sitekey&json={"sequential":1,"event_id":3}`
  
  The update of status can be accomplished with the create action in combination with an already existing participant\_id. For example:
  
  `http://dmaster.demo.civicrm.org/sites/all/modules/civicrm/extern/rest.php?entity=Participant&action=create&api_key=userkey&key=sitekey&json={"sequential":1,"id":3,"status_id":"Cancelled"}`
  
  moves the status to Cancelled.
  
  Success with your app.
  
  > **Comments:**
  > **username_0**: thanks for your reply. I managed continue using the Chain API calls to make it happened. It works great.  
  
  ---
  
  