# Update an existing Revenue Milestone

Update an existing Revenue Milestone

Endpoint: PATCH /api/revenue-milestones/{milestoneId}
Version: 1.13
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer

## Path parameters:

  - `milestoneId` (string, required)
    The unique ID (Salesforce Id) of the revenue milestone to be updated. This is REQUIRED.

## Request fields (application/json):

  - `Name` (string)
    Updated name for the milestone. If provided, it must not be blank — do not send an empty or whitespace-only string.

  - `MilestoneDate` (string)
    Updated milestone date. Must be in YYYY-MM-DD format.

  - `MilestonePercentage` (number)
    Type 1 (Percentage-based): Updated percentage of contract value (0-100). Use when the delivery element uses DeliveryElement forecast mode.

  - `InvoicingCurrencyRevenue` (number)
    Type 2 (Fixed value): Updated invoicing currency revenue value. Use when the delivery element is not unit-generated.

  - `Units` (number)
    Type 3 (Unit-based): Updated number of units. Use together with InvoicingCurrencyUnitValue when the delivery element is unit-generated.

  - `InvoicingCurrencyUnitValue` (number)
    Type 3 (Unit-based): Updated invoicing currency value per unit. Use together with Units when the delivery element is unit-generated.

  - `Notes` (string)
    Updated notes for the milestone.

  - `MilestoneStatus` (string)
    New status for the milestone. Accepted values: Open (revert to draft), CompletedUnapproved (submit for completion approval), Obsolete.

  - `CustomFieldsMap` (array)
    A map of custom field API name to value to be saved on the milestone. Use this to set org-specific custom fields added to Milestone__c.

  - `CustomFieldsMap.Key` (string)

  - `CustomFieldsMap.Value` (string)

## Response 200:

  - `200` (unknown)
    Success

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 500:

  - `500` (unknown)
    Server Error

## Response 500 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

