---
title: Update existing business unit configuration
slug: reference/update-existing-business-unit-configuration
docTags: 
createdAt: 2025-07-03T16:20:35.016Z
---

{
  "id": "QVv8sc4V25-k2dWlFUDLR",
  "type": "api-oas-v2",
  "data": {
    "method": "PUT",
    "url": "https://app.amberflo.io/business-unit/details",
    "servers": [
      {
        "url": "https://app.amberflo.io/business-unit/details"
      }
    ],
    "name": "Update existing business unit configuration",
    "description": "<p>Updates configuration and metadata for an existing business unit in your organization.\nModifies business unit properties including display name, description, and contact information for cost allocation.</p>\n<p>Required request body fields:</p>\n<ul>\n<li><code>id</code>: Identifier for the business unit to update (must exist in organization)</li>\n<li><code>name</code>: Updated display name for management interfaces and reports</li>\n</ul>\n<p>Optional fields:</p>\n<ul>\n<li><code>description</code>: Updated description of business unit purpose and organizational scope</li>\n<li><code>contacts</code>: Updated contact information for business unit owners and managers</li>\n</ul>\n<p>Returns updated business unit with modified timestamp and complete configuration.\nBusiness unit ID cannot be changed after creation and must match existing registry entry.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "Input configuration for business unit registration and management. Defines organizational entities for cloud cost allocation, budget control, and departmental spending tracking within FOCUS-compliant cost management systems.",
          "customType": "business_unit.details.BusinessUnit.in",
          "schema": [
            {
              "name": "id",
              "kind": "required",
              "type": "string",
              "description": "Unique business unit identifier for cost allocation and organizational tracking. Used in FOCUS data ingestion and chargeback calculations across cloud resources.",
              "example": ""
            },
            {
              "name": "name",
              "kind": "required",
              "type": "string",
              "description": "Human-readable business unit display name shown in management interfaces and cost reports. Required for user identification and organizational hierarchy navigation.",
              "example": ""
            },
            {
              "name": "description",
              "kind": "optional",
              "type": "string",
              "description": "Optional detailed description explaining business unit purpose, scope, and organizational context for cost allocation and budget management activities.",
              "example": ""
            },
            {
              "name": "contacts",
              "kind": "optional",
              "type": "array",
              "description": "Contact information array for business unit owners and managers responsible for cost oversight and budget approvals.",
              "modelRef": "#/components/schemas/business_unit.details.BusinessUnitContact.in",
              "customType": "business_unit.details.BusinessUnitContact.in[]",
              "schema": [
                {
                  "name": "email",
                  "kind": "required",
                  "type": "string",
                  "description": "Business unit contact email address for cost notifications and budget alerts. Used for automated reporting and budget threshold communications.",
                  "example": ""
                },
                {
                  "name": "name",
                  "kind": "required",
                  "type": "string",
                  "description": "Full name of business unit contact person responsible for cost oversight and budget management decisions within the organizational structure.",
                  "example": ""
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/business_unit.details.BusinessUnit.in",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Complete business unit configuration with system audit timestamps. Represents organizational entities for cloud cost allocation, budget control, and departmental spending tracking within FOCUS-compliant cost management systems.",
            "customType": "business_unit.details.BusinessUnit.out",
            "schema": [
              {
                "name": "id",
                "kind": "required",
                "type": "string",
                "description": "Unique business unit identifier for cost allocation and organizational tracking. Used in FOCUS data ingestion and chargeback calculations across cloud resources.",
                "example": ""
              },
              {
                "name": "name",
                "kind": "required",
                "type": "string",
                "description": "Human-readable business unit display name shown in management interfaces and cost reports. Required for user identification and organizational hierarchy navigation.",
                "example": ""
              },
              {
                "name": "description",
                "kind": "optional",
                "type": "string",
                "description": "Optional detailed description explaining business unit purpose, scope, and organizational context for cost allocation and budget management activities.",
                "example": ""
              },
              {
                "name": "contacts",
                "kind": "optional",
                "type": "array",
                "description": "Contact information array for business unit owners and managers responsible for cost oversight and budget approvals.",
                "modelRef": "#/components/schemas/business_unit.details.BusinessUnitContact.out",
                "customType": "business_unit.details.BusinessUnitContact.out[]",
                "schema": [
                  {
                    "name": "email",
                    "kind": "required",
                    "type": "string",
                    "description": "Business unit contact email address for cost notifications and budget alerts. Used for automated reporting and budget threshold communications.",
                    "example": ""
                  },
                  {
                    "name": "name",
                    "kind": "required",
                    "type": "string",
                    "description": "Full name of business unit contact person responsible for cost oversight and budget management decisions within the organizational structure.",
                    "example": ""
                  }
                ]
              },
              {
                "name": "createTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "Business unit creation timestamp in Unix milliseconds. System-generated when business unit configuration is first registered in cost management system.",
                "example": 0
              },
              {
                "name": "updateTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "Last modification timestamp in Unix milliseconds. Updated automatically whenever business unit configuration details are changed through management interfaces.",
                "example": 0
              }
            ],
            "modelRef": "#/components/schemas/business_unit.details.BusinessUnit.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "ubdCd06QQVIremRroE9IY",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PUT \\\n     --url https://app.amberflo.io/business-unit/details \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"id\": \"\",\n     \"name\": \"\",\n     \"contacts\": [\n     {\n     \"email\": \"\",\n     \"name\": \"\"\n     }\n     ]\n     }'"
        },
        {
          "id": "SkkpO4dGlS8DicQf5LhFs",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"id\": \"\",\n   \"name\": \"\",\n   \"contacts\": [\n      {\n         \"email\": \"\",\n         \"name\": \"\"\n      }\n   ]\n});\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/business-unit/details\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "FDng9qYO8pPlMl2ZqO2cv",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/business-unit/details\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"id\": \"\",\n   \"name\": \"\",\n   \"contacts\": [\n      {\n         \"email\": \"\",\n         \"name\": \"\"\n      }\n   ]\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "9MBQLVowlTGsEPOsywM5u",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/business-unit/details\"\n\npayload = json.dumps({\n   \"id\": \"\",\n   \"name\": \"\",\n   \"contacts\": [\n      {\n         \"email\": \"\",\n         \"name\": \"\"\n      }\n   ]\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "ubdCd06QQVIremRroE9IY"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Successful request\n{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"contacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"createTimeInMillis\": \"\",\n  \"updateTimeInMillis\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": "",
      "id": "eELmUymzVfkHKZHWE-e2I"
    }
  ]
}