Skip to main content
Best Answer

Create venue event

  • October 11, 2022
  • 3 replies
  • 106 views

Calling api POST /course/v1/sessions/{session_id}/events to create venue event and pass payload as 

{
  "name": "Evt-Session13-Zoom#34",
  "day": "2022-10-01",
  "time_begin": "09:00:00",
  "time_end": "12:00:00",
  "timezone": "America/Los_Angeles",
  "locations":41
}

getting error:

{
    "name": "Bad Request",
    "message": [
        "The event must have a venue or a webinar tool"
    ],
    "code": 0,
    "status": 400
}

Could you let know where to set venue in payload?

{
  "instructors": [
    0
  ],
  "name": "string",
  "day": "string",
  "description": "string",
  "time_begin": "string",
  "time_end": "string",
  "break_begin": "string",
  "break_end": "string",
  "timezone": "string",
  "id_classroom": 0,
  "id_location": 0,
  "collaboration_tool": "string",
  "cover_image": 0,
  "webinar_tool": "string",
  "id_tool_account": 0,
  "password": "string",
  "custom_url": "string",
  "allow_recording_completion": true,
  "allow_join_completion": true,
  "required_completion_percentage": 0,
  "join_in_advance_time_user": "string",
  "join_in_advance_time_teacher": "string",
  "adobe_connect_v2_template": "string",
  "adobe_connect_v2_folder": "string",
  "adobe_connect_v2_room": "string",
  "xapi_oauth_account": "string",
  "xapi_url": "string"
}

 

Best answer by liza2022

I thought to pass wrong property: “id_location” as “locations”. It works to pass “id_location

View original
Did this post help you find an answer to your question?

3 replies

  • Author
  • Contributor II
  • 16 replies
  • Answer
  • October 11, 2022

I thought to pass wrong property: “id_location” as “locations”. It works to pass “id_location


Bfarkas
Hero III
Forum|alt.badge.img+5
  • Hero III
  • 3582 replies
  • October 11, 2022

You’re getting the hang of it! Nice troubleshoot @liza2022 


  • Novice I
  • 1 reply
  • March 13, 2025

Anyone getting this error below using Postman to add events to sessions?

{    "name": "Bad Request",    "message": ["Invalid parameter: name", "Invalid parameter: day", "Invalid parameter: time_begin", "Invalid parameter: time_end", "Invalid parameter: timezone"],    "code": 1002,    "status": 400}

 

Postman Body:

{

"name": "{{Event Name}}",

"day": "{{Event Date}}",

"description": "",

"time_begin":"{{Event Start Time}}",

"time_end": "{{Event End Time}}",

"timezone": "{{Time Zones}}",

"id_classroom" : null,

"webinar_tool": "custom"

}


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings