POST sessions/setTrack

POST /api/v2/sessions/setTrack

Creates a new session track for a given event.


Authentication

Authorization: Bearer <your_api_key>

Endpoint

POST /api/v2/sessions/setTrack

Body Parameters

Submitted as multipart/form-data.

Parameter

Type

Required

Description

event_id

integer

Yes

The ID of the event to create the track under

title

string

Yes

Track title

color

string

Yes

Track colour in hex format (e.g. #F7F7F7)


Response Format

Success Response (HTTP 200)

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

Error Responses

HTTP Code

Condition

Error Message

400

event_id, title, or color 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/setTrack" \
  -H "Authorization: Bearer your_api_key_here" \
  -F "event_id=7" \
  -F "title=Main Stage" \
  -F "color=#F7F7F7"