---
title: "PUT /v1/{+name}"
method: PUT
path: "/v1/{+name}"
tags: ["organizations"]
---

# PUT /v1/{+name}

`PUT /v1/{+name}`

Updates the details for an AppGroup app. In addition, you can add an API product to an AppGroup app and automatically generate an API key for the app to use when calling APIs in the API product. If you want to use an existing API key for the API product, add the API product to the API key using the UpdateAppGroupAppKey API. Using this API, you cannot update the app name, as it is the primary key used to identify the app and cannot be changed. This API replaces the existing attributes with those specified in the request. Include or exclude any existing attributes that you want to retain or delete, respectively. **Note:** We recommend that you avoid making concurrent update requests for the same resource. Near-simultaneous writes to the same entity can result in conflicts and unexpected behavior. Ensure operations are sequential when modifying a single resource.

## Path parameters

- `name` string, required

## Query parameters

- `action` string
- `ignoreNewlineValidation` boolean

## Request body

- GoogleCloudApigeeV1AppGroupApp — Response for [GetAppGroupApp].[AppGroupApps.GetAppGroupApp], [CreateAppGroupAppRequest].[AppGroupApp.CreateAppGroupAppRequest] and [DeleteAppGroupApp].[AppGroupApp.DeleteAppGroupApp]
  - `attributes` GoogleCloudApigeeV1Attribute[] — List of attributes for the AppGroup app.
    - `name` string — API key of the attribute.
    - `value` string — Value of the attribute.
  - `callbackUrl` string — Callback URL used by OAuth 2.0 authorization servers to communicate authorization codes back to AppGroup apps.
  - `appId` string — Immutable. ID of the AppGroup app.
  - `credentials` GoogleCloudApigeeV1Credential[] — Output only. Set of credentials for the AppGroup app consisting of the consumer key/secret pairs associated with the API products.
    - `attributes` GoogleCloudApigeeV1Attribute[] — List of attributes associated with this credential.
      - `name` string — API key of the attribute.
      - `value` string — Value of the attribute.
    - `scopes` string[] — List of scopes to apply to the app. Specified scopes must already exist on the API product that you associate with the app.
    - `consumerKey` string — Consumer key.
    - `consumerSecret` string — Secret key.
    - `expiresAt` string, int64 — Time the credential will expire in milliseconds since epoch.
    - `status` string — Status of the credential. Valid values include `approved` or `revoked`.
    - `apiProducts` GoogleCloudApigeeV1ApiProductRef[] — List of API products this credential can be used for.
      - `apiproduct` string — Name of the API product.
      - `status` string — Status of the API product. Valid values are `approved` or `revoked`.
    - `issuedAt` string, int64 — Time the credential was issued in milliseconds since epoch.
  - `keyExpiresIn` string, int64 — Immutable. Expiration time, in seconds, for the consumer key that is generated for the AppGroup app. If not set or left to the default value of `-1`, the API key never expires. The expiration time can't be updated after it is set.
  - `appGroup` string — Immutable. Name of the parent AppGroup whose resource name format is of syntax (organizations/*/appgroups/*).
  - `apiProducts` string[] — List of API products associated with the AppGroup app.
  - `scopes` string[] — Scopes to apply to the AppGroup app. The specified scopes must already exist for the API product that you associate with the AppGroup app.
  - `name` string — Immutable. Name of the AppGroup app whose resource name format is of syntax (organizations/*/appgroups/*/apps/*).
  - `lastModifiedAt` string, int64 — Output only. Time the AppGroup app was modified in milliseconds since epoch.
  - `createdAt` string, int64 — Output only. Time the AppGroup app was created in milliseconds since epoch.
  - `status` string — Status of the App. Valid values include `approved` or `revoked`.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/apigee.md) · [All operations](https://skmtc.net/google/apis/apigee/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/apigee/versions/6e272fa448a7/schema)
