# PUT /profile/files/{id}

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the export group.

Change a registered file's note

- Who may call it: administrator
- Token scope, any of: settings, all
- Answers: 200 OK

This operation updates only the stored note. Set note to up to 200 printable ASCII characters or pass an empty string to clear it. The response returns the updated registration in file with the same details as GET /profile/files/{id}. The API returns 400 for an invalid note and 404 if id does not identify a registration.

## As a command

- [urbestack-profile-file-note](https://urbestack.com/docs/commands/urbestack-profile-file-note.md): Changes the note for a registered hand-edited file.

## Parameters

- `id` (path, integer, required)

## Request body

JSON, the type [ProfileFileNote](https://urbestack.com/docs/api/types/ProfileFileNote.md).

- `note` (string, up to 200 characters, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X PUT "$API/profile/files/1" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "note": "added by hand"
  }'
```

Response, 200 OK:

```
{
  "file": {
    "changed_at": "text",
    "created_at": "2026-09-09T10:15:00Z",
    "group": "text",
    "id": 1,
    "mode": "text",
    "note": "added by hand",
    "owner": "text",
    "package": {
      "name": "alice",
      "version": "0.0.1"
    },
    "path": "public_html/index.php",
    "present": true,
    "size": 1
  }
}
```

## Errors

- 400: Invalid note
- 401: Authentication required
- 404: Not registered
