POST api/Courses?category_id={category_id}&course_name={course_name}&userid={userid}&_workshop_session_id={_workshop_session_id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
category_id | integer |
Required |
|
course_name | string |
Required |
|
userid | integer |
Required |
|
_workshop_session_id | integer |
Required |
Body Parameters
Collection of Available_TutorName | Description | Type | Additional information |
---|---|---|---|
firstname | string |
None. |
|
lastname | string |
None. |
|
id | integer |
None. |
|
capacity | integer |
None. |
|
total_enrolments | integer |
None. |
|
available_spaces | integer |
None. |
|
disabled | boolean |
None. |
|
notes | string |
None. |
|
relevant_support_course_id | integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "firstname": "sample string 1", "lastname": "sample string 2", "id": 3, "capacity": 4, "total_enrolments": 5, "available_spaces": 6, "disabled": true, "notes": "sample string 8", "relevant_support_course_id": 9 }, { "firstname": "sample string 1", "lastname": "sample string 2", "id": 3, "capacity": 4, "total_enrolments": 5, "available_spaces": 6, "disabled": true, "notes": "sample string 8", "relevant_support_course_id": 9 } ]
application/xml, text/xml
Sample:
<ArrayOfCoursesController.Available_Tutor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Totara.WEBAPI.Controllers"> <CoursesController.Available_Tutor> <available_spaces>6</available_spaces> <capacity>4</capacity> <disabled>true</disabled> <firstname>sample string 1</firstname> <id>3</id> <lastname>sample string 2</lastname> <notes>sample string 8</notes> <relevant_support_course_id>9</relevant_support_course_id> <total_enrolments>5</total_enrolments> </CoursesController.Available_Tutor> <CoursesController.Available_Tutor> <available_spaces>6</available_spaces> <capacity>4</capacity> <disabled>true</disabled> <firstname>sample string 1</firstname> <id>3</id> <lastname>sample string 2</lastname> <notes>sample string 8</notes> <relevant_support_course_id>9</relevant_support_course_id> <total_enrolments>5</total_enrolments> </CoursesController.Available_Tutor> </ArrayOfCoursesController.Available_Tutor>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>