{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/victorops/json-schema/victorops-delete-user-payload-schema.json",
  "title": "DeleteUserPayload",
  "description": "The information about what to do with the deleted user",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/victorops-openapi.yml#/components/schemas/DeleteUserPayload",
  "type": "object",
  "properties": {
    "replacement": {
      "type": "string",
      "description": "The user to take the place of the deleted user in escalations"
    },
    "replacementStrategy": {
      "type": "string",
      "enum": [
        "specifiedUser",
        "globalAdmin",
        "teamAdmin",
        "findReplacement"
      ],
      "description": "The strategy you would like to use to replace the user. They work as follows specifiedUser - replace the deleted user with a specific user. If using\n               this strategy, you MUST provide the `replacement` field\n               as well. This is also the default strategy. So, if you\n               provide no replacementStrategy in your request, you are\n               still required to provide a `replacement` field.\nglobalAdmin - replace the deleted user with the first Global Admin for the\n              organization.\nteamAdmin - replace the deleted user in rotations/escalation policies with\n            the team admin for the team related to that rotation or escalation\n            policy. This strategy REQUIRES that every team have an admin that\n            is not the deleted user.\nfindReplacement - This strategy will attempt to find the best replacement\n                  based on roles within the team, paging policy configuration\n                  and other factors. Selected replacement user will be\n                  notified by email. You cannot delete the last active user on\n                  any team or last Global Admin user using this strategy.\n"
    }
  }
}