Skip to content

REST API: Desktop

View as Markdown

Generated from the daemon’s OpenAPI document. Conventions, sign-in, the CSRF header and the WebSocket are on API.

Responses

Any failure answers with problem details (application/problem+json) and a stable code from the error reference.

Saves the accent color and the wallpaper of the signed-in user, for every device. GET /api/desktop returns them.

Request body: application/json: Appearance

Responses

  • 204

Any failure answers with problem details (application/problem+json) and a stable code from the error reference.

Responses

Any failure answers with problem details (application/problem+json) and a stable code from the error reference.

Responses

Any failure answers with problem details (application/problem+json) and a stable code from the error reference.

Creates an item. The answer is 201 with the item, its URL as Location and its version as ETag.

Request body: application/json: NewDesktopItem

Responses

Any failure answers with problem details (application/problem+json) and a stable code from the error reference.

Changes one item; fields left out stay. Send the item’s version from GET /api/desktop/items or the ETag of its last change as If-Match: “n”. If the item changed in between (for example on another device), the answer is 412 with desktop.item.conflict and the current version in params.version. Without If-Match the change is unconditional. The new version comes back as ETag.

Parameters

Name In Type Required Description
id path integer (int64) yes
If-Match header string no

Request body: application/json: DesktopItemChange

Responses

Any failure answers with problem details (application/problem+json) and a stable code from the error reference.

Deletes one item. Deleting an item that does not exist (any more) also answers 204.

Parameters

Name In Type Required Description
id path integer (int64) yes

Responses

  • 204

Any failure answers with problem details (application/problem+json) and a stable code from the error reference.

Saves this device’s layout. Send the version from GET /api/desktop or the ETag of the last save as If-Match: “n”. If another tab saved in between, the answer is 412 with desktop.layout.conflict and the current version in params.version. Without If-Match the save is unconditional. The new version comes back as ETag.

Parameters

Name In Type Required Description
If-Match header string no

Request body: application/json: JsonElement

Responses

  • 204

Any failure answers with problem details (application/problem+json) and a stable code from the error reference.

Request body: application/json: CopyLayoutRequest

Responses

Any failure answers with problem details (application/problem+json) and a stable code from the error reference.

Parameters

Name In Type Required Description
appId path string yes

Request body: application/json: WindowPreferenceRequest

Responses

  • 204

Any failure answers with problem details (application/problem+json) and a stable code from the error reference.