Get your free beta license ↗
API operation · export group
PUT

/profile/files/{id}

First published 14 Oct 20260.2.0Unchanged since publication

Change a registered file's note

Who may call it
AdministratorResellerCustomer
Token scope, any of
settingsall
Answers200 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

Run as root on the server

Parameters

idpath ·integerRequired

Request body

JSON ·ProfileFileNote· 1 field
notestring, up to 200 charactersRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
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

3 errors, each a status and a sentence
400Invalid note
401Authentication required
404Not registered
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/put-profile-files-id/