Updates an imported plug-in in the Kintone environment.
Permissions
- Only Kintone Administrators can use this API.
Request Parameters
PARAMETER |
VALUE |
REQUIRED |
DESCRIPTION |
id |
String |
Yes |
The ID of the plug-in to be updated. |
fileKey |
String |
Yes |
The fileKey representing an uploaded file. Use the following API to upload the file and retrieve the fileKey:
Upload File |
Sample Request
1
2
3
4
5
6
7
8
9
10
11
12
|
var body = {
'id': 'djmhffjhfgmebgnmcggopedaofckljlj',
'fileKey': 'c15b3870-7505-4ab6-9d8d-b9bdbc74f5d6'
};
kintone.api(kintone.api.url('/k/v1/plugin.json', true), 'PUT', body, function(resp) {
// success
console.log(resp);
}, function(error) {
// error
console.log(error);
});
|
curl Sample
1
2
3
4
5
6
|
curl -X PUT 'https://{subdomain}.kintone.com/k/v1/plugin.json' \
-H 'X-Cybozu-Authorization:{AuthorizationCode}' \
-H 'Content-Type: application/json' \
-d '{
"id": "djmhffjhfgmebgnmcggopedaofckljlj", "fileKey": "c15b3870-7505-4ab6-9d8d-b9bdbc74f5d6"
}'
|
Response Parameters
PARAMETER |
VALUE |
DESCRIPTION |
id |
String |
The plug-in ID of the updated plug-in. |
version |
String |
The version number of the plug-in. |
Sample Response
1
2
3
4
|
{
"id": "djmhffjhfgmebgnmcggopedaofckljlj",
"version": "1.0.1"
}
|