{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-chime/json-schema/amazon-chime-create-channel-membership-request-schema.json",
  "title": "CreateChannelMembershipRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-chime-memberships-api-openapi.yml#/components/schemas/CreateChannelMembershipRequest",
  "type": "object",
  "properties": {
    "ChannelArn": {
      "type": "string",
      "description": "The ARN of the channel to which you're adding users."
    },
    "MemberArn": {
      "type": "string",
      "description": "The AppInstanceUserArn of the member you want to add to the channel."
    },
    "Type": {
      "type": "string",
      "enum": [
        "DEFAULT",
        "HIDDEN"
      ],
      "description": "The membership type of a user, DEFAULT or HIDDEN. Default members are always returned as part of ListChannelMemberships. Hidden members are only returned if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned. This is only supported by moderators."
    },
    "ChimeBearer": {
      "type": "string",
      "description": "The ARN of the AppInstanceUser or AppInstanceBot that makes the API call."
    },
    "SubChannelId": {
      "type": "string",
      "description": "The ID of the SubChannel in the request. Only required when creating membership in a SubChannel for a moderator in an elastic channel."
    }
  },
  "required": [
    "ChannelArn",
    "MemberArn",
    "Type",
    "ChimeBearer"
  ]
}