> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-unsw-v6.advance-uac.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-unsw-v6.advance-uac.com/_mcp/server.

# Update course

PUT https://institution/catalogue/courses/{code}/{year}
Content-Type: application/json

Reference: https://docs-unsw-v6.advance-uac.com/unsw-advance-institution-api/institution/catalogue/course/update-course

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /institution/catalogue/courses/{code}/{year}:
    put:
      operationId: Update course
      summary: Update course
      tags:
        - course
      parameters:
        - name: code
          in: path
          required: true
          schema:
            type: string
        - name: year
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/institution_catalogue_course_Update
                  course_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                creditPoints:
                  type: integer
                studyLevel:
                  type: string
                fieldOfEducation:
                  type: string
                facultyName:
                  type: string
                schoolName:
                  type: string
                externalIds:
                  $ref: >-
                    #/components/schemas/InstitutionCatalogueCoursesCodeYearPutRequestBodyContentApplicationJsonSchemaExternalIds
              required:
                - name
                - creditPoints
                - studyLevel
                - fieldOfEducation
                - facultyName
                - schoolName
                - externalIds
servers:
  - url: https:/
    description: https://{baseurl}
components:
  schemas:
    InstitutionCatalogueCoursesCodeYearPutRequestBodyContentApplicationJsonSchemaExternalIds:
      type: object
      properties:
        handbook:
          type: string
      required:
        - handbook
      title: >-
        InstitutionCatalogueCoursesCodeYearPutRequestBodyContentApplicationJsonSchemaExternalIds
    institution_catalogue_course_Update course_Response_200:
      type: object
      properties:
        id:
          type: string
          format: uuid
        code:
          type: string
        year:
          type: integer
        status:
          type: string
      required:
        - id
        - code
        - year
        - status
      title: institution_catalogue_course_Update course_Response_200
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{
  "name": "Test course",
  "creditPoints": 6,
  "studyLevel": "Undergraduate",
  "fieldOfEducation": "080101 Accounting",
  "facultyName": "UNSW Business School",
  "schoolName": "School of Accounting, Auditing and Taxation",
  "externalIds": {
    "handbook": "1234567890"
  }
}
```

**Response**

```json
{
  "id": "7a1716cd-b127-4c15-abea-0592d3750d31",
  "code": "TEST-COURSE-1111",
  "year": 2026,
  "status": "updated"
}
```

**SDK Code**

```python institution_catalogue_course_Update course_example
import requests

url = "https://https/institution/catalogue/courses/TEST-COURSE-1111/2026"

payload = {
    "name": "Test course",
    "creditPoints": 6,
    "studyLevel": "Undergraduate",
    "fieldOfEducation": "080101 Accounting",
    "facultyName": "UNSW Business School",
    "schoolName": "School of Accounting, Auditing and Taxation",
    "externalIds": { "handbook": "1234567890" }
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript institution_catalogue_course_Update course_example
const url = 'https://https/institution/catalogue/courses/TEST-COURSE-1111/2026';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"name":"Test course","creditPoints":6,"studyLevel":"Undergraduate","fieldOfEducation":"080101 Accounting","facultyName":"UNSW Business School","schoolName":"School of Accounting, Auditing and Taxation","externalIds":{"handbook":"1234567890"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go institution_catalogue_course_Update course_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/institution/catalogue/courses/TEST-COURSE-1111/2026"

	payload := strings.NewReader("{\n  \"name\": \"Test course\",\n  \"creditPoints\": 6,\n  \"studyLevel\": \"Undergraduate\",\n  \"fieldOfEducation\": \"080101 Accounting\",\n  \"facultyName\": \"UNSW Business School\",\n  \"schoolName\": \"School of Accounting, Auditing and Taxation\",\n  \"externalIds\": {\n    \"handbook\": \"1234567890\"\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby institution_catalogue_course_Update course_example
require 'uri'
require 'net/http'

url = URI("https://https/institution/catalogue/courses/TEST-COURSE-1111/2026")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"Test course\",\n  \"creditPoints\": 6,\n  \"studyLevel\": \"Undergraduate\",\n  \"fieldOfEducation\": \"080101 Accounting\",\n  \"facultyName\": \"UNSW Business School\",\n  \"schoolName\": \"School of Accounting, Auditing and Taxation\",\n  \"externalIds\": {\n    \"handbook\": \"1234567890\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java institution_catalogue_course_Update course_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://https/institution/catalogue/courses/TEST-COURSE-1111/2026")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"Test course\",\n  \"creditPoints\": 6,\n  \"studyLevel\": \"Undergraduate\",\n  \"fieldOfEducation\": \"080101 Accounting\",\n  \"facultyName\": \"UNSW Business School\",\n  \"schoolName\": \"School of Accounting, Auditing and Taxation\",\n  \"externalIds\": {\n    \"handbook\": \"1234567890\"\n  }\n}")
  .asString();
```

```php institution_catalogue_course_Update course_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://https/institution/catalogue/courses/TEST-COURSE-1111/2026', [
  'body' => '{
  "name": "Test course",
  "creditPoints": 6,
  "studyLevel": "Undergraduate",
  "fieldOfEducation": "080101 Accounting",
  "facultyName": "UNSW Business School",
  "schoolName": "School of Accounting, Auditing and Taxation",
  "externalIds": {
    "handbook": "1234567890"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp institution_catalogue_course_Update course_example
using RestSharp;

var client = new RestClient("https://https/institution/catalogue/courses/TEST-COURSE-1111/2026");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"Test course\",\n  \"creditPoints\": 6,\n  \"studyLevel\": \"Undergraduate\",\n  \"fieldOfEducation\": \"080101 Accounting\",\n  \"facultyName\": \"UNSW Business School\",\n  \"schoolName\": \"School of Accounting, Auditing and Taxation\",\n  \"externalIds\": {\n    \"handbook\": \"1234567890\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift institution_catalogue_course_Update course_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "Test course",
  "creditPoints": 6,
  "studyLevel": "Undergraduate",
  "fieldOfEducation": "080101 Accounting",
  "facultyName": "UNSW Business School",
  "schoolName": "School of Accounting, Auditing and Taxation",
  "externalIds": ["handbook": "1234567890"]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/institution/catalogue/courses/TEST-COURSE-1111/2026")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```