Skip to content

Create a class

POST
/v1/integration-api/classes
curl --request POST \
--url https://api.academy.example.com/v1/integration-api/classes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "Start November", "access": "internal" }'

Versioned integration contract.

Media typeapplication/json
object
name
required
string
>= 1 characters <= 120 characters
description
string
"" <= 2000 characters
access
string
default: internal
Allowed values: internal private

Example

{
"name": "Start November",
"access": "internal"
}

Success

Media typeapplication/json
object
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
name
required
string
description
required
string
access
required
string
Allowed values: internal public private
courseId
required
Any of:
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
learners
required
integer
>= -9007199254740991 <= 9007199254740991
teachers
required
integer
>= -9007199254740991 <= 9007199254740991
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/

Example

{
"id": "6f1c2a10-0000-4000-8000-0000000000e1",
"name": "Start November",
"description": "",
"access": "internal",
"courseId": null,
"learners": 0,
"teachers": 0,
"createdAt": "2026-11-03T08:00:00.000Z"
}

Error; error and message identify the reason

Media typeapplication/json
object
error
required

Stable code, e.g. insufficient_scope, not_found, validation_failed

string
message
string

Example generated

{
"error": "example",
"message": "example"
}