---
title: "Update connector mapping"
method: PATCH
path: "/v1/connector-mappings/{connectorMappingId}"
tags: ["Connectors"]
---

# Update connector mapping

`PATCH /v1/connector-mappings/{connectorMappingId}`

Updates one connector mapping.

## Path parameters

- `connectorMappingId` string, typeid, required

## Request body

- object
  - `selector` string
  - `objectType` 'skill' | 'agent' | 'command' | 'tool' | 'mcp' | 'hook' | 'context' | 'custom'
  - `pluginId` string, typeid, nullable — Den TypeID with 'plg_' prefix and a 26-character base32 suffix.
  - `autoAddToPlugin` boolean
  - `config` object

## Response `200`

Connector mapping updated successfully.

- PluginArchConnectorMappingMutationResponse
  - `ok` true, required
  - `item` PluginArchConnectorMapping, required
    - `id` string, typeid, required — Den TypeID with 'cmp_' prefix and a 26-character base32 suffix.
    - `connectorInstanceId` string, typeid, required — Den TypeID with 'cin_' prefix and a 26-character base32 suffix.
    - `connectorTargetId` string, typeid, required — Den TypeID with 'ctg_' prefix and a 26-character base32 suffix.
    - `connectorType` 'github', required
    - `remoteId` string, nullable, required
    - `mappingKind` 'path' | 'api' | 'custom', required
    - `selector` string, required
    - `objectType` 'skill' | 'agent' | 'command' | 'tool' | 'mcp' | 'hook' | 'context' | 'custom', required
    - `pluginId` string, typeid, nullable, required — Den TypeID with 'plg_' prefix and a 26-character base32 suffix.
    - `autoAddToPlugin` boolean, required
    - `mappingConfigJson` object, nullable, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400` — The connector mapping update request was invalid.
- `401` — The caller must be signed in to update connector mappings.
- `403` — The caller lacks permission to edit this connector instance or target plugin.
- `404` — The connector mapping could not be found.

---

[API](https://skmtc.net/openworklabs/apis/den-api.md) · [All operations](https://skmtc.net/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openworklabs/den-api/versions/805150503452/schema)
