{
  "operationId": "MarkupRules_CreateOrUpdate",
  "title": "MarkupRulesCreateOrUpdate",
  "parameters": {
    "api-version": "2026-06-01",
    "billingAccountId": "2af90bea-080c-438c-8977-17cddd5f115a:ef5ce3cf-f5af-4fcb-a5ed-c376e1d6d2b6",
    "billingProfileId": "cbf78278-f4b8-43d9-8f13-47112da1c63e",
    "ruleName": "markup-2022",
    "resource": {
      "properties": {
        "description": "Markup rule for year 2022",
        "percentage": 5.0,
        "startDate": "2022-01-01T00:00:00Z",
        "endDate": "2022-12-31T00:00:00Z",
        "customerDetails": {
          "billingAccountId": "cff9aa6d-941c-43f2-b6cb-1d2bb34a02b4:780237f3-1aa6-4159-943b-498e0d647dd9",
          "billingProfileId": "08eeecee-efb2-40d5-817c-0a254d2e042c"
        }
      }
    }
  },
  "responses": {
    "200": {
      "body": {
        "id": "/providers/Microsoft.Billing/billingAccounts/2af90bea-080c-438c-8977-17cddd5f115a:ef5ce3cf-f5af-4fcb-a5ed-c376e1d6d2b6/billingProfiles/cbf78278-f4b8-43d9-8f13-47112da1c63e/providers/Microsoft.CostManagement/markupRules/markup-2022",
        "name": "markup-2022",
        "type": "Microsoft.CostManagement/markupRules",
        "properties": {
          "description": "Markup rule for year 2022",
          "percentage": 5.0,
          "startDate": "2022-01-01T00:00:00Z",
          "endDate": "2022-12-31T00:00:00Z",
          "customerDetails": {
            "billingAccountId": "cff9aa6d-941c-43f2-b6cb-1d2bb34a02b4:780237f3-1aa6-4159-943b-498e0d647dd9",
            "billingProfileId": "08eeecee-efb2-40d5-817c-0a254d2e042c"
          }
        },
        "systemData": {
          "createdAt": "2020-06-18T22:21:51.1287144Z",
          "createdBy": "testuser",
          "createdByType": "User",
          "lastModifiedAt": "2020-06-18T22:21:51.1287144Z",
          "lastModifiedBy": "testuser",
          "lastModifiedByType": "User"
        }
      }
    },
    "201": {
      "body": {
        "id": "/providers/Microsoft.Billing/billingAccounts/2af90bea-080c-438c-8977-17cddd5f115a:ef5ce3cf-f5af-4fcb-a5ed-c376e1d6d2b6/billingProfiles/cbf78278-f4b8-43d9-8f13-47112da1c63e/providers/Microsoft.CostManagement/markupRules/markup-2022",
        "name": "markup-2022",
        "type": "Microsoft.CostManagement/markupRules",
        "properties": {
          "description": "Markup rule for year 2022",
          "percentage": 5.0,
          "startDate": "2022-01-01T00:00:00Z",
          "endDate": "2022-12-31T00:00:00Z",
          "customerDetails": {
            "billingAccountId": "cff9aa6d-941c-43f2-b6cb-1d2bb34a02b4:780237f3-1aa6-4159-943b-498e0d647dd9",
            "billingProfileId": "08eeecee-efb2-40d5-817c-0a254d2e042c"
          }
        },
        "systemData": {
          "createdAt": "2020-06-18T22:21:51.1287144Z",
          "createdBy": "testuser",
          "createdByType": "User",
          "lastModifiedAt": "2020-06-18T22:21:51.1287144Z",
          "lastModifiedBy": "testuser",
          "lastModifiedByType": "User"
        }
      }
    }
  }
}
