{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frontapp/json-schema/frontapp-create-teammate-group-schema.json",
  "title": "CreateTeammateGroup",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frontapp-teammate-groups-api-openapi.yml#/components/schemas/CreateTeammateGroup",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the teammate group"
    },
    "description": {
      "type": "string",
      "description": "Description of the teammate group"
    },
    "permissions": {
      "type": "object",
      "description": "Permissions for the teammate group",
      "properties": {
        "contacts": {
          "type": "object",
          "description": "Permissions for accessing contact lists. This only applies if shared contacts permissions are enabled.",
          "required": [
            "access"
          ],
          "properties": {
            "access": {
              "type": "string",
              "description": "One of 'all', 'contact_groups', 'contact_lists', or 'none'."
            },
            "contact_group_ids": {
              "type": "array",
              "deprecated": true,
              "description": "List of contact group ids. Can only be specified if access is set to 'contact_groups'. ⚠️ Deprecated. Use access 'contact_lists' and 'contact_list_ids' instead.",
              "items": {
                "type": "string"
              }
            },
            "contact_list_ids": {
              "type": "array",
              "description": "List of contact list ids. Can only be specified if access is set to 'contact_lists'.",
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}