POST api/webhook?relationId={relationId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
relationId

integer

Default value is -1

Body Parameters

SetWebhookRequest
NameDescriptionTypeAdditional information
ProductUrl

string

None.

Url

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductUrl": "sample string 1",
  "Url": "sample string 2"
}

application/xml, text/xml

Sample:
<SetWebhookRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ecowave_WebAPI.Models">
  <ProductUrl>sample string 1</ProductUrl>
  <Url>sample string 2</Url>
</SetWebhookRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SetWebhookRequest'.

Response Information

Resource Description

SetWebhookResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<SetWebhookResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcowaveWebApiServices.Models">
  <Message>sample string 2</Message>
  <Success>true</Success>
</SetWebhookResponse>