404 returned on PUT account_activity/all/:env_name/webhooks

api

#1

I’m getting the following error and a 404 not found when attempting to perform an HTTP PUT on the endpoint https://api.twitter.com/1.1/account_activity/all/env-beta/webhooks.json:

{
    "errors": [
        {
            "message": "Sorry, that page does not exist",
            "code": 34
        }
    ]
}

I’m using app only auth for the endpoint, and confirmed my authentication is set up appropriately as I’m able to HTTP GET https://api.twitter.com/1.1/account_activity/all/env-beta/webhooks.json properly.

This is not terribly important, but I’ve since added AWS X-Ray tracing capability to my Lambda function (specifically on the CRC function) and was hoping to capture the timing.


#2

I think I answered my own issue. It appears that using:

PUT https://api.twitter.com/1.1/account_activity/all/env-beta/webhooks/:webhook_id.json

does the trick. Found that courtesy of this post.