POST sessions/setType

POST /api/v2/sessions/setType

Creates a new session type for a given event.


Authentication

Authorization: Bearer <your_api_key>

Endpoint

POST /api/v2/sessions/setType

Body Parameters

Submitted as multipart/form-data.

Parameter

Type

Required

Description

event_id

integer

Yes

The ID of the event to create the session type under

title

string

Yes

The title for the new session type


Response Format

Success Response (HTTP 200)

JSON
{
  "code": 200,
  "response_id": "...",
  "data": {
    "id": 5,
    "status": "created"
  }
}

Error Responses

HTTP Code

Condition

Error Message

400

event_id or title is missing

Missing required parameter: <field>

400

event_id is not a valid integer

Param must be a integer: event_id

400

Event not found

Could not find an event with id = <event_id>

403

Missing or invalid API key

Forbidden


Example Request

Bash
curl -X POST "https://your-event-domain.com/api/v2/sessions/setType" \
  -H "Authorization: Bearer your_api_key_here" \
  -F "event_id=7" \
  -F "title=Keynote"