---
title: "Edit commission log entry"
method: PATCH
path: "/api/files/sales/{saleGuid}/commissionLog/{commentId}"
tags: ["Sale Additional Commissions Information Log"]
---

# Edit commission log entry

`PATCH /api/files/sales/{saleGuid}/commissionLog/{commentId}`

Updates an existing commission log entry's comment text and/or visibility. Broker, auditor, and trial broker can edit any public note; agents can only edit their own notes. Only the note creator can update the text of a private note. Only privileged roles (broker, auditor, trial broker) can change visibility.

### Validation & Requirements
#### Required Parameters
- `saleGuid` (path, string, format=guid)
- `commentId` (path, integer, format=int32)
- `form` (body, object)

#### Required JSON Body Fields
- None

#### Validations
- Invalid GUID values in `*Guid`/`*Guids` fields return `422 Unprocessable Entity`.
- Invalid date values in `*date*` fields return `422 Unprocessable Entity`.
- Missing required request body returns `422 Unprocessable Entity` with `Missing request body.`.
- Additional business-rule validation may return `422` with details in the `errors` array.

#### Integration Requirement
- Retrieve the corresponding `...Form` endpoint immediately before write operations to get current dynamic required fields and allowed values.

## Path parameters

- `saleGuid` string, guid, required
- `commentId` integer, required

## Request body

- EditCommissionLogForm
  - `comment` string, nullable
  - `isPrivate` boolean, nullable

## Response `200`

- LinkedResponseOfEditCommissionLogResponse
  - `value` EditCommissionLogResponse
    - `saleGuid` string, guid
    - `commentId` integer
  - `warnings` string[], nullable
  - `links` Link[], nullable
    - `href` string, nullable
    - `rel` string, nullable
    - `method` string, nullable

## Other responses

- `403`
- `404`
- `422`

---

[API](https://skmtc.net/skyslope/apis/skyslope-api.md) · [All operations](https://skmtc.net/skyslope/apis/skyslope-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skyslope/skyslope-api/revisions/bad0d2db9b7a/schema)
