Skip to content

Delete Department

Overview

You can delete records using the API.

Preparations

  • Please Create an API Key before performing API operations.
  • The user issuing the API key to execute this function must be granted tenant manager privileges.

Request

Send json data in the following request format.

Setting column Value
HTTP Method POST
Content-Type application/json
Character Code UTF-8
URL http://{server name}/api/depts/{Dept ID}/delete (*1)
Body Please refer to the json data below

(*1) Please edit the {server name} and {Dept ID} parts to suit your environment as appropriate.
For Pleasanter.net, the format is as follows:
https://pleasanter.net/fs/api/depts/{Dept ID}/delete

JSON
{
    "ApiVersion": 1.1,
    "ApiKey": "620fhk448A3fa467dA816..."
}

Response

The json data in the following format will be returned.

JSON
{
    "Id": 12345,
    "StatusCode": 200,
    "Message": "\"The specified department code\" deleted."
}

Confirmation Column in Case of Error

・Precautions when using the API and things to check if an error occurs
・FAQ: What to check if modified configuration files or API requests (JSON format) are not recognized correctly