{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/power-bi/json-schema/power-bi-goals-move-request-schema.json",
  "title": "GoalsMoveRequest",
  "description": "A request object to be used with the [Move Goals](/rest/api/power-bi/scorecards_(preview)/move-goals) API request",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/power-bi-scorecards-preview-api-openapi.yml#/components/schemas/GoalsMoveRequest",
  "required": [
    "goalToMove"
  ],
  "properties": {
    "goalToMove": {
      "description": "The rank validation information for the goal to be moved. The caller provides validation information to confirm that they know the existing position of a goal within the hierarchy of goals.",
      "$ref": "#/$defs/GoalRankValidationInfo"
    },
    "newParent": {
      "description": "Optional. The rank validation information for the new parent of the goal to be moved. The caller provides validation information to confirm that they know the existing position of a goal within the hierarchy of goals.",
      "$ref": "#/$defs/GoalRankValidationInfo"
    },
    "newPrevious": {
      "description": "Optional. The rank validation information for the new previous-sibling of the goal to be moved. The caller provides validation information to confirm that they know the existing position of a goal within the hierarchy of goals.",
      "$ref": "#/$defs/GoalRankValidationInfo"
    },
    "newNext": {
      "description": "Optional. The rank validation information for the new next-sibling of the goal to be moved. The caller provides validation information to confirm that they know the existing position of a goal within the hierarchy of goals.",
      "$ref": "#/$defs/GoalRankValidationInfo"
    }
  },
  "$defs": {
    "GoalRankValidationInfo": {
      "description": "The rank validation information for a Power BI goal, to be used with the [Move Goals](/rest/api/power-bi/scorecards_(preview)/move-goals) API request. The caller provides validation information to confirm that they know the existing position of the goal within the hierarchy of goals.",
      "properties": {
        "goalId": {
          "description": "The goal ID",
          "type": "string",
          "format": "uuid"
        },
        "currentParentId": {
          "description": "The ID of the current parent goal",
          "type": "string",
          "format": "uuid"
        }
      }
    }
  }
}