---
title: "Update a Key-set"
url: "https://nov18-dev.movespot.fyi/apis/konnect-runtime-groups-configuration-0/versions/af18902c-58f1-49d7-8ec2-9987b4e0d1bd/operations/upsert-key-set"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-runtime-groups-configuration-0/versions/af18902c-58f1-49d7-8ec2-9987b4e0d1bd.md

# Update a Key-set

`PUT` `/runtime-groups/{runtimeGroupId}/core-entities/key-sets/{key-set_id_or_name}`

Operation ID: `upsert-key-set`

Update a Key-set using ID or name.

## Path parameters

- `key-set_id_or_name` (string, required) - The unique identifier or the `name` attribute of the Key Set that should be associated to the newly-created Key.
- `runtimeGroupId` (string, required) - The ID of your runtime group. This variable is available in the Konnect manager

## Request body

Content types: `application/json`

## Responses

- `200` - Key set object response body
- `400` - Invalid Key-set

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Konnect Runtime Groups Configuration
  version: 0.0.1
servers:
  - url: https://us.api.konghq.com/v2
    description: United-States Production region
  - url: https://eu.api.konghq.com/v2
    description: Europe Production region
  - url: https://au.api.konghq.com/v2
    description: Australia Production region
  - url: https://me.api.konghq.com/v2
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v2
    description: India Production region
  - url: https://sg.api.konghq.com/v2
    description: Singapore Production region
paths:
  /runtime-groups/{runtimeGroupId}/core-entities/key-sets/{key-set_id_or_name}:
    parameters:
      - $ref: "#/components/parameters/key-set_id_or_name"
      - $ref: "#/components/parameters/runtimeGroupId"
    put:
      operationId: upsert-key-set
      summary: Update a Key-set
      description: Update a Key-set using ID or name.
      requestBody:
        $ref: "#/components/requestBodies/key-set-request"
      responses:
        "200":
          $ref: "#/components/responses/key-set-response"
        "400":
          description: Invalid Key-set
          content:
            application/json:
              schema:
                type: object
      tags:
        - Key-sets
security:
  - konnectAccessToken: []
  - personalAccessToken: []
components:
  parameters:
    key-set_id_or_name:
      name: key-set_id_or_name
      in: path
      required: true
      schema:
        type: string
        example: 46CA83EE-671C-11ED-BFAB-2FE47512C77A
      description: The unique identifier or the `name` attribute of the Key Set that
        should be associated to the newly-created Key.
    runtimeGroupId:
      name: runtimeGroupId
      in: path
      required: true
      schema:
        type: string
        example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
      description: The ID of your runtime group. This variable is available in the
        Konnect manager
  requestBodies:
    key-set-request:
      content:
        application/json:
          schema:
            type: object
            properties:
              name:
                description: |
                  The name to associate with the given key-set.
                type: string
                example: my-key_set
              tags:
                description: >
                  An optional set of strings associated with the Key for
                  grouping and filtering.
                type: array
                items:
                  type: string
            x-examples:
              Example 1:
                name: my-key_set
                tags:
                  - google-keys
                  - mozilla-keys
  responses:
    key-set-response:
      description: Key set object response body
      content:
        application/json:
          schema:
            type: object
            properties:
              id:
                type: string
                example: 4D0DBDA-671C-11ED-BA0B-EF1DCCD3725F
              name:
                description: |
                  The name to associate with the given key-set.
                type: string
                example: my-key_set
              created_at:
                description: Unix epoch when the resource was last created.
                type: integer
                example: 1422386534
              updated_at:
                description: |
                  Unix epoch when the resource was last updated.
                type: integer
                example: 1422386534
              tags:
                description: |
                  The name to associate with the given key-set.
                type: array
                items:
                  type: string
              next:
                description: >
                  Offset is used to paginate through the API. Provide this value
                  to the next list operation to fetch the next page
                type: string
                example: http://localhost:8001/key-sets?offset=6378122c-a0a1-438d-a5c6-efabae9fb969
            x-examples:
              Example 1:
                id: b58c7d9d-e54f-444c-b24d-cdfc4159f61e
                name: example-key-set
                created_at: 1422386534
                updated_at: 1422386534
                tags:
                  - idp-keys
                next: http://localhost:8001/key-sets?offset=6378122c-a0a1-438d-a5c6-efabae9fb969
          examples:
            example:
              value:
                id: 4D0DBDA-671C-11ED-BA0B-EF1DCCD3725F
                name: my-key_set
                created_at: 1422386534
                updated_at: 1422386534
                tags:
                  - string
                next: http://localhost:8001/key-sets?offset=6378122c-a0a1-438d-a5c6-efabae9fb969
  securitySchemes:
    konnectAccessToken:
      type: http
      scheme: bearer
      description: >-
        The Konnect access token is meant to be used by the Konnect dashboard
        and the decK CLI to

        authenticate with.
    personalAccessToken:
      type: http
      scheme: bearer
      description: The personal access token is meant to be used as an alternative to
        basic-auth when accessing Konnect via APIs. You can generate a Personal
        Access Token (PAT) from the personal access token page in the Konnect
        dashboard.
```
