---
title: "Create Resource Mapping"
method: POST
path: "/v1/resource-mappings"
tags: ["Catalog Resource Mappings"]
---

# Create Resource Mapping

`POST /v1/resource-mappings`

Creates a mapping between a catalog resource and service.

## Request body

- CreateCatalogResourceMapping
  - `service` string, required — The `id` or `name` of the service to map the resource to.
  - `resource` union, required
    - string, base64url — The resource ID.
    - CreateCatalogResourceMappingResourceByConfig
      - `integration_instance` string, required — The `id` or `name` of the integration instance the resource belongs to.
      - `type` string, required — The resource type. Available resource types are compiled from the integrations installed within the catalog.
      - `config` CatalogResourceConfig, required — JSON object representing the properties used to identify the resource in the third-party system. The schema depends on the resource type and is dynamically registered at runtime.

## Response `201`

A response containing a single catalog resource mapping.

- CatalogResourceMapping — Describes a mapping between a catalog resource and a service.
  - `id` string, uuid, required — The resource mapping ID.
  - `resource` CatalogResourceRef, required — Short-hand descriptor of a catalog resource.
    - `id` string, base64url, required — The resource ID.
    - `name` string, nullable, required — The name of the resource.
    - `integration` IntegrationRef, required — Short-hand descriptor of an integration installed within the catalog.
      - `name` string, required
      - `display_name` string, required
      - `instance` IntegrationInstanceRef, required — Short-hand descriptor of an integration instance.
        - `id` string, uuid, required — The integration instance ID.
        - `name` string, required — The machine name of the integration instance that uniquely identifies it within the catalog.
        - `display_name` string, required — The display name of the integration instance.
    - `type` string, required — The resource type. Available resource types are compiled from the integrations installed within the catalog.
    - `config` CatalogResourceConfig, required — JSON object representing the properties used to identify the resource in the third-party system. The schema depends on the resource type and is dynamically registered at runtime.
  - `service` CatalogServiceRef, required — Short-hand descriptor of a catalog service.
    - `id` string, uuid, required — The service ID.
    - `name` string, required — The machine name of the service that uniquely identifies it within the catalog.
    - `display_name` string, required — The display name of the service.
  - `created_at` string, date-time, required — An ISO-8601 timestamp representation of entity creation date.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/versions/f920f418f552/schema)
