> 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/015_invitation_links/004__update_company_invitation_link.md).

# Update Company Invitation Link

GraphQL endpoint: `/company`

Updates one of the current company's invitation links. Only the provided arguments are changed; omitted settings keep their values.

## Query

```graphql
mutation (
  $id: ID!
  $name: String
  $allowUserConnection: Boolean
  $requestEmailSubscription: Boolean
) {
  updateCompanyInvitationLink (
    id: $id
    name: $name
    allowUserConnection: $allowUserConnection
    requestEmailSubscription: $requestEmailSubscription
  ) {
    id
    name
    allowUserConnection
    requestEmailSubscription
  }
}

```

## Variables

```json
{
  "id": "00000000-0000-4000-8000-000000000001",
  "name": "New name",
  "requestEmailSubscription": true
}
```

## Response

```json
{
  "data": {
    "updateCompanyInvitationLink": {
      "allowUserConnection": false,
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "New name",
      "requestEmailSubscription": true
    }
  }
}
```
