Hi there, I would like to be able to activate and deactivate a number via the api.
I am using GET https://api.telnyx.com/v2/phone_numbers/+61####.... to get the number information I am in Aus so +61
I believe I then use: PATCH https://api.telnyx.com/v2/phone_numbers/+61####.... with body as follows: { "data": {"connection_id":""}
}
The intention being that I clear out the connection which renders the number inactive. I would then use the same PATCH API call with the bodying being { "data": {"connection_id":"theconnectionid"}
} to reactivate the number
This is not working.
Am I doing something wrong?
Thans Frank