---
search:
  tags:
    - Project Keys
    - PATCH
seo:
  description: >-
    Update a Project Key's name, description, roles, tool scoping, or… Reference
    for the PATCH /project-keys/{project_key_id} endpoint in the Streamkap REST
    API.
sidebar:
  label: Update Project Key
  badge: PATCH
title: Update Project Key
type: openapi-operation
---
Update a Project Key's name, description, roles, tool scoping, or Kafka ACLs.

Supports additive capability transitions:
- Send `kafka_config` on an API-only PK to add Kafka access. Response will include
  `new_kafka_credentials` with the plaintext Kafka password (shown once).
- Send `role_ids` or `permission_ids` on a Kafka-only PK to add API credentials.
  Response will include `new_api_credentials` with the plaintext client_secret (shown once).

Returns 400 if the key is in creating/deleting/delete_failed state.
role_ids and permission_ids are mutually exclusive.

`PATCH /project-keys/{project_key_id}`
