/
Change Event Notification...
Security
BearerPartnerUser
List of addresses to send notifications to
Example:
[ "https://dev.tools.test.com/test/Hooks" ]
1 - send events by the entity arrival of products, 0 - do not send
Example:1
1 - send events by the consumable write-off entity, 0 - do not send
Example:1
1 - send events by the product write-off entity, 0 - do not send
Example:1
- Mock serverhttps://developer.alteg.io/_mock/en/developers/openapi/hooks_settings/{location_id}
- Productionhttps://api.alteg.io/api/v1/hooks_settings/{location_id}
curl -i -X POST \
'https://developer.alteg.io/_mock/en/developers/openapi/hooks_settings/{location_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"urls": [
"https://dev.tools.test.com/test/Hooks"
],
"active": 0,
"salon": 1,
"service_category": 0,
"service": 1,
"good": 1,
"master": 1,
"client": 1,
"record": 1,
"goods_operations_sale": 1,
"goods_operations_receipt": 1,
"goods_operations_consumable": 1,
"goods_operations_stolen": 1,
"goods_operations_move": 1,
"finances_operation": 1,
"self_sending": 0
}'Created
Object with data
Example:
{ "urls": [ "https://dev.tools.test.com/test/Hooks" ], "active": 0, "salon": 1, "service_category": 0, "service": 1, "good": 1, "master": 1, "client": 1, "record": 1, "goods_operations_sale": 1, "goods_operations_receipt": 1, "goods_operations_consumable": 1, "goods_operations_stolen": 1, "goods_operations_move": 1, "finances_operation": 1 }
Response
{ "success": true, "data": { "urls": [ … ], "active": 0, "salon": 1, "service_category": 0, "service": 1, "master": 1, "client": 1, "record": 1, "goods_operations_sale": 1, "goods_operations_receipt": 1, "goods_operations_consumable": 1, "goods_operations_stolen": 1, "goods_operations_move": 1, "finances_operation": 1 }, "meta": [] }