> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Salesloft: Team Templates Update

> Update a Salesloft team email template by its ID: title, subject, body or tracking. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Update a Salesloft team email template by its ID: title, subject, body or tracking.

> [!NOTE]
>
> Tool ID: `salesloft_team_templates_update`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'salesloft_team_templates_update',
  {
    "id": "id_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run salesloft_team_templates_update --input '{
  "id": "id_123"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "id": "id_123",
    "title": "VP of Engineering",
    "subject": "Introduction"
  }
}
```

Use `deepline describe salesloft_team_templates_update --json` for the latest machine-readable contract.

## Input reference

Update a team email template

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.id` | `string` | Yes | — | Template ID |
| `payload.title` | `string` | No | — | The title of the email content. |
| `payload.subject` | `string` | No | — | The subject line of the email content. |
| `payload.body` | `string` | No | — | The main body of the email content. |
| `payload.open_tracking` | `boolean` | No | — | Indicates if open tracking is enabled for the email. |
| `payload.click_tracking` | `boolean` | No | — | Indicates if click tracking is enabled for the email. |
| `payload.attachment_ids` | `array` | No | — | A list of attachment IDs to associate with the email template. |
| `payload.owner_id` | `integer` | No | — | The ID of the user to transfer ownership of the team template to. Requires team admin permissions. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Update a team email template",
    "properties": {
      "id": {
        "type": "string",
        "description": "Template ID"
      },
      "title": {
        "type": "string",
        "description": "The title of the email content."
      },
      "subject": {
        "type": "string",
        "description": "The subject line of the email content."
      },
      "body": {
        "type": "string",
        "description": "The main body of the email content."
      },
      "open_tracking": {
        "type": "boolean",
        "description": "Indicates if open tracking is enabled for the email."
      },
      "click_tracking": {
        "type": "boolean",
        "description": "Indicates if click tracking is enabled for the email."
      },
      "attachment_ids": {
        "type": "array",
        "description": "A list of attachment IDs to associate with the email template.",
        "items": {
          "type": "integer"
        }
      },
      "owner_id": {
        "type": "integer",
        "description": "The ID of the user to transfer ownership of the team template to. Requires team admin permissions."
      }
    },
    "required": [
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.id` | `string` | No | — | ID of team template |
| `result.data.title` | `string` | No | — | Title of the team template |
| `result.data.subject` | `string` | No | — | Subject of the team template |
| `result.data.body` | `string` | No | — | Body of the team template |
| `result.data.body_preview` | `string` | No | — | A plain text version of the first 100 characters of the body of the team template |
| `result.data.created_at` | `string` | No | — | Datetime of when the team template was created Format: `date-time`. |
| `result.data.updated_at` | `string` | No | — | Datetime of when the team template was last updated Format: `date-time`. |
| `result.data.last_used_at` | `string` | No | — | Datetime of when the team template was last used Format: `date-time`. |
| `result.data.archived_at` | `string` | No | — | Datetime of when the team template was archived, if archived Format: `date-time`. |
| `result.data.last_modified_at` | `string` | No | — | Datetime of when the team template was last modified Format: `date-time`. |
| `result.data.open_tracking_enabled` | `boolean` | No | — | Whether open tracking is enabled for this team template |
| `result.data.click_tracking_enabled` | `boolean` | No | — | Whether click tracking is enabled for this team template |
| `result.data.counts` | `object` | No | — | — |
| `result.data.counts.sent_emails` | `integer` | No | — | The number of times the team template was sent out |
| `result.data.counts.views` | `integer` | No | — | The number of times the team template was opened |
| `result.data.counts.clicks` | `integer` | No | — | The number of times links in the team template were clicked |
| `result.data.counts.replies` | `integer` | No | — | The number of replies the team template received |
| `result.data.counts.bounces` | `integer` | No | — | The number of bounces the team template received |
| `result.data.last_modified_user` | `object` | No | — | User that last modified this team template |
| `result.data.last_modified_user.id` | `integer` | No | — | — |
| `result.data.last_modified_user._href` | `string` | No | — | — |
| `result.data.groups` | `array` | No | — | Groups to which this team template is assigned, if any |
| `result.data.groups[].id` | `integer` | No | — | — |
| `result.data.groups[]._href` | `string` | No | — | — |
| `result.data.owner_email_template_id` | `integer` | No | — | The email template ID created for the owner account, if requested |
| `result.data._links` | `record` | No | — | Links to attachments resource for this template |
| `result.data.tags` | `array` | No | — | All tags applied to this team template |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of team template"
          },
          "title": {
            "type": "string",
            "description": "Title of the team template"
          },
          "subject": {
            "type": "string",
            "description": "Subject of the team template"
          },
          "body": {
            "type": "string",
            "description": "Body of the team template"
          },
          "body_preview": {
            "type": "string",
            "description": "A plain text version of the first 100 characters of the body of the team template"
          },
          "created_at": {
            "type": "string",
            "description": "Datetime of when the team template was created",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "description": "Datetime of when the team template was last updated",
            "format": "date-time"
          },
          "last_used_at": {
            "type": "string",
            "description": "Datetime of when the team template was last used",
            "format": "date-time"
          },
          "archived_at": {
            "type": "string",
            "description": "Datetime of when the team template was archived, if archived",
            "format": "date-time"
          },
          "last_modified_at": {
            "type": "string",
            "description": "Datetime of when the team template was last modified",
            "format": "date-time"
          },
          "open_tracking_enabled": {
            "type": "boolean",
            "description": "Whether open tracking is enabled for this team template"
          },
          "click_tracking_enabled": {
            "type": "boolean",
            "description": "Whether click tracking is enabled for this team template"
          },
          "counts": {
            "type": "object",
            "properties": {
              "sent_emails": {
                "type": "integer",
                "description": "The number of times the team template was sent out"
              },
              "views": {
                "type": "integer",
                "description": "The number of times the team template was opened"
              },
              "clicks": {
                "type": "integer",
                "description": "The number of times links in the team template were clicked"
              },
              "replies": {
                "type": "integer",
                "description": "The number of replies the team template received"
              },
              "bounces": {
                "type": "integer",
                "description": "The number of bounces the team template received"
              }
            },
            "additionalProperties": false
          },
          "last_modified_user": {
            "type": "object",
            "description": "User that last modified this team template",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "groups": {
            "type": "array",
            "description": "Groups to which this team template is assigned, if any",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "owner_email_template_id": {
            "type": "integer",
            "description": "The email template ID created for the owner account, if requested"
          },
          "_links": {
            "type": "object",
            "description": "Links to attachments resource for this template"
          },
          "tags": {
            "type": "array",
            "description": "All tags applied to this team template",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.