Server notes

Endpoint: /api/servers/notes/

Manage notes attached to servers. Notes allow teams to document server configurations, maintenance history, and operational details. Notes support markdown formatting, private visibility, pinning, and user mentions.

List notes

Retrieve a paginated list of notes.

Request

http
GET /api/servers/notes/

Query parameters

ParameterTypeDescription
serverUUIDFilter by server ID
authorUUIDFilter by author user ID
privatebooleanFilter by private status
pinnedbooleanFilter by pinned status
searchstringSearch across content, server name, and author name
orderingstringSort order (e.g., -added_at, pinned). Default: -pinned, -added_at
pageintegerPage number
page_sizeintegerResults per page (default: 15, max: 100)

Response

json
{
  "count": 5,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": "c72e9f01-3a5b-4d8e-9f12-1a2b3c4d5e6f",
      "server": {
        "id": "7e3984de-49ab-4cc6-bcdf-21fbd35858b8",
        "name": "web-server-01",
        "os": "Ubuntu 22.04",
        "is_connected": true
      },
      "author": {
        "id": 1,
        "name": "admin",
        "email": "admin@example.com"
      },
      "content": "Upgraded to Ubuntu 22.04 LTS on 2024-01-15.",
      "private": false,
      "pinned": true,
      "added_at": "2024-01-15T14:30:00Z",
      "updated_at": "2024-01-15T14:30:00Z"
    }
  ]
}

Example

bash
curl -X GET "https://your-workspace.us1.alpacon.io/api/servers/notes/?server=7e3984de-49ab-4cc6-bcdf-21fbd35858b8&pinned=true" \
  -H "Authorization: token=\"alpat-xxxxxxxxxxxxxxxxxx\""

Error responses

StatusError codeDescription
400note_pin_limit_exceededMaximum 3 pinned notes per server
401—Invalid or missing authentication. Uncoded {"detail": "..."} response
403—Insufficient permissions (e.g., editing another user’s private note). Uncoded {"detail": "..."} response
403api_token_scope_missingThe API or service token doesn’t hold the note:<action> scope this request needs
404—Note not found. Uncoded {"detail": "..."} response
Last updated: