Create Many Subjects
Testing
POST
/courses/{courseId}/subjects/many
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.aladia.io/v2/courses//subjects/many' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"title": "Subject 1",
"description": "Subject 1 description",
"color": "#ccc",
"teachers": [
"6739727c1b97ef9cf5a2a972",
"673972a81b97ef9cf5a2a9bb"
],
"autoGenerated": true
},
{
"title": "Subject 2",
"description": "Subject 2 description",
"color": "#ccc",
"teachers": [
"6739727c1b97ef9cf5a2a972",
"673972a81b97ef9cf5a2a9bb"
],
"autoGenerated": true
}
]'
Response Response Example
201 - Success
[
{
"id": "673c9204509c9de428fc781a",
"title": "2024-11-19T13:26:28.737Z",
"color": "#ADD8E6",
"lectures": [],
"teachers": [
"6739727c1b97ef9cf5a2a972",
"673972a81b97ef9cf5a2a9bb"
],
"courseId": "673c8cf5509c9de428fc76f3",
"createdAt": "Tue Nov 19 2024 16:26:28 GMT+0300 (Arabian Standard Time)",
"updatedAt": "Tue Nov 19 2024 16:26:28 GMT+0300 (Arabian Standard Time)",
"description": "Subject 1 description"
},
{
"id": "673c9204509c9de428fc781b",
"title": "2024-11-19T13:26:28.737Z",
"color": "#581845",
"lectures": [],
"teachers": [
"6739727c1b97ef9cf5a2a972",
"673972a81b97ef9cf5a2a9bb"
],
"courseId": "673c8cf5509c9de428fc76f3",
"createdAt": "Tue Nov 19 2024 16:26:28 GMT+0300 (Arabian Standard Time)",
"updatedAt": "Tue Nov 19 2024 16:26:28 GMT+0300 (Arabian Standard Time)",
"description": "Subject 2 description"
}
]
Request
Path Params
courseId
stringÂ
required
Header Params
apikey
stringÂ
optional
Example:
{{apikey}}
Body Params application/json
Responses
Modified at 2025-04-08 10:55:49