---
title: Updates the organization.
slug: commerce-connect-15/service-api/7G_D-updates-the-organization
docTags: 
createdAt: 2026-10-09T17:33:29.599Z
---

{
  "id": "VIG9SJHnsBssNVEjCatzk",
  "type": "api-oas-v2",
  "data": {
    "method": "PUT",
    "url": "/episerverapi/commerce/customers/organization/{orgId}",
    "servers": [],
    "name": "Updates the organization.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "orgId",
          "type": "string",
          "description": "The organization id."
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "Organization model.",
          "customType": "OrganizationModel",
          "schema": [
            {
              "name": "primaryKeyId",
              "kind": "optional",
              "type": "string<uuid>",
              "description": "<p>Organization ID (GUID).</p>",
              "format": "uuid"
            },
            {
              "name": "addresses",
              "kind": "optional",
              "type": "array",
              "nullable": true,
              "description": "List of addresses.",
              "modelRef": "#/components/schemas/AddressModel",
              "customType": "AddressModel[]",
              "schema": [
                {
                  "name": "addressId",
                  "kind": "optional",
                  "type": "string<uuid>",
                  "nullable": true,
                  "description": "<p>Address ID (GUID).</p>",
                  "format": "uuid"
                },
                {
                  "name": "modified",
                  "kind": "optional",
                  "type": "string<date-time>",
                  "nullable": true,
                  "description": "Last modified date.",
                  "format": "date-time"
                },
                {
                  "name": "name",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Address name."
                },
                {
                  "name": "firstName",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "First name."
                },
                {
                  "name": "lastName",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Last name."
                },
                {
                  "name": "countryName",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Country name."
                },
                {
                  "name": "countryCode",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Country code."
                },
                {
                  "name": "city",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "City."
                },
                {
                  "name": "postalCode",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p>Postal code (Zip code).</p>"
                },
                {
                  "name": "line1",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Address line 1."
                },
                {
                  "name": "line2",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Address line 2."
                },
                {
                  "name": "regionName",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Region name."
                },
                {
                  "name": "regionCode",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Region code."
                },
                {
                  "name": "email",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Email."
                },
                {
                  "name": "isShippingAddress",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "Flag to indicate if this is a shipping address or not."
                },
                {
                  "name": "isBillingAddress",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "Flag to indicate if this is a billing address or not."
                },
                {
                  "name": "daytimePhoneNumber",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Daytime phone number."
                },
                {
                  "name": "eveningPhoneNumber",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Evening phone number."
                },
                {
                  "name": "organization",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Organization name."
                },
                {
                  "name": "addressType",
                  "kind": "optional",
                  "type": "array",
                  "nullable": true,
                  "description": "Address type.",
                  "example": "",
                  "itemType": "integer",
                  "customType": "integer[]",
                  "itemExample": "",
                  "itemDefault": ""
                }
              ]
            },
            {
              "name": "childOrganizations",
              "kind": "optional",
              "type": "array",
              "nullable": true,
              "description": "List of child organizations.",
              "modelRef": "#/components/schemas/OrganizationModel",
              "customType": "OrganizationModel[]",
              "schema": [
                {
                  "name": "",
                  "description": "",
                  "customType": "Circular-Reference"
                }
              ]
            },
            {
              "name": "contacts",
              "kind": "optional",
              "type": "array",
              "nullable": true,
              "description": "List of contacts.",
              "modelRef": "#/components/schemas/ContactModel",
              "customType": "ContactModel[]",
              "schema": [
                {
                  "name": "primaryKeyId",
                  "kind": "optional",
                  "type": "string<uuid>",
                  "nullable": true,
                  "description": "<p>Contact ID (GUID).</p>",
                  "format": "uuid"
                },
                {
                  "name": "addresses",
                  "kind": "optional",
                  "type": "array",
                  "nullable": true,
                  "description": "Contacts addresses.",
                  "modelRef": "#/components/schemas/AddressModel",
                  "customType": "AddressModel[]",
                  "schema": [
                    {
                      "name": "addressId",
                      "kind": "optional",
                      "type": "string<uuid>",
                      "nullable": true,
                      "description": "<p>Address ID (GUID).</p>",
                      "format": "uuid"
                    },
                    {
                      "name": "modified",
                      "kind": "optional",
                      "type": "string<date-time>",
                      "nullable": true,
                      "description": "Last modified date.",
                      "format": "date-time"
                    },
                    {
                      "name": "name",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Address name."
                    },
                    {
                      "name": "firstName",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "First name."
                    },
                    {
                      "name": "lastName",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Last name."
                    },
                    {
                      "name": "countryName",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Country name."
                    },
                    {
                      "name": "countryCode",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Country code."
                    },
                    {
                      "name": "city",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "City."
                    },
                    {
                      "name": "postalCode",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "<p>Postal code (Zip code).</p>"
                    },
                    {
                      "name": "line1",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Address line 1."
                    },
                    {
                      "name": "line2",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Address line 2."
                    },
                    {
                      "name": "regionName",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Region name."
                    },
                    {
                      "name": "regionCode",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Region code."
                    },
                    {
                      "name": "email",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Email."
                    },
                    {
                      "name": "isShippingAddress",
                      "kind": "optional",
                      "type": "boolean",
                      "description": "Flag to indicate if this is a shipping address or not."
                    },
                    {
                      "name": "isBillingAddress",
                      "kind": "optional",
                      "type": "boolean",
                      "description": "Flag to indicate if this is a billing address or not."
                    },
                    {
                      "name": "daytimePhoneNumber",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Daytime phone number."
                    },
                    {
                      "name": "eveningPhoneNumber",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Evening phone number."
                    },
                    {
                      "name": "organization",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Organization name."
                    },
                    {
                      "name": "addressType",
                      "kind": "optional",
                      "type": "array",
                      "nullable": true,
                      "description": "Address type.",
                      "example": "",
                      "itemType": "integer",
                      "customType": "integer[]",
                      "itemExample": "",
                      "itemDefault": ""
                    }
                  ]
                },
                {
                  "name": "firstName",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "First name."
                },
                {
                  "name": "lastName",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Last name."
                },
                {
                  "name": "email",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Email."
                },
                {
                  "name": "registrationSource",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Registration source."
                }
              ]
            },
            {
              "name": "organizationType",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Organization type."
            },
            {
              "name": "orgCustomerGroup",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Organization customer group."
            },
            {
              "name": "businessCategory",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Business category."
            },
            {
              "name": "name",
              "kind": "required",
              "type": "string",
              "description": "Organization name."
            },
            {
              "name": "description",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Organization description."
            },
            {
              "name": "properties",
              "kind": "optional",
              "type": "array",
              "nullable": true,
              "description": "Gets the list of key value pairs for dealing with custom properties.",
              "modelRef": "#/components/schemas/PropertyItemModel",
              "customType": "PropertyItemModel[]",
              "schema": [
                {
                  "name": "key",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Key of the property."
                },
                {
                  "name": "value",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Value of the property."
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/OrganizationModel",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Success",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "204",
        "description": "The organization is saved.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "400",
        "description": "If the organization model is not valid.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If organization does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "UWnVQceNxIMb6cAoAleXd",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PUT \\\n     --url /episerverapi/commerce/customers/organization/{orgId} \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"name\": \"\"\n     }'"
        },
        {
          "id": "VwY_u-kGHgCNB0AA8OLdB",
          "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   \"name\": \"\"\n});\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"/episerverapi/commerce/customers/organization/{orgId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "ryc2XE4xidd_m5EsvN01j",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/customers/organization/{orgId}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Put.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"name\": \"\"\n})\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "Cd4SSkLPKnZDkGOS6aEEY",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/customers/organization/{orgId}\"\n\npayload = json.dumps({\n   \"name\": \"\"\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": "UWnVQceNxIMb6cAoAleXd"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Success\n"
        },
        {
          "id": "response-1-204",
          "language": "204",
          "code": "// The organization is saved.\n"
        },
        {
          "id": "response-2-400",
          "language": "400",
          "code": "// If the organization model is not valid.\n"
        },
        {
          "id": "response-3-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        },
        {
          "id": "response-4-404",
          "language": "404",
          "code": "// If organization does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}