{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/power-bi/json-schema/power-bi-goal-create-request-schema.json",
  "title": "GoalCreateRequest",
  "description": "A Power BI goal create request",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/power-bi-goals-preview-api-openapi.yml#/components/schemas/GoalCreateRequest",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "description": "The goal name",
      "type": "string"
    },
    "startDate": {
      "description": "Optional. The UTC timestamp for the start date of the goal. The time portion of the timestamp is zero.",
      "type": "string",
      "format": "date-time"
    },
    "completionDate": {
      "description": "Optional. The UTC timestamp for the completion date of the goal. The time portion of the timestamp is zero.",
      "type": "string",
      "format": "date-time"
    },
    "parentId": {
      "description": "Optional. The ID of the parent goal, if defined.",
      "type": "string"
    },
    "valuesFormatString": {
      "description": "Optional. The [custom format string](/power-bi/create-reports/desktop-custom-format-strings) for values.",
      "type": "string"
    },
    "datesFormatString": {
      "description": "Optional. The [custom format string](/power-bi/create-reports/desktop-custom-format-strings) for dates.",
      "type": "string"
    }
  }
}