---
title: "Edit User Notes (Auth)"
method: PUT
path: "/api/artifacts/note/{noteId}"
tags: ["Artifact"]
---

# Edit User Notes (Auth)

`PUT /api/artifacts/note/{noteId}`

a note can not be edited by a user other than its owner or another using having note:moderate permission

## Path parameters

- `noteId` string, uuid, required

## Request body

- PostUserNote — New User Note For Artifact
  - `entityId` string, uuid — Artifact / Item Id
  - `noteType` 0 | 1 — Note Type
  - `contents` string, nullable — Contents
  - `referenceNoteId` string, uuid, nullable — Reference Note Id

## Response `200`

OK

- RUserNoteViewModel — Safe User Note View Model
  - `id` string, uuid — Id
  - `rAppUserId` string, uuid — User Id
  - `userName` string, nullable — User Name (FirstName + SurName)
  - `rUserImageId` string, uuid, nullable — user image id
  - `dateTime` string, nullable — DateTime
  - `modified` boolean — Is Updated by User
  - `lastModified` string, nullable — Last Modified
  - `noteType` 0 | 1 — Note Type
  - `htmlContent` string, nullable — content
  - `referenceNoteId` string, uuid, nullable — Reference Note Id
  - `status` 0 | 1 | 2 | 4 | 8 | 16 | 32 — Items or pictures status
  - `relatedEntityName` string, nullable — Related Entity (Artifact/Item) Name
  - `relatedEntityImageId` string, uuid — Realated entity Image Id
  - `relatedEntityFriendlyUrl` string, nullable — Realated entity Friendly Url (for artifact items it would be ParentFiendlyUrl/ItemFriendlyUrl )
  - `relatedEntityExternalNormalSizeImageUrl` string, nullable — Related entity external normal size image url
  - `relatedItemParentName` string, nullable — Related Item Artifact Name
  - `notes` RUserNoteViewModel[], nullable — child notes

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

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