Developer Function: API: Deparment Operation: Create Deparment
## Overview
You can create new records using the API.
## Preparation
- Please [Create an API Key](/manual/api-key) before performing API operations.
- The user issuing the API key to execute this function must be granted tenant administrator privileges.
## Request
Send json data in the following request format:
|Setting item|Value|
|:--|:--|
|HTTP method|POST|
|Content-Type |application/json|
|Character code|UTF-8|
|URL|http://{server name}/api/depts/create (*1)|
|Body|Refer to the json data below|
(*1) Please edit the {server name} part to suit your environment as appropriate.
For pleasanter.net, the format is as follows:
https\://pleasanter.net/fs/api/depts/create
## Request
##### JSON
```
{
"ApiVersion": 1.1,
"ApiKey": "017dRapJ3f5f1Dgsdj95...",
"DeptCode": "[Department code of the department to register]",
"DeptName": "[Name of the department to register",
"Body": "[Description of the department to register]"
}
```
## Response
The json data in the following format will be returned.
##### JSON
```
{
"Id": 12345,
"StatusCode": 200,
"Message": "\"Department code of the department to register\" created."
}
```
## Confirmation Items in Case of Error
[・Precautions when using the API and things to check if an error occurs](/manual/faq-api)
[・FAQ: What to check if modified configuration files or API requests (JSON format) are not recognized correctly](/manual/faq-json-format)