Skip to main content
POST
/
session-attendances
/
create
Create Session Attendance
curl --request POST \
  --url https://api.swoogo.com/api/v1/session-attendances/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data session_id=123 \
  --data registrant_id=123 \
  --data 'waiting_room_date=2022-06-26 14:30:00' \
  --data 'check_in_date=2022-06-26 14:30:00' \
  --data 'check_out_date=2022-06-26 14:30:00' \
  --data 'on_demand_date=2022-06-26 14:30:00'
{
  "id": 789,
  "session_id": "123",
  "registrant_id": "456",
  "waiting_room_date": "2022-06-26 14:25:00",
  "check_in_date": "2022-06-26 15:30:00",
  "check_out_date": "2022-06-26 16:30:00",
  "duration": "60",
  "on_demand_date": "2022-06-27 10:00:00"
}

Authorizations

Authorization
string
header
required

OAuth 2.0 bearer token obtained from POST /oauth2/token. Tokens expire after 30 minutes. Include in the Authorization header as Bearer {access_token}.

Body

session_id
string
Example:

"123"

registrant_id
string
Example:

"123"

waiting_room_date
string
Example:

"2022-06-26 14:30:00"

check_in_date
string
Example:

"2022-06-26 14:30:00"

check_out_date
string
Example:

"2022-06-26 14:30:00"

on_demand_date
string
Example:

"2022-06-26 14:30:00"

Response

Session Attendance created successfully

id
integer
Example:

789

session_id
string
Example:

"123"

registrant_id
string
Example:

"456"

waiting_room_date
string | null
Example:

"2022-06-26 14:25:00"

check_in_date
string | null
Example:

"2022-06-26 15:30:00"

check_out_date
string | null
Example:

"2022-06-26 16:30:00"

duration
string | null
Example:

"60"

on_demand_date
string | null
Example:

"2022-06-27 10:00:00"