---
title: "addEntity"
method: POST
path: "/v2/distributors/accounts/{accountId}/backup-tasks/{id}/entities"
tags: ["Distributor Backup management"]
---

# addEntity

`POST /v2/distributors/accounts/{accountId}/backup-tasks/{id}/entities`

## Request

- Base URL: `https://api.cloudally.com`
- URL: `https://api.cloudally.com/v2/distributors/accounts/{accountId}/backup-tasks/{id}/entities`
- Auth: none declared
- TypeScript: <https://skmtc.dev/cloudally/apis/cloudally-rest-api/docs/v2/distributors/accounts/:accountId/backup-tasks/:id/entities/post.ts> (a function with typed inputs; its response is checked against the schema)

Manually add a site or account for a backup in a backup task.

## Path parameters

- `id` string, required
- `accountId` string, required

## Request body

- AddEntityDTO: Site or account name
  - `entity` string: Site or account name

## Response `200`

Successful retrieval of the information.

- JsonResponseDTO
  - `success` boolean: A flag indicating a successful response
  - `status` string: Response status description
  - `statusCode` integer: Response return code

## Other responses

- `401`: The user is not logged in.
- `403`: The user does not have an access to view the account activity.

---

[API](https://skmtc.dev/cloudally/apis/cloudally-rest-api.md) - [All operations](https://skmtc.dev/cloudally/apis/cloudally-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudally/apis/cloudally-rest-api/revisions/97e3a3740b5b?raw)
