Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
Param name | Description |
---|---|
user_id required |
ID of the selected user Validations:
|
// Successful request POST /api/v2/admin/webhooks/19/webhook_users { "webhook_id": 19, "user_id": 44 } 200 { "webhook_user": null }
// Successful request POST /api/v2/admin/webhooks/20/webhook_users { "webhook_id": 20, "user_id": 45 } 200 { "webhook_user": { "id": 1, "webhook_id": 20, "user_id": 45, "created_at": "2023-11-27T09:42:42.764Z", "updated_at": "2023-11-27T09:42:42.764Z" } }
// Not admin user POST /api/v2/admin/webhooks/:webhook_id/webhook_users 401
// Missing parameters POST /api/v2/admin/webhooks/21/webhook_users { "webhook_id": 21 } 422 { "error": "Missing parameter user_id" }
// Webhook not found POST /api/v2/admin/webhooks/-1/webhook_users { "webhook_id": 22, "user_id": 48 } 404 { "error": "Couldn't find Webhook with 'id'=-1" }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |