Update a profile
curl --request PUT \
--url https://api.wavix.com/v1/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"additional_info": "<string>",
"contacts": "<string>",
"default_short_link_endpoint": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"sms_relay_url": "<string>",
"dlr_relay_url": "<string>",
"time_zone": "UTC",
"job_title": "<string>",
"company_info": {
"name": "<string>",
"industry": "telecommunications",
"billing_address": "<string>",
"attn_contact_name": "<string>",
"vat_number": "<string>",
"country_code": "<string>"
}
}
'import requests
url = "https://api.wavix.com/v1/profile"
payload = {
"additional_info": "<string>",
"contacts": "<string>",
"default_short_link_endpoint": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"sms_relay_url": "<string>",
"dlr_relay_url": "<string>",
"time_zone": "UTC",
"job_title": "<string>",
"company_info": {
"name": "<string>",
"industry": "telecommunications",
"billing_address": "<string>",
"attn_contact_name": "<string>",
"vat_number": "<string>",
"country_code": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
additional_info: '<string>',
contacts: '<string>',
default_short_link_endpoint: '<string>',
first_name: '<string>',
last_name: '<string>',
phone: '<string>',
sms_relay_url: '<string>',
dlr_relay_url: '<string>',
time_zone: 'UTC',
job_title: '<string>',
company_info: {
name: '<string>',
industry: 'telecommunications',
billing_address: '<string>',
attn_contact_name: '<string>',
vat_number: '<string>',
country_code: '<string>'
}
})
};
fetch('https://api.wavix.com/v1/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wavix.com/v1/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'additional_info' => '<string>',
'contacts' => '<string>',
'default_short_link_endpoint' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'phone' => '<string>',
'sms_relay_url' => '<string>',
'dlr_relay_url' => '<string>',
'time_zone' => 'UTC',
'job_title' => '<string>',
'company_info' => [
'name' => '<string>',
'industry' => 'telecommunications',
'billing_address' => '<string>',
'attn_contact_name' => '<string>',
'vat_number' => '<string>',
'country_code' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wavix.com/v1/profile"
payload := strings.NewReader("{\n \"additional_info\": \"<string>\",\n \"contacts\": \"<string>\",\n \"default_short_link_endpoint\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"sms_relay_url\": \"<string>\",\n \"dlr_relay_url\": \"<string>\",\n \"time_zone\": \"UTC\",\n \"job_title\": \"<string>\",\n \"company_info\": {\n \"name\": \"<string>\",\n \"industry\": \"telecommunications\",\n \"billing_address\": \"<string>\",\n \"attn_contact_name\": \"<string>\",\n \"vat_number\": \"<string>\",\n \"country_code\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.wavix.com/v1/profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"additional_info\": \"<string>\",\n \"contacts\": \"<string>\",\n \"default_short_link_endpoint\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"sms_relay_url\": \"<string>\",\n \"dlr_relay_url\": \"<string>\",\n \"time_zone\": \"UTC\",\n \"job_title\": \"<string>\",\n \"company_info\": {\n \"name\": \"<string>\",\n \"industry\": \"telecommunications\",\n \"billing_address\": \"<string>\",\n \"attn_contact_name\": \"<string>\",\n \"vat_number\": \"<string>\",\n \"country_code\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wavix.com/v1/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"additional_info\": \"<string>\",\n \"contacts\": \"<string>\",\n \"default_short_link_endpoint\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"sms_relay_url\": \"<string>\",\n \"dlr_relay_url\": \"<string>\",\n \"time_zone\": \"UTC\",\n \"job_title\": \"<string>\",\n \"company_info\": {\n \"name\": \"<string>\",\n \"industry\": \"telecommunications\",\n \"billing_address\": \"<string>\",\n \"attn_contact_name\": \"<string>\",\n \"vat_number\": \"<string>\",\n \"country_code\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 1,
"email": "email",
"first_name": "first name",
"last_name": "last name",
"phone": "+12025550123",
"additional_info": "additional info",
"contact_email": "contact email",
"timezone": "timezone",
"job_title": "job title",
"default_short_link_endpoint": "default short link endpoint",
"default_destinations": [
{
"transport": "transport",
"value": "value"
}
],
"company_info": {
"name": "name",
"industry": "telecommunications",
"address": "address",
"attn_contact_name": "attn contact name",
"vat_number": "vat number",
"country": {
"country_name": "country name",
"country_id": 123
}
}
}Profile
Update a profile
Updates the profile and billing details of the authenticated account.
PUT
/
v1
/
profile
Update a profile
curl --request PUT \
--url https://api.wavix.com/v1/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"additional_info": "<string>",
"contacts": "<string>",
"default_short_link_endpoint": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"sms_relay_url": "<string>",
"dlr_relay_url": "<string>",
"time_zone": "UTC",
"job_title": "<string>",
"company_info": {
"name": "<string>",
"industry": "telecommunications",
"billing_address": "<string>",
"attn_contact_name": "<string>",
"vat_number": "<string>",
"country_code": "<string>"
}
}
'import requests
url = "https://api.wavix.com/v1/profile"
payload = {
"additional_info": "<string>",
"contacts": "<string>",
"default_short_link_endpoint": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"sms_relay_url": "<string>",
"dlr_relay_url": "<string>",
"time_zone": "UTC",
"job_title": "<string>",
"company_info": {
"name": "<string>",
"industry": "telecommunications",
"billing_address": "<string>",
"attn_contact_name": "<string>",
"vat_number": "<string>",
"country_code": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
additional_info: '<string>',
contacts: '<string>',
default_short_link_endpoint: '<string>',
first_name: '<string>',
last_name: '<string>',
phone: '<string>',
sms_relay_url: '<string>',
dlr_relay_url: '<string>',
time_zone: 'UTC',
job_title: '<string>',
company_info: {
name: '<string>',
industry: 'telecommunications',
billing_address: '<string>',
attn_contact_name: '<string>',
vat_number: '<string>',
country_code: '<string>'
}
})
};
fetch('https://api.wavix.com/v1/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wavix.com/v1/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'additional_info' => '<string>',
'contacts' => '<string>',
'default_short_link_endpoint' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'phone' => '<string>',
'sms_relay_url' => '<string>',
'dlr_relay_url' => '<string>',
'time_zone' => 'UTC',
'job_title' => '<string>',
'company_info' => [
'name' => '<string>',
'industry' => 'telecommunications',
'billing_address' => '<string>',
'attn_contact_name' => '<string>',
'vat_number' => '<string>',
'country_code' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wavix.com/v1/profile"
payload := strings.NewReader("{\n \"additional_info\": \"<string>\",\n \"contacts\": \"<string>\",\n \"default_short_link_endpoint\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"sms_relay_url\": \"<string>\",\n \"dlr_relay_url\": \"<string>\",\n \"time_zone\": \"UTC\",\n \"job_title\": \"<string>\",\n \"company_info\": {\n \"name\": \"<string>\",\n \"industry\": \"telecommunications\",\n \"billing_address\": \"<string>\",\n \"attn_contact_name\": \"<string>\",\n \"vat_number\": \"<string>\",\n \"country_code\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.wavix.com/v1/profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"additional_info\": \"<string>\",\n \"contacts\": \"<string>\",\n \"default_short_link_endpoint\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"sms_relay_url\": \"<string>\",\n \"dlr_relay_url\": \"<string>\",\n \"time_zone\": \"UTC\",\n \"job_title\": \"<string>\",\n \"company_info\": {\n \"name\": \"<string>\",\n \"industry\": \"telecommunications\",\n \"billing_address\": \"<string>\",\n \"attn_contact_name\": \"<string>\",\n \"vat_number\": \"<string>\",\n \"country_code\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wavix.com/v1/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"additional_info\": \"<string>\",\n \"contacts\": \"<string>\",\n \"default_short_link_endpoint\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"sms_relay_url\": \"<string>\",\n \"dlr_relay_url\": \"<string>\",\n \"time_zone\": \"UTC\",\n \"job_title\": \"<string>\",\n \"company_info\": {\n \"name\": \"<string>\",\n \"industry\": \"telecommunications\",\n \"billing_address\": \"<string>\",\n \"attn_contact_name\": \"<string>\",\n \"vat_number\": \"<string>\",\n \"country_code\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 1,
"email": "email",
"first_name": "first name",
"last_name": "last name",
"phone": "+12025550123",
"additional_info": "additional info",
"contact_email": "contact email",
"timezone": "timezone",
"job_title": "job title",
"default_short_link_endpoint": "default short link endpoint",
"default_destinations": [
{
"transport": "transport",
"value": "value"
}
],
"company_info": {
"name": "name",
"industry": "telecommunications",
"address": "address",
"attn_contact_name": "attn contact name",
"vat_number": "vat number",
"country": {
"country_name": "country name",
"country_id": 123
}
}
}Authorizations
Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.
Body
application/json
Profile and billing fields to set on the account.
Response
Returns the updated profile.
Was this page helpful?