PUT api/Course/{id}
Documentation for 'Put'.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | Documentation for 'id'. |
Define this parameter in the request URI. |
resource | Documentation for 'resource'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "id": 1, "fullname": "sample string 2", "shortname": "sample string 3", "categoryid": 1, "idnumber": "sample string 4", "summary": "sample string 5", "summaryformat": 1, "format": "sample string 6", "showgrades": 1, "newsitems": 1, "startdate": 1, "numsections": 1, "maxbytes": 1, "showreports": 1, "visible": 1, "groupmode": 1, "groupmodeforce": 1, "defaultgroupingid": 1, "enablecompletion": 1, "completionnotify": 1, "lang": "sample string 7", "forcetheme": "sample string 8", "courseformatoptions": [ { "name": "sample string 1", "value": "sample string 2" }, { "name": "sample string 1", "value": "sample string 2" }, { "name": "sample string 1", "value": "sample string 2" } ], "image": "sample string 9", "knowledgearea": 10, "spotlightstart": "2025-04-04T00:28:03.7175501-03:00", "spotlightend": "2025-04-04T00:28:03.7175501-03:00" }
application/xml, text/xml
Sample:
<CourseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AVA_API.DTO"> <categoryid>1</categoryid> <completionnotify>1</completionnotify> <courseformatoptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/AVA_API.DTO.Moodle.Course"> <d2p1:courseformatoptions> <d2p1:name>sample string 1</d2p1:name> <d2p1:value>sample string 2</d2p1:value> </d2p1:courseformatoptions> <d2p1:courseformatoptions> <d2p1:name>sample string 1</d2p1:name> <d2p1:value>sample string 2</d2p1:value> </d2p1:courseformatoptions> <d2p1:courseformatoptions> <d2p1:name>sample string 1</d2p1:name> <d2p1:value>sample string 2</d2p1:value> </d2p1:courseformatoptions> </courseformatoptions> <defaultgroupingid>1</defaultgroupingid> <enablecompletion>1</enablecompletion> <forcetheme>sample string 8</forcetheme> <format>sample string 6</format> <fullname>sample string 2</fullname> <groupmode>1</groupmode> <groupmodeforce>1</groupmodeforce> <id>1</id> <idnumber>sample string 4</idnumber> <image>sample string 9</image> <knowledgearea>10</knowledgearea> <lang>sample string 7</lang> <maxbytes>1</maxbytes> <newsitems>1</newsitems> <numsections>1</numsections> <shortname>sample string 3</shortname> <showgrades>1</showgrades> <showreports>1</showreports> <spotlightend>2025-04-04T00:28:03.7175501-03:00</spotlightend> <spotlightstart>2025-04-04T00:28:03.7175501-03:00</spotlightstart> <startdate>1</startdate> <summary>sample string 5</summary> <summaryformat>1</summaryformat> <visible>1</visible> </CourseDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.