Creates a new tenant webhook with the parameters specified in the request.
Name | Description | Type | Example |
Id
sent in body
|
ID | System.Int32 | |
Uri
sent in body
|
URI | System.String | |
SecretKey
sent in body
|
Secret key | System.String | |
Enabled
sent in body
|
Enabled or not | System.Nullable{System.Boolean} |
POST api/2.0/settings/webhook Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "Id": 1234, "Uri": "some text", "SecretKey": "some text" }
Tenant webhook with its config parameters
application/json
{ "status": 0, "response": { "Id": 1234, "Uri": "some text", "SecretKey": "some text", "Enabled": true } }
text/xml
<result> <status>0</status> <response> <Id>1234</Id> <Uri>some text</Uri> <SecretKey>some text</SecretKey> <Enabled>True</Enabled> </response> </result>