curl --request PUT \
--url https://api.smokeball.com/plugins/{pluginId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '{
"externalId": "<string>",
"application": "Native",
"type": "Button",
"version": {
"name": "<string>",
"description": "<string>",
"placement": "<string>",
"requestEndpointUrl": "<string>",
"attributes": {
"text": "<string>",
"icon": "<string>",
"color": "<string>",
"tooltip": "<string>",
"page": {
"title": "<string>",
"width": 123,
"height": 123,
"useDefaultBrowser": true
}
},
"availability": {
"matterTypeIds": [
"<string>"
]
}
},
"key": "<string>",
"additionalData": {}
}'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
}
Updates a plugin with the specified plugin details.
curl --request PUT \
--url https://api.smokeball.com/plugins/{pluginId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '{
"externalId": "<string>",
"application": "Native",
"type": "Button",
"version": {
"name": "<string>",
"description": "<string>",
"placement": "<string>",
"requestEndpointUrl": "<string>",
"attributes": {
"text": "<string>",
"icon": "<string>",
"color": "<string>",
"tooltip": "<string>",
"page": {
"title": "<string>",
"width": 123,
"height": 123,
"useDefaultBrowser": true
}
},
"availability": {
"matterTypeIds": [
"<string>"
]
}
},
"key": "<string>",
"additionalData": {}
}'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
}
When request is successful. Returns a link to the plugin.
The response is of type object
.