---
title: "Add customers"
method: POST
path: "/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer"
tags: ["Servicedesk"]
---

# Add customers

`POST /rest/servicedeskapi/servicedesk/{serviceDeskId}/customer`

Adds one or more customers to a service desk. If any of the passed customers are associated with the service desk, no changes will be made for those customers and the resource returns a 204 success code.

**[Permissions](#permissions) required**: Service desk administrator

## Path parameters

- `serviceDeskId` string, required

## Request body

- ServiceDeskCustomerDTO
  - `accountIds` string[] — List of users, specified by account IDs, to add to or remove from a service desk.
  - `usernames` string[] — This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. Use `accountIds` instead.

## Response `204`

Returned if all the customers were added to the service desk or were already associated with the service desk.

## Other responses

- `400` — Returned if any of the customers do not exist. Note that any valid customers are added, but no confirmation is returned.
- `401` — Returned if the user is not logged in.
- `403` — Returned if the user does not have permission to complete this request.
- `404` — Returned if the service desk does not exist.
- `500` — Internal Server Error.

---

[API](https://skmtc.net/atlassian/apis/service-management-public-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/service-management-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/service-management-public-rest-api/revisions/3cf1fe47664a/schema)
