PUT
/
v.2.01
/
{ClientId}
/
hooks
/
{HookId}
{
    "Url": "https://example.com",
    "Status": "DISABLED",
    "Tag": "Created using the Mangopay API Postman Collection",
}  
{
    "Url": "https://example.com",
    "Status": "DISABLED",
    "Validity": "VALID",
    "EventType": "UBO_DECLARATION_VALIDATION_ASKED",
    "Id": "hook_m_01J6EK16AS02MV3H4AMMXMQWZ1",
    "Tag": "Created using the Mangopay API Postman Collection",
    "CreationDate": 1655991027
}  

Path parameters

HookId
string

The unique identifier of the hook.

Body parameters

Url
string

Max. length: 255 characters

The URL to which the notification is sent.

Status
string

Allowed values: DISABLED, ENABLED

Whether the hook is enabled or not.

Tag
string

Max. length: 255 characters

Custom data that you can add to this object.

Responses

{
    "Url": "https://example.com",
    "Status": "DISABLED",
    "Validity": "VALID",
    "EventType": "UBO_DECLARATION_VALIDATION_ASKED",
    "Id": "hook_m_01J6EK16AS02MV3H4AMMXMQWZ1",
    "Tag": "Created using the Mangopay API Postman Collection",
    "CreationDate": 1655991027
}  
{
    "Url": "https://example.com",
    "Status": "DISABLED",
    "Tag": "Created using the Mangopay API Postman Collection",
}