---
updatedAt: 2026-06-09T10:44:05.000Z
agentTools:
  projectIndex: https://developer.phorest.com/llms.txt
---

# Update a client course

Update and return a client course for the specified business id and client course id

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Third Party API",
    "description": "This API allow third parties to integrate with Phorest internal core services such as core, online-booking, planner, etc. Please, see the <a href=\"http://dev-changelog.s3-website-eu-west-1.amazonaws.com/?prefix=/third-party-api-server/\" target=\"_blank\">CHANGELOG</a> for further information on API updates.",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.42.1"
  },
  "servers": [
    {
      "url": "http://api-gateway-eu.phorest.com/third-party-api-server",
      "description": "If you are from Europe, use this server"
    },
    {
      "url": "http://api-gateway-us.phorest.com/third-party-api-server",
      "description": "If you are from United States, Canada or Australia, use this server"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Client Course",
      "description": "Client Course Controller"
    }
  ],
  "paths": {
    "/api/business/{businessId}/clientcourse/{clientCourseId}": {
      "put": {
        "tags": [
          "Client Course"
        ],
        "summary": "Update a client course",
        "description": "Update and return a client course for the specified business id and client course id",
        "operationId": "updateClientCourse",
        "parameters": [
          {
            "name": "businessId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientCourseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClientCourseUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Client course updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientCourseResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Business or client course with the specified ids don't exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Client course has been updated since it was read",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Request rate limit exceeded. Current limit set to 100 rps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "id": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "errorCode": {
            "type": "string"
          }
        }
      },
      "ClientCourseUpdateRequest": {
        "type": "object",
        "properties": {
          "clientCourseId": {
            "type": "string",
            "example": "ab123"
          },
          "archived": {
            "type": "boolean",
            "example": false
          },
          "purchaseDate": {
            "type": "string",
            "example": "2018-01-01"
          },
          "expiryDate": {
            "type": "string",
            "format": "date",
            "example": "2018-01-01"
          }
        }
      },
      "ClientCourseItem": {
        "type": "object",
        "properties": {
          "clientCourseItemId": {
            "type": "string",
            "readOnly": true,
            "example": "ab123"
          },
          "courseItemId": {
            "type": "string",
            "readOnly": true,
            "example": "ab123"
          },
          "serviceId": {
            "type": "string",
            "readOnly": true,
            "example": "ab123"
          },
          "initialUnits": {
            "type": "integer",
            "format": "int32",
            "example": 10
          },
          "remainingUnits": {
            "type": "integer",
            "format": "int32",
            "example": 5
          },
          "grossPrice": {
            "type": "number",
            "example": 100
          },
          "netPrice": {
            "type": "number",
            "example": 80
          }
        }
      },
      "ClientCourseResponse": {
        "type": "object",
        "properties": {
          "clientCourseId": {
            "type": "string",
            "example": "ab123"
          },
          "archived": {
            "type": "boolean",
            "example": false
          },
          "purchaseDate": {
            "type": "string",
            "example": "2018-01-01"
          },
          "expiryDate": {
            "type": "string",
            "format": "date",
            "example": "2018-01-01"
          },
          "clientId": {
            "type": "string",
            "example": "ab123"
          },
          "purchasingBranchId": {
            "type": "string",
            "example": "ab123"
          },
          "courseId": {
            "type": "string",
            "example": "ab123"
          },
          "courseName": {
            "type": "string",
            "example": "10 x Massage"
          },
          "grossPrice": {
            "type": "number",
            "example": 100
          },
          "netPrice": {
            "type": "number",
            "example": 80
          },
          "createTime": {
            "type": "string",
            "description": "When the client course was created (UTC)",
            "format": "date-time",
            "readOnly": true,
            "example": "2026-09-14T10:15:00Z"
          },
          "updateTime": {
            "type": "string",
            "description": "When the client course was last updated (UTC). This is the value the updated_from and updated_to filters match against. Using a session only changes an item's remainingUnits and does not change this value.",
            "format": "date-time",
            "readOnly": true,
            "example": "2026-10-02T16:40:00Z"
          },
          "clientCourseItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClientCourseItem"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```