# Update SMS branding options (/docs/apis/management/branding/PatchSmsBrandingOptions)

`PATCH /branding/sms`

Applies a partial update to the SMS message templates used for system-generated notifications. Only fields included in the request are updated.

Base URL: `https://{tenant}.{region}.monocloud.com/api`, where `{tenant}`, `{region}` (one of us, eu, in) come from your tenant. Authentication: send your Management API key in the `X-API-KEY` header.

## Request body

JSON, required. The request payload used to update the SMS branding options.

- `sign_in` (PatchCustomSmsBrandingOptionsRequest) Configuration for sign-in SMS messages, including delivery enablement and message template.
  - `template` (string) Custom Liquid template used to render the SMS message content with runtime variables; when empty, the default template is used. Pro plan is required to use Custom Sms Templates
- `verification` (PatchCustomSmsBrandingOptionsRequest) Configuration for verification SMS messages, including delivery enablement and message template.
  - `template` (string) Custom Liquid template used to render the SMS message content with runtime variables; when empty, the default template is used. Pro plan is required to use Custom Sms Templates
- `password_reset` (PatchCustomSmsBrandingOptionsRequest) Configuration for password reset SMS messages, including delivery enablement and message template.
  - `template` (string) Custom Liquid template used to render the SMS message content with runtime variables; when empty, the default template is used. Pro plan is required to use Custom Sms Templates

## Response body

`200`, JSON. The branding SMS options were updated successfully

Returns `SmsBrandingOptions`.

- `sign_in` (CustomSmsBrandingOptions, required) Configuration for sign-in SMS messages, including delivery enablement and message template.
  - `template` (string) Custom Liquid template used to render the SMS message content with runtime variables; when empty, the default template is used.
- `verification` (CustomSmsBrandingOptions, required) Configuration for verification SMS messages, including delivery enablement and message template.
  - `template` (string) Custom Liquid template used to render the SMS message content with runtime variables; when empty, the default template is used.
- `password_reset` (CustomSmsBrandingOptions, required) Configuration for password reset SMS messages, including delivery enablement and message template.
  - `template` (string) Custom Liquid template used to render the SMS message content with runtime variables; when empty, the default template is used.

## Errors

- `400` Bad Request
  - `type` (string, required) A URI reference that identifies the error type. When accessed, it may provide human-readable documentation.
  - `title` (string, required) A short, human-readable summary of the error.
  - `status` (integer, required, int32) The HTTP status code associated with this error response.
  - `trace_id` (string, required) A unique identifier for the request, used for tracing and diagnostics.
  - `detail` (string) A human-readable explanation specific to this occurrence of the error.
  - `instance` (string) A URI reference that identifies the specific occurrence of the error.
- `401` Unauthorized
- `403` Forbidden
- `404` Not Found
  Same body as `400`.
- `422` Unprocessable Entity
  - `type` (string, required) A URI reference that identifies the error type. When accessed, it may provide human-readable documentation.
  - `title` (string, required) A short, human-readable summary of the error.
  - `status` (integer, required, int32) The HTTP status code associated with this error response.
  - `trace_id` (string, required) A unique identifier for the request, used for tracing and diagnostics.
  - `detail` (string) A human-readable explanation specific to this occurrence of the error.
  - `instance` (string) A URI reference that identifies the specific occurrence of the error.
  - `errors` (Record<string, string[]>, required) A key-value map of validation errors, where each key represents a request field and the value contains one or more messages describing why the request could not be processed.

## Example (MonoCloud .NET SDK)

```csharp
using MonoCloud.Management;
using MonoCloud.Management.Models;
using MonoCloud.Management.Core.Base;

var apiClient = new MonoCloudManagementClient(new MonoCloudConfig("<your-domain>", "[[API-Key]]"));


var requestBody = new PatchSmsBrandingOptionsRequest
  {
    SignIn = new PatchCustomSmsBrandingOptionsRequest
    {
      Template = "Your code for {{ client.name }} is {{ code }}",
    },
    Verification = new PatchCustomSmsBrandingOptionsRequest
    {
      Template = "Your code for {{ client.name }} is {{ code }}",
    },
    PasswordReset = new PatchCustomSmsBrandingOptionsRequest
    {
      Template = "Your code for {{ client.name }} is {{ code }}",
    },
  };


var result = await apiClient.Branding.PatchSmsBrandingOptionsAsync(requestBody);
```

## Example (MonoCloud Javascript SDK)

```javascript
import { MonoCloudManagementClient } from '@monocloud/management';

const apiClient = MonoCloudManagementClient.init({ domain: '<your-domain>', apiKey: '[[API-Key]]' });

const requestBody = {
  sign_in: {
    template: 'Your code for {{ client.name }} is {{ code }}'
  },
  verification: {
    template: 'Your code for {{ client.name }} is {{ code }}'
  },
  password_reset: {
    template: 'Your code for {{ client.name }} is {{ code }}'
  }
};

const result = apiClient.branding.patchSmsBrandingOptions(requestBody);
```