---
title: "Batch update WarehouseCredential"
method: PATCH
path: "/api/v3/warehouse-credential:batch-update"
tags: ["Warehouse Credential"]
---

# Batch update WarehouseCredential

`PATCH /api/v3/warehouse-credential:batch-update`

## Request

- Base URL: `https://{tenant_name}.benchling.com`
- URL: `https://{tenant_name}.benchling.com/api/v3/warehouse-credential:batch-update`
- Auth: HTTP bearer

Batch update WarehouseCredential synchronously in one transaction. Maximum 25 items per request.

## Request body

- object
  - `items` UpdateWarehouseCredentialInputWithPathParams[], required
    - `id` string, required
    - `revoked` boolean, required: Indicates whether or not the WarehouseCredential has been revoked. When a WarehouseCredential is revoked, the credentials are deleted in the warehouse and can not be reactivated. The only valid value for this field is `true`.

## Response `200`

OK

- WarehouseCredentialBatchupdateResponse200
  - `items` WarehouseCredential[], required
    - `__typename` string
    - `createdAt` string, datetime, nullable
    - `expiresAt` string, datetime, nullable: The time after which new connections using the username/password will not be permitted. Upon expiration, currently open connections are not terminated.
    - `id` string
    - `label` string, nullable: An optional label defined by the user who created the WarehouseCredential.
    - `modifiedAt` string, datetime, nullable
    - `revoked` boolean: Indicates whether or not the WarehouseCredential has been revoked. When a WarehouseCredential is revoked, the credentials are deleted in the warehouse and can not be reactivated.
    - `user` PrincipalRef
      - `__typename` string
      - `id` string, api_id
    - `username` string: The username to connect to the warehouse.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/benchling/apis/benchling-api.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api/revisions/c9f087b98b8b?raw)
