Copy Site
Overview¶
You can update site settings using the API.
Supported Versions¶
Pleasanter 1.2.2.8 and later
Limitations¶
- Only time-limited tables and recorded tables can be used.
Preparations¶
Please Create an API Key before performing API operations. Also, this function can only be performed by the tenant manager, so please set up the tenant manager from user management.
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/items/{site ID}/copysitepackage (*1) |
| Body | Refer to the json data below |
(*1) Please edit the {server name} and {site ID} parts to suit your environment as appropriate.
For Pleasanter.net, the format is as follows:
https://pleasanter.net/fs/api/items/{site ID}/copysitepackage
For {site ID}, specify the site ID of the site to be copied whose title is to be updated.
JSON¶
{
"ApiVersion": "1.1",
"ApiKey": "345yuAjA6789dA09d8uj6...",
"TargetSiteId": 466220,
"SiteTitle": "test",
"SelectedSites": [
{
"SiteId": 466217
},
{
"SiteId": 466218,
"IncludeData": false
}
],
"IncludeSitePermission": false,
"IncludeRecordPermission": true,
"IncludeColumnPermission": false,
"IncludeNotifications": true,
"IncludeReminders": true
}
| Column | Settings |
|---|---|
| TargetSiteId | Specify the site ID of the destination folder. If omitted, it will be copied to the top screen. |
| SiteTitle | Specify the title of the site written in the {site ID} of the URL. Use this when changing the site title. |
| SelectedSites | Specify the sites to copy. When writing, set the same value as the "Convertors" parameter when exporting the site package. |
*For the parameters after IncludeSitePermission, please set the same value as the "HeaderInfo" parameter when exporting the site package.
Response¶
The json data in the following format will be returned.