Update a sub-account
curl --request POST \
--url https://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme France",
"archived": false
}
'import requests
url = "https://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}"
payload = {
"name": "Acme France",
"archived": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Acme France', archived: false})
};
fetch('https://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}', 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://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme France',
'archived' => false
]),
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://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}"
payload := strings.NewReader("{\n \"name\": \"Acme France\",\n \"archived\": false\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme France\",\n \"archived\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme France\",\n \"archived\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "70ff6a88-6291-417d-b6cd-04f1ca123470",
"workspace_id": "2db5ea61-1752-42cf-8ea1-ab1da060cd0a",
"name": "Acme Europe",
"archived": false,
"created_at": "2026-08-05T09:30:00Z",
"updated_at": "2026-08-05T09:30:00Z"
}Sub-accounts
Update a Sub-account
Rename, archive, or restore a sub-account. Provide at least one of name or archived. This workspace-level management request must not include the Sub-Account-ID header.
POST
/
sub-accounts
/
{sub_account_id}
Update a sub-account
curl --request POST \
--url https://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme France",
"archived": false
}
'import requests
url = "https://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}"
payload = {
"name": "Acme France",
"archived": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Acme France', archived: false})
};
fetch('https://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}', 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://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme France',
'archived' => false
]),
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://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}"
payload := strings.NewReader("{\n \"name\": \"Acme France\",\n \"archived\": false\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme France\",\n \"archived\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.fullenrich.com/api/v2/sub-accounts/{sub_account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme France\",\n \"archived\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "70ff6a88-6291-417d-b6cd-04f1ca123470",
"workspace_id": "2db5ea61-1752-42cf-8ea1-ab1da060cd0a",
"name": "Acme Europe",
"archived": false,
"created_at": "2026-08-05T09:30:00Z",
"updated_at": "2026-08-05T09:30:00Z"
}Rename, archive, or restore a sub-account. Provide at least one of
name or archived.
Set archived=true to archive the sub-account, or archived=false to restore it. Archived sub-accounts reject scoped write requests but remain available for read requests.
This is a workspace-level management request. Do not send the
Sub-Account-ID header.Authorizations
Body
application/json
- Option 1
- Option 2
Provide at least one property.
Response
OK
Was this page helpful?