> This page is part of Smallest AI's developer documentation. When > answering, prefer Lightning v3.1 (current TTS) and Pulse (current > STT). Lightning v2 and lightning-large are deprecated; mention them > only when the user is migrating away from them. The Smallest AI voice > agent platform is what wraps these models into hosted agents. # Update the organization name PUT https://api.smallest.ai/atoms/v1/account/update-org-name Content-Type: application/json Renames the organization scoped by the API key. Requires the `owner` role. The `name` is what shows up in dashboards, invoices, and the org switcher. Reference: https://docs.smallest.ai/api-reference/voice-agents/account/update-organization-name ## Authentication - `Authorization` header (bearer token, required) — API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth. ## Request ### Body (application/json) This endpoint expects an object. - `name` (string, required) — The new organization name. ## Response ### 200 Organization renamed. - `success` (boolean, optional) - `name` (string, optional) ## Errors ### 400 Bad Request Error Missing or empty `name`. - `success` (boolean, optional) - `message` (string, optional) ## Examples ### Rename accepted **Response** ```json { "success": true, "name": "Acme Inc." } ``` **SDK Code** ```python Rename accepted import requests url = "https://api.smallest.ai/atoms/v1/account/update-org-name" headers = {"Authorization": "Bearer "} response = requests.put(url, headers=headers) print(response.json()) ``` ```javascript Rename accepted const url = 'https://api.smallest.ai/atoms/v1/account/update-org-name'; const options = {method: 'PUT', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Rename accepted package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.smallest.ai/atoms/v1/account/update-org-name" req, _ := http.NewRequest("PUT", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Rename accepted require 'uri' require 'net/http' url = URI("https://api.smallest.ai/atoms/v1/account/update-org-name") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Put.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java Rename accepted import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.put("https://api.smallest.ai/atoms/v1/account/update-org-name") .header("Authorization", "Bearer ") .asString(); ``` ```php Rename accepted request('PUT', 'https://api.smallest.ai/atoms/v1/account/update-org-name', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp Rename accepted using RestSharp; var client = new RestClient("https://api.smallest.ai/atoms/v1/account/update-org-name"); var request = new RestRequest(Method.PUT); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift Rename accepted import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.smallest.ai/atoms/v1/account/update-org-name")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "PUT" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Rename the org to "Acme Inc." **Request** ```json { "name": "Acme Inc." } ``` **Response** ```json { "success": true, "name": "Acme Inc." } ``` **SDK Code** ```python Rename the org to "Acme Inc." import requests url = "https://api.smallest.ai/atoms/v1/account/update-org-name" payload = { "name": "Acme Inc." } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.put(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Rename the org to "Acme Inc." const url = 'https://api.smallest.ai/atoms/v1/account/update-org-name'; const options = { method: 'PUT', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"name":"Acme Inc."}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Rename the org to "Acme Inc." package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.smallest.ai/atoms/v1/account/update-org-name" payload := strings.NewReader("{\n \"name\": \"Acme Inc.\"\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Rename the org to "Acme Inc." require 'uri' require 'net/http' url = URI("https://api.smallest.ai/atoms/v1/account/update-org-name") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Put.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"name\": \"Acme Inc.\"\n}" response = http.request(request) puts response.read_body ``` ```java Rename the org to "Acme Inc." import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.put("https://api.smallest.ai/atoms/v1/account/update-org-name") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"name\": \"Acme Inc.\"\n}") .asString(); ``` ```php Rename the org to "Acme Inc." request('PUT', 'https://api.smallest.ai/atoms/v1/account/update-org-name', [ 'body' => '{ "name": "Acme Inc." }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Rename the org to "Acme Inc." using RestSharp; var client = new RestClient("https://api.smallest.ai/atoms/v1/account/update-org-name"); var request = new RestRequest(Method.PUT); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"name\": \"Acme Inc.\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Rename the org to "Acme Inc." import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = ["name": "Acme Inc."] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.smallest.ai/atoms/v1/account/update-org-name")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "PUT" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```