Skip to content

Create a new resource

POST
/resources/me

Creates a new resource allocation for a teacher

object
teacher_id
required

Teacher ID to associate with the resource

integer
total_resources
required

Total number of resources to allocate

integer
>= 1
study_year
required

Academic year for the resource allocation

string

Resource created successfully

object
success
boolean
true
data
object
resource_id
required

Unique identifier for the resource

integer
teacher_id
required

Teacher ID associated with the resource

integer
used_resources
required

Number of resources currently used

integer
total_resources
required

Total number of resources allocated

integer
study_year
required

Academic year for the resource allocation

string

Bad request - invalid input

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: BAD_REQUEST

Unauthorized - authentication required

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: UNAUTHORIZED

Forbidden - insufficient permissions

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: FORBIDDEN

Resource not found

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: NOT_FOUND

Internal server error

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: INTERNAL_SERVER_ERROR