Update User Profile
curl --request PATCH \
--url https://api.vertracloud.app/v1/users/me \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"language": "<string>",
"workspace_invites_enabled": true
}
'import requests
url = "https://api.vertracloud.app/v1/users/me"
payload = {
"name": "<string>",
"language": "<string>",
"workspace_invites_enabled": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', language: '<string>', workspace_invites_enabled: true})
};
fetch('https://api.vertracloud.app/v1/users/me', 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.vertracloud.app/v1/users/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'language' => '<string>',
'workspace_invites_enabled' => true
]),
CURLOPT_HTTPHEADER => [
"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.vertracloud.app/v1/users/me"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\n \"workspace_invites_enabled\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api.vertracloud.app/v1/users/me")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\n \"workspace_invites_enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/users/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\n \"workspace_invites_enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"response": {},
"code": "<string>"
}Users
Update User Profile
Updates the authenticated user’s name, language and workspace e-mail preferences. Requires the account:write scope.
PATCH
/
v1
/
users
/
me
Update User Profile
curl --request PATCH \
--url https://api.vertracloud.app/v1/users/me \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"language": "<string>",
"workspace_invites_enabled": true
}
'import requests
url = "https://api.vertracloud.app/v1/users/me"
payload = {
"name": "<string>",
"language": "<string>",
"workspace_invites_enabled": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', language: '<string>', workspace_invites_enabled: true})
};
fetch('https://api.vertracloud.app/v1/users/me', 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.vertracloud.app/v1/users/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'language' => '<string>',
'workspace_invites_enabled' => true
]),
CURLOPT_HTTPHEADER => [
"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.vertracloud.app/v1/users/me"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\n \"workspace_invites_enabled\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api.vertracloud.app/v1/users/me")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\n \"workspace_invites_enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/users/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\n \"workspace_invites_enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"response": {},
"code": "<string>"
}Send at least one field. An API key needs the
account:write scope.
string
The display name.
string
The interface language:
pt-br, en-us or es-es. Any other value returns 400 INVALID_PAYLOAD.boolean
Whether other people can invite you to their workspaces.
Response
object
The updated profile:
id, name, email, language, workspace_invites_enabled,
plan_id, created_at and updated_at.Error Responses
string
INVALID_PAYLOAD: No field was sent, or a field has the wrong type (400).