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 |
|---|---|---|---|
|
|
integer |
Yes |
The ID of the event to create the session type under |
|
|
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 |
|
|
|
400 |
|
|
|
400 |
Event not found |
|
|
403 |
Missing or invalid API key |
|
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"