> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/001_profile/001__update_company_profile.md).

# Update Company Profile

GraphQL endpoint: `/company`

Update the company's profile information including basic details and visibility settings. This mutation allows comprehensive updates to company profile data.

## Query

```graphql
mutation (
  $legalName: String
  $brandName: String
  $profileName: String
  $yearFounded: Int
  $aboutUs: String
  $metadata: JSON
  $legalNameVisibility: [CompanyVisibilityType!]
  $brandNameVisibility: [CompanyVisibilityType!]
  $aboutUsVisibility: [CompanyVisibilityType!]
  $yearFoundedVisibility: [CompanyVisibilityType!]
  $metadataVisibility: [CompanyVisibilityType!]
) {
  updateCompany (
    legalName: $legalName
    brandName: $brandName
    profileName: $profileName
    yearFounded: $yearFounded
    aboutUs: $aboutUs
    metadata: $metadata
    legalNameVisibility: $legalNameVisibility
    brandNameVisibility: $brandNameVisibility
    aboutUsVisibility: $aboutUsVisibility
    yearFoundedVisibility: $yearFoundedVisibility
    metadataVisibility: $metadataVisibility
  ) {
    id
    legalName
    brandName
    profileName
    yearFounded
    aboutUs
    metadata
  }
}

```

## Variables

```json
{
  "aboutUs": "Updated company description",
  "aboutUsVisibility": [
    "PARTNER",
    "CUSTOMER"
  ],
  "brandName": "Updated Brand",
  "brandNameVisibility": [
    "PARTNER",
    "CUSTOMER"
  ],
  "legalName": "Updated Legal Name Inc",
  "legalNameVisibility": [
    "PARTNER",
    "CUSTOMER"
  ],
  "metadata": {
    "updated_key": "updated_value"
  },
  "metadataVisibility": [
    "PARTNER",
    "CUSTOMER"
  ],
  "profileName": "updated-profile",
  "yearFounded": 2015,
  "yearFoundedVisibility": [
    "PARTNER",
    "CUSTOMER"
  ]
}
```

## Response

```json
{
  "data": {
    "updateCompany": {
      "aboutUs": "Updated company description",
      "brandName": "Updated Brand",
      "id": "00000000-0000-4000-8000-000000000001",
      "legalName": "Updated Legal Name Inc",
      "metadata": {
        "updated_key": "updated_value"
      },
      "profileName": "updated-profile",
      "yearFounded": 2015
    }
  }
}
```
