Your sidebar

.md

How this person arranged the admin panel's sidebar on the web, so the app can list its screens the same way.

Scopesadmin:read
GET/v1/admin/sidebar

The order, the pins and the headings somebody chose for the admin sidebar on the website, in the firm the request acts in. Arranging happens on the web.

A preference, never a list of what this person may open. Draw the screens from the permissions, and use this only to order them: an id here that you do not know, or that this person may not open, is skipped, and a screen this does not mention keeps its usual place. That is how the website reads it too, and it means a new screen never waits for anybody to rearrange their menu.

Needs a firm. Our own staff name one with the Propper-Workspace header.

Request

curl https://api.proppertrading.com/v1/admin/sidebar \
  -H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
  -H "Propper-Workspace: acme"

Response

{
    "data": {
        "object": "sidebar_layout",
        "arranged": true,
        "pinned": ["traders", "tickets"],
        "sections": [
            {
                "key": "crm",
                "label": "People",
                "items": ["traders", "kyc"],
                "hidden": false
            },
            {
                "key": "finance",
                "label": null,
                "items": ["payouts"],
                "hidden": true
            }
        ]
    },
    "meta": { "request_id": "req_01m501d5vyvf5pcm91r08xd4rz" }
}
FieldDescription
arrangedFalse when this person never arranged anything here. pinned and sections are empty then, and the usual order applies
pinnedScreen ids pinned to the top, in order
sections[].keyThe heading, by the key the website uses for it
sections[].labelThe name this person gave the heading, or null for its usual name
sections[].itemsScreen ids under it, in order
sections[].hiddenFolded away on the web

Errors

StatusCodeMeaning
400workspace_requiredAsked by our own staff without naming a firm
401invalid_tokenNot a token, or the secret does not match
401revoked_tokenSigned out here or from another device
401expired_tokenNinety days without use, or a set expiry passed
403admin_access_requiredThis account no longer helps run the environment
403insufficient_scopeThis device does not hold admin:read
403workspace_not_permittedThe Propper-Workspace header names an environment this account cannot act in