---
title: "MapAction"
url: "https://nov18-dev.movespot.fyi/apis/konnect-service-catalog-dev-1/versions/d755cd20-1635-4c78-a12c-5f42a75fa20d/schemas/MapActionPayload"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-service-catalog-dev-1/versions/d755cd20-1635-4c78-a12c-5f42a75fa20d.md

# MapAction

Must specify **at least one** of the following properties when `action_type` is `map`: - `id` - `name`

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Konnect Service Catalog
  version: 1.3.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    MapByName:
      type: object
      properties:
        name:
          description: >
            Exact match on service name based on suggestion rule scope.

            Supports JQ expression syntax on discovered entity's
            `integration_record` property.
          type: string
          example: "{{ .gateway_service.name }}-{{ .runtime_group.labels.env }}"
      additionalProperties: false
      required:
        - name
    MapById:
      type: object
      properties:
        id:
          description: >
            Exact match on service identifier based on suggestion rule scope.

            Supports JQ expression syntax on discovered entity's
            `integration_record` property.
          type: string
          example: 1ace6cb5-75ca-4488-a05d-9260628a37a8
      additionalProperties: false
      required:
        - id
    LabelsTemplate:
      description: >
        Labels to facilitate grouping and tagged search.

        Resolved keys must be of length 1-63 characters, and cannot start with
        ''kong'', ''konnect'', ''mesh'', ''kic'', or ''_''.'

        Label key and value supports JQ expression syntax on discovered entity's
        `integration_record` property.
      type: object
      example:
        env: test
      additionalProperties:
        type: string
        minLength: 1
      title: LabelsTemplate
    MapActionPayload:
      description: >
        Must specify **at least one** of the following properties when
        `action_type` is `map`:

        - `id`

        - `name`
      type: object
      properties:
        type:
          type: string
          enum:
            - map
        data:
          type: object
          additionalProperties: false
          properties:
            service:
              oneOf:
                - $ref: "#/components/schemas/MapByName"
                - $ref: "#/components/schemas/MapById"
            resource:
              type: object
              additionalProperties: false
              properties:
                labels:
                  $ref: "#/components/schemas/LabelsTemplate"
              required:
                - labels
          required:
            - service
            - resource
      additionalProperties: false
      required:
        - type
        - data
      title: MapAction
```
