PUT Update a Callback

Update a callback that was already set up for your API-Key.

https://openapi.paveapi.com/v1/callbacks/:event

This endpoint allows you to update a previously created callback for your requesting API Key.

Sample Response (200: Ok)

{
    "api_key": "<your_request_api_key>",
    "event": "SESSION:STAGE_CHANGE",
    "url": "https://your_sms_callback_url",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer <jwt_token>"
    },
    "payload": {
        "source": "PAVE", // additional attributes to pass along; setting on create callback
    }
}

Sample Response (400: Bad Request)

{
    "message": "Missing required fields."
}

Sample Response (404: Not Found)

{
    "api_key": "<your_request_api_key",
    "message": "Your API Key does not have callback setting for the event :event."
}

Last updated