Skip to main content
Question

API using Postman

  • March 13, 2025
  • 3 replies
  • 130 views

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"

}

3 replies

Forum|alt.badge.img
  • Novice I
  • March 19, 2025

Which endpoint are you using? Also, is that the structure of the json payload you are using?


Forum|alt.badge.img+1
  • March 20, 2025

Take a look at the body schema for the API endpoint to ensure the values you are using are in the correct format. Otherwise you would receive those errors.


hailey.gebhart
Helper III
Forum|alt.badge.img

@pmckay I usually get those errors when I have data in the incorrect format for the API. For dates, most endpoints require the following format: “YYYY-MM-DD HH:MM:SS,” So if you have any time zone data or the string for the date has the “YYYY-MM_DDTHH:MM:SS-TimeZone: or you don’t have seconds, it will throw that error.