MetriBeacon
Menu

POST Move an entry in your personal list order

/api/v1/workspaces/{id}/list-orders/{list_group}/moves

Personal list order for the signed-in user in this workspace. Owner, editor and viewer can change their own order. Browser sessions only; changes need CSRF and an Idempotency-Key. Manual sorting keeps other entries in their relative order; new entries append and deleted or reassigned entries lose their position.

On this page

Access and permissions

Personal list order for the signed-in user in this workspace. Owner, editor and viewer can change their own order. Browser sessions only; changes need CSRF and an Idempotency-Key. Manual sorting keeps other entries in their relative order; new entries append and deleted or reassigned entries lose their position.

Browser session: __Host-mb_session cookie.

When using a browser session for a mutation, send the current CSRF token in X-CSRF-Token with the same-site cookie. OAuth consent uses its documented form field.

Parameters and headers

FieldLocationType and limitsRequiredMeaning
idPathstring; {"format":"uuid"}YesThe concrete workspace, member or invitation identifier. Foreign and unshared workspace identifiers grant no access.
list_groupPathstring; {"enum":["monitors","servers"]}YesList to reorder: monitors or servers.
Idempotency-KeyHeaderstring; {"minLength":16,"maxLength":128}YesPersist one identifier before the request and reuse it only for the same normalized payload and resource. Reusing it with different content returns 409.

Request body

FieldType and limitsRequiredMeaning
$object | objectYes—
$.expected_revisioninteger; {"minimum":0}YesCurrent order revision. Supply it as expected_revision when moving or resetting; another change returns 409.
$.device_idstring; {"format":"uuid"}Yes—
$.target_device_idstring; {"format":"uuid"}No—
$.placementstring; {"enum":["before","after","first","last"]}YesMove before or after target_device_id, or to the first or last position of the entire list. Only the moved entry changes its position.
$ (oneOf 1)objectNo—
$ (oneOf 1).placementJSON; {"enum":["before","after"]}No—
$ (oneOf 1).target_device_idstring; {"format":"uuid"}Yes—
$ (oneOf 2)objectNo—
$ (oneOf 2).placementJSON; {"enum":["first","last"]}No—

Responses

application/json

FieldType and limitsRequiredMeaning
$object; {"additionalProperties":false}Yes—
$.revisioninteger; {"minimum":0}YesCurrent order revision. Supply it as expected_revision when moving or resetting; another change returns 409.
$.has_custom_orderbooleanYes—
Stable error codes
unauthorized

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
browser_session_required
forbidden
csrf
invalid_origin
workspace_scope

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
not_found

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
revision_conflict
idempotency_conflict

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
invalid_list_order
invalid_idempotency_key
invalid_reference

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
unavailable

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—

Retries and asynchronous work

This change does not have a general retry guarantee. If the response is unclear, read the affected resource before trying again. Follow Retry-After waiting times and request new sign-in or action codes when they expire.

Request examples

Replace demo IDs, timestamps and placeholders with your own values. For a retry, keep the same IDs, time and content. These examples do not run requests on this page.

Keep login links, codes, cookies and keys private. Do not print them in logs or share them in support requests.

shell
curl --request POST --header "Cookie: $MB_COOKIE" --header "X-CSRF-Token: $MB_CSRF" --header "Idempotency-Key: $MB_OPERATION_ID" --header "Content-Type: application/json" --data '{"expected_revision":0,"device_id":"00000000-0000-4000-8000-000000000002","placement":"first"}' "https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/list-orders/monitors/moves"
python
import json, os, urllib.request
headers = {"Cookie": os.environ["MB_COOKIE"], "X-CSRF-Token": os.environ["MB_CSRF"], "Content-Type": "application/json"}
headers["Idempotency-Key"] = os.environ["MB_OPERATION_ID"]
request = urllib.request.Request("https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/list-orders/monitors/moves", method="POST", headers=headers, data='{"expected_revision":0,"device_id":"00000000-0000-4000-8000-000000000002","placement":"first"}'.encode())
with urllib.request.urlopen(request, timeout=30) as response:
    print(json.load(response))
javascript
const response = await fetch("https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/list-orders/monitors/moves", {method: "POST", credentials: "same-origin", headers: {"Content-Type":"application/json", "X-CSRF-Token":csrfToken, "Idempotency-Key":operationId}, body:JSON.stringify({"expected_revision":0,"device_id":"00000000-0000-4000-8000-000000000002","placement":"first"})});
console.log(response.status, await response.json());
go
package main
import ("fmt"; "net/http"; "os"; "strings"; "time")
func main() {
 client := &http.Client{Timeout:30*time.Second}
 request, err := http.NewRequest("POST","https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/list-orders/monitors/moves",strings.NewReader("{\"expected_revision\":0,\"device_id\":\"00000000-0000-4000-8000-000000000002\",\"placement\":\"first\"}"))
 if err != nil { panic(err) }
 request.Header.Set("Cookie",os.Getenv("MB_COOKIE"))
 request.Header.Set("X-CSRF-Token",os.Getenv("MB_CSRF"))
 request.Header.Set("Content-Type","application/json")
 request.Header.Set("Idempotency-Key",os.Getenv("MB_OPERATION_ID"))
 response,err := client.Do(request)
 if err != nil {panic(err)}
 defer response.Body.Close()
 fmt.Println(response.StatusCode)
}
  • HTTP API, OAuth and MCP

    Find the user API endpoints, their permissions, fields, examples and response formats.

  • GET Read your personal list order

    Personal list order for the signed-in user in this workspace. Owner, editor and viewer can change their own order. Browser sessions only; changes need CSRF and an Idempotency-Key. Manual sorting keeps other entries in their relative order; new entries append and deleted or reassigned entries lose their position.

  • DELETE Reset your personal list order

    Personal list order for the signed-in user in this workspace. Owner, editor and viewer can change their own order. Browser sessions only; changes need CSRF and an Idempotency-Key. Manual sorting keeps other entries in their relative order; new entries append and deleted or reassigned entries lose their position.

  • GET Search and page through devices in your workspace

    Search and page through devices in your workspace.