# Update Phone Number Company Profile

Update the Company Profile of a Phone Number to change the connected address.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Phone Number API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.cm.com"
    }
  ],
  "paths": {
    "/voice-phonenumberapi/v1/{accountGuid}/phonenumbers/{phoneNumber}/companyprofile": {
      "put": {
        "tags": [
          "Phone Number"
        ],
        "summary": "Update Phone Number Company Profile",
        "description": "Update the Company Profile of a Phone Number to change the connected address.",
        "parameters": [
          {
            "name": "accountGuid",
            "in": "path",
            "description": "Unique identifier of the voice account or logical account",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "phoneNumber",
            "in": "path",
            "description": "The start phone number of the phone number range to update",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The company profile guid to update to",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ApiUpdatePhoneNumberCompanyProfileGuid"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiUpdatePhoneNumberCompanyProfileGuid"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiUpdatePhoneNumberCompanyProfileGuid"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApiUpdatePhoneNumberCompanyProfileGuid"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCustomerAliasPhoneNumber"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCustomerAliasPhoneNumber"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCustomerAliasPhoneNumber"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCollection"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCollection"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCollection"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCollection"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCollection"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCollection"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiCustomerAliasPhoneNumber": {
        "title": "Customer Alias Phone Number",
        "type": "object",
        "properties": {
          "originalNumber": {
            "type": "integer",
            "description": "Original number, geographical number meant for Belgian customers, who want to use a service number.",
            "format": "int64",
            "nullable": true,
            "example": 32760000000
          },
          "number": {
            "type": "integer",
            "description": "Phone number that the customer alias is assigned to.",
            "format": "int64",
            "example": 32700000000
          },
          "customerAlias": {
            "type": "string",
            "description": "Custom name to help identify a phone number.",
            "nullable": true,
            "example": "Breda office front desk"
          }
        },
        "additionalProperties": false,
        "description": "Details of a phone number."
      },
      "ApiUpdatePhoneNumberCompanyProfileGuid": {
        "title": "Update Phone Number Company Profile Guid",
        "type": "object",
        "properties": {
          "companyProfileGuid": {
            "type": "string",
            "description": "Unique identifier of the company profile to update the Phone Number with",
            "format": "uuid"
          }
        },
        "additionalProperties": false,
        "description": "Update model for updating the company profile linked to a phone number"
      },
      "Error": {
        "title": "Error",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ErrorCollection": {
        "title": "Error Collection",
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "X-CM-PRODUCTTOKEN": {
        "type": "apiKey",
        "description": "Your producttoken",
        "name": "X-CM-PRODUCTTOKEN",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "X-CM-PRODUCTTOKEN": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 152,
      "2": 133,
      "3": 20,
      "4": 52,
      "5": 222,
      "6": 148,
      "7": 0,
      "8": 22,
      "9": 215,
      "10": 72,
      "11": 136
    }
  }
}
```