> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateTenantApplication

> Replaces an existing tenant application's metadata, capability scopes, resource grants, and authorized APIs.



**mutation** `updateTenantApplication(input: UpdateTenantApplicationInput!): UpdateTenantApplicationPayload!`

## Arguments

**`input`**: `UpdateTenantApplicationInput!` (required)

Replacement configuration and the latest concurrency token.

## Returns

`UpdateTenantApplicationPayload!`

**`errors`**: `[UpdateTenantApplicationError!]`

---

**`tenantApplication`**: `TenantApplication`

## Examples

```graphql Mutation
mutation UpdateTenantApplication($input: UpdateTenantApplicationInput!) {
  updateTenantApplication(input: $input) {
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
    tenantApplication {
      accessToken {
        expiresIn
        token
      }
      apiSelectors
      audiences
      clientId
      createdAt
      createdBy
    }
  }
}
```

```json Variables
{
  "input": {
    "apiSelectors": [
      "string"
    ],
    "id": "id",
    "name": "string",
    "resourceSelectors": [
      "string"
    ],
    "scopeKeys": [
      "string"
    ],
    "tags": [
      "string"
    ]
  }
}
```

```json Response
{
  "data": {
    "updateTenantApplication": {
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ],
      "tenantApplication": {
        "accessToken": {
          "expiresIn": 1,
          "token": "string"
        },
        "apiSelectors": [
          "string"
        ],
        "audiences": [
          "string"
        ],
        "clientId": "string",
        "createdAt": "value",
        "createdBy": "value"
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.