PUT /widgets/[api_key]/contacts/[id] - Update a Contact

PUT /widgets/[api_key]/contacts/[id] - Update a Contact

Last update: Вторник, Сеп 01, 2020
https://xeno.app/rest/v2/widgets/[api_key]/contacts/[id]


Headers

Authorization: Bearer TOKEN

Content-Type: application/json

Body:

{
  "email": "[email protected]"
}


Example Request

require "uri"
require "net/http"

url = URI("https://xeno.app/rest/v2/widgets/[api_key]/contacts/[id]")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = "Bearer TOKEN"
request["Content-Type"] = "application/json"
request.body = '{"email": "[email protected]"}'

response = https.request(request)
puts response.read_body


REST API - Contacts

6 article in this category.