Best Answer

Create venue event

  • 11 October 2022
  • 2 replies
  • 76 views

Userlevel 2

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"
}

 

icon

Best answer by liza2022 11 October 2022, 21:09

View original

2 replies

Userlevel 2

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

Userlevel 7
Badge +4

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

Reply