{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-accounts-organisation-v1-bulk-delete-groups-response-schema.json",
  "title": "BulkDeleteGroupsResponse contains the result of calling BulkDeleteGroups",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/safetyculture-groups-api-openapi.yml#/components/schemas/s12.accounts.organisation.v1.BulkDeleteGroupsResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/s12.accounts.organisation.v1.BulkDeleteGroupsResponse.BulkDeleteGroupsResult"
      },
      "description": "Results - successful and unsuccessful - of calling this endpoint"
    }
  },
  "$defs": {
    "s12.accounts.organisation.v1.BulkDeleteGroupsResponse.BulkDeleteGroupsResult": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "description": "Group UUID"
        },
        "code": {
          "$ref": "#/$defs/s12.accounts.organisation.v1.BulkDeleteGroupsResponse.BulkDeleteGroupsResultCode"
        }
      }
    },
    "s12.accounts.organisation.v1.BulkDeleteGroupsResponse.BulkDeleteGroupsResultCode": {
      "type": "string",
      "enum": [
        "BULK_DELETE_GROUPS_RESULT_CODE_UNSPECIFIED",
        "BULK_DELETE_GROUPS_RESULT_CODE_SUCCESS",
        "BULK_DELETE_GROUPS_RESULT_CODE_INTERNAL",
        "BULK_DELETE_GROUPS_RESULT_CODE_MALFORMED_ID",
        "BULK_DELETE_GROUPS_RESULT_CODE_NOT_FOUND"
      ],
      "default": "BULK_DELETE_GROUPS_RESULT_CODE_UNSPECIFIED",
      "description": "Type of result for each group in the BulkDeleteGroups operation.\nAllows for defining specific reasons for errors to display to customers.\n\n - BULK_DELETE_GROUPS_RESULT_CODE_UNSPECIFIED: Default\n - BULK_DELETE_GROUPS_RESULT_CODE_SUCCESS: Operation was a success\n - BULK_DELETE_GROUPS_RESULT_CODE_INTERNAL: Internal or unknown failure\n - BULK_DELETE_GROUPS_RESULT_CODE_MALFORMED_ID: Malformed group ID\n - BULK_DELETE_GROUPS_RESULT_CODE_NOT_FOUND: Group was not found"
    }
  }
}