---
updatedAt: 2026-09-28T10:32:36.000Z
agentTools:
  projectIndex: https://docs.umbrellacost.io/llms.txt
---

# Assign Mapping Group to Business Mapping

<Callout icon="📘" theme="info">
  You can find the `groupId` in the response of the [**GET Viewpoint**](https://docs.umbrellacost.io/reference/get_apiv1usagebusiness-mappingviewpoints) call, under `mappingGroups[].id`
</Callout>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cost & Usage",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.umbrellacost.io"
    }
  ],
  "x-readme": {
    "explorer-enabled": false
  },
  "paths": {
    "/api/v2/business-mapping/viewpoints/{viewpointId}/mappings/{mappingId}/group": {
      "put": {
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "viewpointId",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Authorization",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "apikey",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "mappingId",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "summary": "Assign Mapping Group to Business Mapping",
        "x-internal": false,
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mappingGroupId": {
                    "type": "string",
                    "default": "<groupId>"
                  }
                },
                "required": [
                  "mappingGroupId"
                ]
              }
            }
          }
        },
        "operationId": "put_api-v2-business-mapping-viewpoints-viewpointid-mappings-mappingid-group"
      }
    }
  }
}
```