# registerTenant

Audience: Developer

**Served by:** [management](https://docs.pyck.cloud/api/services/management.md)

## Arguments

| Name | Type |
| --- | --- |
| `input` | [RegisterTenantInput](https://docs.pyck.cloud/api/inputs/registertenantinput.md)! |

## Returns

[RegisterTenantResponse](https://docs.pyck.cloud/api/types/registertenantresponse.md)!

## Example

Registers a new tenant. Requires admin privileges.

```graphql
mutation RegisterTenant($input: RegisterTenantInput!) {
  registerTenant(input: $input) {
    success
    tenant {
      createdAt
      createdBy
      data
      dataTypeID
      dataTypeSlug
      deletedAt
      deletedBy
      expiresAt
      id
      idpOrgRef
      name
      status
      updatedAt
      updatedBy
    }
  }
}
```

**Variables**

```json
{
  "input": {
    "name": "<tenant name>"
  }
}
```
