{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mend/main/json-schema/mend-group-role-request-dto-schema.json",
  "title": "GroupRoleRequestDTO",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mend-user-management-groups-api-openapi.yml#/components/schemas/GroupRoleRequestDTO",
  "required": [
    "contextToken",
    "contextType"
  ],
  "type": "object",
  "properties": {
    "contextToken": {
      "type": "string",
      "description": "Depending on the value of contextType, this can be:\n+ orgToken (org UUID by running Entities - Organization > Get User Organization) or Api Token (from the Mend SCA App: **Integrate** tab > **API Key**).\n+ productToken (product UUID (by running Entities - Organization > Get Organization Products) or Product Token (from the Mend SCA App: **Integrate** tab > **Product Token**.\n+ projectToken (project UUID by running Entities - Product > Get Product Projects) or project Token (from the Mend SCA App: **Integrate** tab > **Project Token**)."
    },
    "contextType": {
      "type": "string",
      "description": "Type of entity the role will be associated with",
      "enum": [
        "orgs",
        "products"
      ]
    },
    "role": {
      "type": "string",
      "enum": [
        "DEFAULT_APPROVER",
        "ADMIN",
        "ALERT_EMAIL_RECEIVER",
        "ALERTS_IGNORER",
        "LICENSE_AND_COPYRIGHT_ASSIGNER",
        "AUDITOR",
        "USER",
        "PRODUCT_INTEGRATOR",
        "SBOM_EXPORTER"
      ]
    }
  }
}