---
title: "Modify dependency group"
url: "https://earlyaccess.developers.bynder.com/apis/dependencies-for-metaproperties-and-options-1/versions/93f6af18-64b3-4b53-b2d7-016f8c7b9b97/paths/api-v4-metaproperties-id--options--optionId--dependencies-group--groupId/post"
---

> Full API specification: https://earlyaccess.developers.bynder.com/apis/dependencies-for-metaproperties-and-options-1/versions/93f6af18-64b3-4b53-b2d7-016f8c7b9b97.md

# Modify dependency group

`POST` `/api/v4/metaproperties/{id}/options/{optionId}/dependencies/group/{groupId}`

Modify a dependency group for a metaproperty option.

## Path parameters

- `id` (string, required)
- `optionId` (string, required)
- `groupId` (string, required)

## Request body (required)

Content types: `application/x-www-form-urlencoded`

## Responses

- `201` - Created
- `404` - Not Found

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Dependencies for Metaproperties and Options
  version: 1.0.0
servers:
  - url: https://{your-bynder-domain}/
paths:
  /api/v4/metaproperties/{id}/options/{optionId}/dependencies/group/{groupId}:
    post:
      description: Modify a dependency group for a metaproperty option.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            example: 00000000-0000-0000-0000000000000000
            type: string
        - in: path
          name: optionId
          required: true
          schema:
            example: 00000000-0000-0000-0000000000000000
            type: string
        - in: path
          name: groupId
          required: true
          schema:
            example: 00000000-0000-0000-0000000000000000
            type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              properties:
                data:
                  description: JSON-serialised string of dependency (metaproperty option) ids.
                  example:
                    - 00000000-0000-0000-0000000000000000
                    - 00000000-0000-0000-0000000000000000
                  items:
                    type: string
                  type: array
                groupId:
                  description: The id of the dependency group you’d like to modify.
                  example: 00000000-0000-0000-0000000000000000
                  type: string
                id:
                  description: The id of the metaproperty the (metaproperty) option belongs to.
                  example: 00000000-0000-0000-0000000000000000
                  type: string
                optionId:
                  description: The id of the (metaproperty) option the dependency group belongs
                    to.
                  example: 00000000-0000-0000-0000000000000000
                  type: string
              type: object
        required: true
      responses:
        "201":
          content:
            application/json:
              examples:
                example-201:
                  value:
                    message: Created
                    statuscode: 201
          description: Created
        "404":
          content:
            application/json:
              examples:
                example-unknown-group:
                  value:
                    message: Unknown group
                    statuscode: "404"
                example-unknown-metaproperty-option:
                  value:
                    message: Unknown metaproperty option
                    statuscode: "404"
          description: Not Found
      summary: Modify dependency group
      tags:
        - Option dependency group (Please use new Automations API if possible)
security:
  - OAuth2:
      - METAPROPERTYMANAGEMENT
      - METAMANAGEMENT
  - permanentToken:
      - METAPROPERTYMANAGEMENT
      - METAMANAGEMENT
components:
  securitySchemes:
    OAuth2:
      flows:
        authorizationCode:
          authorizationUrl: https://{your-auth-url}
          scopes:
            METAMANAGEMENT: ""
            METAPROPERTYMANAGEMENT: ""
          tokenUrl: https://{your-bynder-domain}/v6/authentication/oauth2/token
        clientCredentials:
          scopes:
            METAMANAGEMENT: ""
            METAPROPERTYMANAGEMENT: ""
          tokenUrl: https://{your-bynder-domain}/v6/authentication/oauth2/token
      type: oauth2
    permanentToken:
      in: header
      name: Authorization
      type: apiKey
```
