Creates a new webhook, consisting of a pushUrl and a event type. For a list of all possible types use the GET /api/sales-partners/subscribable-event-types.
Security
X-API-KEY or Authorization
Webhook data to be created
- https://uberall.com/apihttps://uberall.com/api/sales-partners/webhooks
- Mock Serverhttps://docs.uberall.com/_mock/apis/swagger/sales-partners/webhooks
- X-API-KEY
- Authorization
curl -i -X POST \
https://uberall.com/api/sales-partners/webhooks \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"pushUrl": "string",
"type": "ADMIN_ALERT"
}'Successfully created webhook
Enum:"SUCCESS""PENDING""QUOTA_LIMIT_EXCEED""NOT_AUTHORIZED""FORBIDDEN""BAD_ACCESS_TOKEN""BAD_PRIVATE_KEY""BAD_PUBLIC_KEY""MISSING_PARAMETER""INVALID_PARAMETER"
Response
{
"status": "SUCCESS",
"message": "string",
"warnings": [
"string"
],
"response": {
"id": 0,
"dateCreated": "2019-08-24T14:15:22Z",
"lastUpdated": "2019-08-24T14:15:22Z",
"pushUrl": "string",
"type": "ADMIN_ALERT"
}
}