Change a contact method's address or number. A new value must be verified again.
const url = 'https://api.siteqwality.com/user/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/contact_method/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"details":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.siteqwality.com/user/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/contact_method/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "details": "example" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”User identifier
Contact method identifier
Request Body required
Section titled “Request Body required ”The type is fixed; send a new method to change it.
object
Same shapes as create. SMS takes {phone_number, country} (ISO 3166-1 alpha-2),
{phone_number, country_code}, {e164} or a + number.
Example generated
{ "details": "example"}Responses
Section titled “ Responses ”Contact method updated. A changed address or number is unverified, unless it is the user’s sign-in email.
object
Stored details with a Slack DM token masked.
A Slack DM linked from /oncall sends through this Slack integration; no token is stored.
The linked Slack integration’s name, while it is connected.
Example
{ "type": "email"}Invalid details, a phone number without a country or invalid for its country, or a changed Slack member on a Slack DM linked from Slack
Missing or invalid authentication
Only the user or an admin may change a user’s contact methods
Contact method not found
Internal server error