---
title: "Create org email invite brand resource"
url: "https://docs.signnow.com/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite"
type: "endpoint"
section: "organization-branding"
slug: "organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite"
method: "PUT"
path: "/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite"
operation_id: "put-v2-organizations-organization-id-brands-brand-id-resources-email-invite"
authorization: "bearer"
---

# Create org email invite brand resource

`PUT /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite`

This endpoint allows organization admins and moderators to set the texts of invite emails for an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* Set texts per language: use `en`, `es`, and `fr` as top-level keys. Other top-level keys are ignored.
* The request replaces the whole resource. Include every language you want to keep.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "expiration": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom message text for expiration email. Placeholder `{days}` is available: data from the invite `expiration_days` parameter is used."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user ",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message EN"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "Needs Your Signature",
    "expiration": "This invite will expire in {days} days",
    "body_header": "You were invited to review and sign a document",
    "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "Necesita tu firma",
    "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas",
    "body_header": "Te han invitado a revisar y firmar un documento",
    "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "A besoin de votre signature",
    "expiration": "Cette invitation expirera dans {days} jours",
    "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document",
    "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `from` is not a string.
* `expiration` is not a string.
* `expiration` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`expiration too long`)

```json
{
  "errors": [
    {
      "code": 25002078,
      "message": "The 'expiration' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`expiration not string`)

```json
{
  "errors": [
    {
      "code": 25002079,
      "message": "The 'expiration' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

### 422

Language is not an array.

**Example** (`Example 1`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "Needs Your Signature", "expiration": "This invite will expire in {days} days", "body_header": "You were invited to review and sign a document", "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "Necesita tu firma", "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas", "body_header": "Te han invitado a revisar y firmar un documento", "body_message": "Has invitado para rellenar y firmar el documento {document_name}.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "A besoin de votre signature", "expiration": "Cette invitation expirera dans {days} jours", "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document", "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.", "footer_message": "Unique Solutions Inc."}}'
```

---
*Full reference: https://docs.signnow.com/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite*
