> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itspropel.com/llms.txt.
> For full documentation content, see https://docs.itspropel.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itspropel.com/_mcp/server.

# Reorder Back-Office Lines

POST https://%7Bapi_version%7D/communications/masking/backoffice-lines/reorder
Content-Type: application/json

Atomic bulk-update of sort_order across the (tenant, tenant_location) lines. Pass each uuid + new sort_order. Transaction wraps the whole batch — any unknown UUID rolls back the entire change. Permission: UPDATE_SETTINGS.

Reference: https://docs.itspropel.com/propel-biz/29-communications/masking/back-office-lines/reorder-back-office-lines

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: PropelBiz
  version: 1.0.0
paths:
  /%7Bapi_version%7D/communications/masking/backoffice-lines/reorder:
    post:
      operationId: reorder-back-office-lines
      summary: Reorder Back-Office Lines
      description: >-
        Atomic bulk-update of sort_order across the (tenant, tenant_location)
        lines. Pass each uuid + new sort_order. Transaction wraps the whole
        batch — any unknown UUID rolls back the entire change. Permission:
        UPDATE_SETTINGS.
      tags:
        - >-
          subpackage_29Communications.subpackage_29Communications/masking.subpackage_29Communications/masking/backOfficeLines
      parameters:
        - name: '{{tenant_key_name}}'
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/29 Communications_Masking_Back-Office
                  Lines_Reorder Back-Office Lines_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                lines:
                  type: array
                  items:
                    $ref: >-
                      #/components/schemas/7BapiVersion7DCommunicationsMaskingBackofficeLinesReorderPostRequestBodyContentApplicationJsonSchemaLinesItems
              required:
                - lines
servers:
  - url: https:/
components:
  schemas:
    7BapiVersion7DCommunicationsMaskingBackofficeLinesReorderPostRequestBodyContentApplicationJsonSchemaLinesItems:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
        sort_order:
          type: integer
      required:
        - uuid
        - sort_order
      title: >-
        7BapiVersion7DCommunicationsMaskingBackofficeLinesReorderPostRequestBodyContentApplicationJsonSchemaLinesItems
    29 Communications_Masking_Back-Office Lines_Reorder Back-Office Lines_Response_200:
      type: object
      properties: {}
      description: Empty response body
      title: >-
        29 Communications_Masking_Back-Office Lines_Reorder Back-Office
        Lines_Response_200

```

## SDK Code Examples

```python
import requests

url = "https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/reorder"

payload = { "lines": [
        {
            "uuid": "a3f1c9e2-4b7d-4f8a-9c2e-1d2f3b4a5c6d",
            "sort_order": 1
        },
        {
            "uuid": "b4d2e8f3-5c8e-4a9b-8d3f-2e3f4c5b6d7e",
            "sort_order": 2
        },
        {
            "uuid": "c5e3f9a4-6d9f-5b0c-9e4g-3f4g5d6c7e8f",
            "sort_order": 3
        }
    ] }
headers = {
    "{{tenant_key_name}}": "{{tenant_key_value1}}|{{tenant_key_value2}}",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/reorder';
const options = {
  method: 'POST',
  headers: {
    '{{tenant_key_name}}': '{{tenant_key_value1}}|{{tenant_key_value2}}',
    'Content-Type': 'application/json'
  },
  body: '{"lines":[{"uuid":"a3f1c9e2-4b7d-4f8a-9c2e-1d2f3b4a5c6d","sort_order":1},{"uuid":"b4d2e8f3-5c8e-4a9b-8d3f-2e3f4c5b6d7e","sort_order":2},{"uuid":"c5e3f9a4-6d9f-5b0c-9e4g-3f4g5d6c7e8f","sort_order":3}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/reorder"

	payload := strings.NewReader("{\n  \"lines\": [\n    {\n      \"uuid\": \"a3f1c9e2-4b7d-4f8a-9c2e-1d2f3b4a5c6d\",\n      \"sort_order\": 1\n    },\n    {\n      \"uuid\": \"b4d2e8f3-5c8e-4a9b-8d3f-2e3f4c5b6d7e\",\n      \"sort_order\": 2\n    },\n    {\n      \"uuid\": \"c5e3f9a4-6d9f-5b0c-9e4g-3f4g5d6c7e8f\",\n      \"sort_order\": 3\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/reorder")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["{{tenant_key_name}}"] = '{{tenant_key_value1}}|{{tenant_key_value2}}'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"lines\": [\n    {\n      \"uuid\": \"a3f1c9e2-4b7d-4f8a-9c2e-1d2f3b4a5c6d\",\n      \"sort_order\": 1\n    },\n    {\n      \"uuid\": \"b4d2e8f3-5c8e-4a9b-8d3f-2e3f4c5b6d7e\",\n      \"sort_order\": 2\n    },\n    {\n      \"uuid\": \"c5e3f9a4-6d9f-5b0c-9e4g-3f4g5d6c7e8f\",\n      \"sort_order\": 3\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/reorder")
  .header("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}")
  .header("Content-Type", "application/json")
  .body("{\n  \"lines\": [\n    {\n      \"uuid\": \"a3f1c9e2-4b7d-4f8a-9c2e-1d2f3b4a5c6d\",\n      \"sort_order\": 1\n    },\n    {\n      \"uuid\": \"b4d2e8f3-5c8e-4a9b-8d3f-2e3f4c5b6d7e\",\n      \"sort_order\": 2\n    },\n    {\n      \"uuid\": \"c5e3f9a4-6d9f-5b0c-9e4g-3f4g5d6c7e8f\",\n      \"sort_order\": 3\n    }\n  ]\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/reorder', [
  'body' => '{
  "lines": [
    {
      "uuid": "a3f1c9e2-4b7d-4f8a-9c2e-1d2f3b4a5c6d",
      "sort_order": 1
    },
    {
      "uuid": "b4d2e8f3-5c8e-4a9b-8d3f-2e3f4c5b6d7e",
      "sort_order": 2
    },
    {
      "uuid": "c5e3f9a4-6d9f-5b0c-9e4g-3f4g5d6c7e8f",
      "sort_order": 3
    }
  ]
}',
  'headers' => [
    'Content-Type' => 'application/json',
    '{{tenant_key_name}}' => '{{tenant_key_value1}}|{{tenant_key_value2}}',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/reorder");
var request = new RestRequest(Method.POST);
request.AddHeader("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"lines\": [\n    {\n      \"uuid\": \"a3f1c9e2-4b7d-4f8a-9c2e-1d2f3b4a5c6d\",\n      \"sort_order\": 1\n    },\n    {\n      \"uuid\": \"b4d2e8f3-5c8e-4a9b-8d3f-2e3f4c5b6d7e\",\n      \"sort_order\": 2\n    },\n    {\n      \"uuid\": \"c5e3f9a4-6d9f-5b0c-9e4g-3f4g5d6c7e8f\",\n      \"sort_order\": 3\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "{{tenant_key_name}}": "{{tenant_key_value1}}|{{tenant_key_value2}}",
  "Content-Type": "application/json"
]
let parameters = ["lines": [
    [
      "uuid": "a3f1c9e2-4b7d-4f8a-9c2e-1d2f3b4a5c6d",
      "sort_order": 1
    ],
    [
      "uuid": "b4d2e8f3-5c8e-4a9b-8d3f-2e3f4c5b6d7e",
      "sort_order": 2
    ],
    [
      "uuid": "c5e3f9a4-6d9f-5b0c-9e4g-3f4g5d6c7e8f",
      "sort_order": 3
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/reorder")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```