> 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.

# Update Back-Office Line

PATCH https://%7Bapi_version%7D/communications/masking/backoffice-lines/%7BcommunicationsBackofficeLine%7D
Content-Type: multipart/form-data

Update one or more fields on a back-office line. Permission: UPDATE_SETTINGS.

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

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: PropelBiz
  version: 1.0.0
paths:
  /%7Bapi_version%7D/communications/masking/backoffice-lines/%7BcommunicationsBackofficeLine%7D:
    patch:
      operationId: update-back-office-line
      summary: Update Back-Office Line
      description: >-
        Update one or more fields on a back-office line. 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_Update Back-Office Line_Response_200
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                e164:
                  type: string
                  description: >-
                    Optional: replace E.164 — same regex/uniqueness/loop-guard
                    rules as Create
                label:
                  type: string
                  description: 'Optional: replace label'
                is_active:
                  type: string
                  description: >-
                    Optional: boolean toggle. FR-7 rejects activating when
                    whisper require_accept=true and another active line already
                    exists
                sort_order:
                  type: string
                  description: 'Optional: integer ≥ 0'
              required:
                - e164
                - label
                - is_active
                - sort_order
servers:
  - url: https:/
components:
  schemas:
    29 Communications_Masking_Back-Office Lines_Update Back-Office Line_Response_200:
      type: object
      properties: {}
      description: Empty response body
      title: >-
        29 Communications_Masking_Back-Office Lines_Update Back-Office
        Line_Response_200

```

## SDK Code Examples

```python
import requests

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

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"e164\"\r\n\r\n+14155552671\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"label\"\r\n\r\nCustomer Support Line\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"is_active\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sort_order\"\r\n\r\n2\r\n-----011000010111000001101001--\r\n"
headers = {
    "{{tenant_key_name}}": "{{tenant_key_value1}}|{{tenant_key_value2}}",
    "Content-Type": "multipart/form-data; boundary=---011000010111000001101001"
}

response = requests.patch(url, data=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/%7BcommunicationsBackofficeLine%7D';
const form = new FormData();
form.append('e164', '+14155552671');
form.append('label', 'Customer Support Line');
form.append('is_active', 'true');
form.append('sort_order', '2');

const options = {
  method: 'PATCH',
  headers: {'{{tenant_key_name}}': '{{tenant_key_value1}}|{{tenant_key_value2}}'}
};

options.body = form;

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/%7BcommunicationsBackofficeLine%7D"

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"e164\"\r\n\r\n+14155552671\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"label\"\r\n\r\nCustomer Support Line\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"is_active\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sort_order\"\r\n\r\n2\r\n-----011000010111000001101001--\r\n")

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

	req.Header.Add("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}")

	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/%7BcommunicationsBackofficeLine%7D")

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

request = Net::HTTP::Patch.new(url)
request["{{tenant_key_name}}"] = '{{tenant_key_value1}}|{{tenant_key_value2}}'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"e164\"\r\n\r\n+14155552671\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"label\"\r\n\r\nCustomer Support Line\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"is_active\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sort_order\"\r\n\r\n2\r\n-----011000010111000001101001--\r\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.patch("https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/%7BcommunicationsBackofficeLine%7D")
  .header("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"e164\"\r\n\r\n+14155552671\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"label\"\r\n\r\nCustomer Support Line\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"is_active\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sort_order\"\r\n\r\n2\r\n-----011000010111000001101001--\r\n")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/%7BcommunicationsBackofficeLine%7D', [
  'multipart' => [
    [
        'name' => 'e164',
        'contents' => '+14155552671'
    ],
    [
        'name' => 'label',
        'contents' => 'Customer Support Line'
    ],
    [
        'name' => 'is_active',
        'contents' => 'true'
    ],
    [
        'name' => 'sort_order',
        'contents' => '2'
    ]
  ]
  'headers' => [
    '{{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/%7BcommunicationsBackofficeLine%7D");
var request = new RestRequest(Method.PATCH);
request.AddHeader("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}");
request.AddParameter("undefined", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"e164\"\r\n\r\n+14155552671\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"label\"\r\n\r\nCustomer Support Line\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"is_active\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"sort_order\"\r\n\r\n2\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["{{tenant_key_name}}": "{{tenant_key_value1}}|{{tenant_key_value2}}"]
let parameters = [
  [
    "name": "e164",
    "value": "+14155552671"
  ],
  [
    "name": "label",
    "value": "Customer Support Line"
  ],
  [
    "name": "is_active",
    "value": "true"
  ],
  [
    "name": "sort_order",
    "value": "2"
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "https://https/%7Bapi_version%7D/communications/masking/backoffice-lines/%7BcommunicationsBackofficeLine%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()
```