{
  "name": "AssignDirectoryRole",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "rest",
    "method": "PUT",
    "path": "/auth/directory/members/{memberId}/role",
    "query": [],
    "headers": [
      "authorization"
    ],
    "body": true
  },
  "requestBody": "json",
  "responseBody": "json",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "memberId": {
        "type": "string"
      },
      "role": {
        "type": "string"
      }
    },
    "required": [
      "memberId",
      "role"
    ],
    "title": "AssignDirectoryRoleRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "cloudRole": {
        "type": [
          "string",
          "null"
        ]
      },
      "email": {
        "type": "string"
      },
      "memberId": {
        "type": "string"
      },
      "tenantId": {
        "type": "string"
      }
    },
    "required": [
      "email",
      "memberId",
      "tenantId"
    ],
    "title": "DirectoryMember",
    "type": "object"
  }
}
