---
title: "Set config object key"
method: PUT
path: "/v1/config-objects/{configObjectId}/key"
tags: ["Config Objects"]
---

# Set config object key

`PUT /v1/config-objects/{configObjectId}/key`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/config-objects/{configObjectId}/key`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Sets or clears the stable key a configuration import finds this config object by. The key is unique per organization and never follows the title.

## Path parameters

- `configObjectId` string, typeid, required

## Request body

- object
  - `externalKey` string, nullable, required

## Response `200`

Config object key updated successfully.

- PluginArchConfigObjectMutationResponse
  - `ok` true, required
  - `item` PluginArchConfigObject, required
    - `id` string, typeid, required: Den TypeID with 'cob_' prefix and a 26-character base32 suffix.
    - `externalKey` string, nullable, required
    - `organizationId` string, typeid, required: Den TypeID with 'org_' prefix and a 26-character base32 suffix.
    - `objectType` 'skill' | 'agent' | 'command' | 'tool' | 'mcp' | 'hook' | 'context' | 'custom' | 'script' | 'workflow' | 'app', required
    - `sourceMode` 'cloud' | 'import' | 'connector', required
    - `title` string, required
    - `description` string, nullable, required
    - `searchText` string, nullable, required
    - `currentFileName` string, nullable, required
    - `currentFileExtension` string, nullable, required
    - `currentRelativePath` string, nullable, required
    - `status` 'active' | 'inactive' | 'deleted' | 'archived' | 'ingestion_error', required
    - `createdByOrgMembershipId` string, typeid, required: Den TypeID with 'om_' prefix and a 26-character base32 suffix.
    - `connectorInstanceId` string, typeid, nullable, required: Den TypeID with 'cin_' prefix and a 26-character base32 suffix.
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `deletedAt` string, date-time, nullable, required
    - `latestVersion` PluginArchConfigObjectVersion, nullable, required
      - `id` string, typeid, required: Den TypeID with 'cov_' prefix and a 26-character base32 suffix.
      - `configObjectId` string, typeid, required: Den TypeID with 'cob_' prefix and a 26-character base32 suffix.
      - `schemaVersion` string, nullable, required
      - `normalizedPayloadJson` object, nullable, required
      - `rawSourceText` string, nullable, required
      - `createdVia` 'cloud' | 'import' | 'connector' | 'system', required
      - `createdByOrgMembershipId` string, typeid, nullable, required: Den TypeID with 'om_' prefix and a 26-character base32 suffix.
      - `connectorSyncEventId` string, typeid, nullable, required: Den TypeID with 'cse_' prefix and a 26-character base32 suffix.
      - `sourceRevisionRef` string, nullable, required
      - `isDeletedVersion` boolean, required
      - `createdAt` string, date-time, required

## Other responses

- `400`: The key was invalid.
- `401`: The caller must be signed in to manage config objects.
- `403`: The caller lacks permission to manage this config object.
- `404`: The config object could not be found.
- `409`: Another config object in the organization already has this key (external_key_taken).

## Changes

- **2026-11-15** `eda6b38712e2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/config-objects/:configObjectId/key/put.md)

---

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