Description:
Executed when a new product is registered in your CompetitionLabs space.
This assumes that a webhook has been registered to trap and execute the trigger on this type of event.
Resource URL:
Request header
Key | Value | Required |
---|---|---|
Content-Type |
application/json | Yes |
Accept-Encoding |
gzip | Yes |
User_Agent |
CompetitionLabs/1.0 | Yes |
X-Account |
Unique identifier of your account | Yes |
X-OnEvent |
onNewProduct | Yes |
Request Body Parameters:
Below are the default body parameters which will be posted to your endpoint, if no transformer is provided.
Parameter
|
Type
|
Constraint
|
Description |
---|---|---|---|
productId |
String | Case sensitive | CompetitionLabs unique identifier for product |
productRefId |
String | Case insensitive | Your reference identifier |
resourcePath |
String | Case sensitive | Path to element relative to CompetitionLabs url |
timestamp |
Long | Date time for trigger in UTC in milli seconds | |
spaceName |
String | Case sensitive | The space name you are using the webhooks on |
objectType |
String | Case sensitive | The type of a webhook call |
Example:
{ "resourcePath": "/api/ |