1. Blocks
Lnk.Bio
  • Getting Started
    • Introduction
    • Endpoints
    • Authorization
    • Private Apps
      • Introduction
      • Create a Private App
      • Generate an Access Token
    • Public Apps
      • Introduction
      • Create a Public App
      • Generate an Access Token
  • API Methods
    • Me
      • Retrieve basic profile info
      • Update profile picture
    • Lnks
      • Retrieve list of current Lnks
      • Create a new Lnk
      • Delete an existing Lnk
      • Edit an existing Lnk
      • Bulk reorder Lnks
    • Groups
      • Retrieve list of Lnk Groups
    • Style
      • Get current style
      • Set profile colors
      • Set profile fonts
      • Set profile wallpapers
      • Apply a free theme
      • Reset theme to defaults
      • List available fonts
      • List available free themes
    • Pages
      • List all pages
      • Create a new page
      • Edit an existing page
      • Reorder pages
    • Blocks
      • Icons
        • Add an icon to a BLOCK_ICONS block
        • Edit an icon in a BLOCK_ICONS block
        • Search available icons
        • Delete an icon from a BLOCK_ICONS block
        • Sort icons within a BLOCK_ICONS block
      • Forms
        • List available forms
      • List blocks in a page
        GET
      • List supported block types
        GET
      • Add a block to a page
        POST
      • Delete a block from a page
        POST
      • Reorder blocks in a page
        POST
  • Schemas
    • Lnk
    • SuccessResponse
    • PageSummary
    • StyleData
    • BlockSummary
    • Font
    • FormSummary
    • ThemeSummary
    • BlockType
    • IconSummary
  1. Blocks

Reorder blocks in a page

POST
https://lnk.bio/oauth/v1/page/blocks/sort
Set the order of all blocks in a page. Every block currently in the page must be included in the request, or an error is returned.

Request

Authorization
OAuth 2.0
Authorization Code
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Authorize URL: https://lnk.bio/manage/access
Token URL: https://lnk.bio/oauth/token
or
Body Params application/x-www-form-urlencodedRequired

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://lnk.bio/oauth/v1/page/blocks/sort' \
--data-urlencode 'page_id=PAGE_ABOUT_6612a3b4c5d6e' \
--data-urlencode 'blocks=[{"id": "6612a3b4c5d6e7.12345678", "position": 0}, {"id": "6612a3b4c5d6e7.87654321", "position": 1}]'

Responses

🟢200
application/json
Blocks reordered successfully
Body

Example
{
    "status": true,
    "data": {
        "blocks": [
            {
                "id": "6612a3b4c5d6e7.12345678",
                "type": "BLOCK_TITLE",
                "position": 0
            }
        ]
    }
}
🟠400BadRequest
🟠401Unauthorized
Modified at 2026-04-11 06:25:10
Previous
Delete a block from a page
Next
Lnk
Built with