Body: <p>I'm trying to create an event and chain the participants creation using the REST API from python. My attempt goes like this:</p>
  
  <pre><code>import requests
  
  params = {
   "key": "key",
   "api_key": "apikey",
   "json": 1,
   "sequential": 1,
   "entity": "Event",
   "action": "create",
   "title":"Test event",
   "start_date":20181005123600,
   "event_type_id":"Conference",
   "api.Participant.create": {"event_id":"$value.id","contact_id":"8","participant_status_id":"2"},
   "api.Participant.create.2": {"event_id":"$value.id","contact_id":"6","participant_status_id":"2"}
  }
  
  url = "some_url"
  response = requests.post(url, params = params)
  </code></pre>
  
  <p>For some reason the event is created but the participants are not. Could anyone give me a hint about what's happening?</p>
  
  <p>Thanks</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-05T11:05:30.567Z
Comments.Text: Can you check CiviCRM logs if there are any errors?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-05T11:16:47.033Z
Comments.Text: Sorry, I don't have access to the CiviCRM server @PradeepNayak
Comments.UserDisplayName: JME
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-05T12:02:40.100Z
Comments.Text: @JME If you don't have access to the server, it's probably best to stand up a demo server to test against.  It's very difficult to troubleshoot such an issue without access to the logs.
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <api><rest><chaining>
Title: Chaining Participants creation using REST API
ThreadText: # Chaining Participants creation using REST API
  
  (Asked by: username_0 on 2018-10-05)
  
  I'm trying to create an event and chain the participants creation using the REST API from python. My attempt goes like this:
  
  ```
  import requests
  
  params = {
   "key": "key",
   "api_key": "apikey",
   "json": 1,
   "sequential": 1,
   "entity": "Event",
   "action": "create",
   "title":"Test event",
   "start_date":20181005123600,
   "event_type_id":"Conference",
   "api.Participant.create": {"event_id":"$value.id","contact_id":"8","participant_status_id":"2"},
   "api.Participant.create.2": {"event_id":"$value.id","contact_id":"6","participant_status_id":"2"}
  }
  
  url = "some_url"
  response = requests.post(url, params = params)
  
  ```
  
  For some reason the event is created but the participants are not. Could anyone give me a hint about what's happening?
  
  Thanks
  
  **Tags:** api, rest, chaining
  
  > **Comments:**
  > **username_1**: Can you check CiviCRM logs if there are any errors?  
  > **username_0**: Sorry, I don't have access to the CiviCRM server @username_1  
  > **username_2**: @username_0 If you don't have access to the server, it's probably best to stand up a demo server to test against.  It's very difficult to troubleshoot such an issue without access to the logs.  
  
  ---
  
  ## 0 answers
  
  