---
agentTools:
  projectIndex: https://productplan.readme.io/llms.txt
---

# Update Roadmap Milestone

Updates a specific Milestone in a specific Roadmap.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "ProductPlan API V2",
    "version": "v2"
  },
  "paths": {
    "/api/v2/roadmaps/{roadmap_id}/milestones/{id}": {
      "patch": {
        "summary": "Update Roadmap Milestone",
        "tags": [
          "Roadmaps"
        ],
        "description": "Updates a specific Milestone in a specific Roadmap.",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "roadmap_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "milestone successfully updated"
          },
          "400": {
            "description": "invalid lane id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MilestoneRead"
              }
            }
          },
          "required": true
        }
      }
    }
  },
  "tags": [
    {
      "name": "Roadmaps"
    }
  ],
  "servers": [
    {
      "url": "https://{defaultHost}",
      "variables": {
        "defaultHost": {
          "default": "app.productplan.com"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "errors"
        ],
        "additionalProperties": false
      },
      "MilestoneRead": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The milestone's unique database identifier.",
            "example": 1
          },
          "title": {
            "type": "string",
            "description": "Name of the miletone.",
            "example": "Sailed to Monkey Island!"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "In-depth explanation of what the milestone represents.",
            "example": "Completed course to Monkey Island."
          },
          "date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Date for which the milestone is to be completed."
          },
          "expanded": {
            "type": "boolean",
            "description": "Whether or not this milestone is expanded."
          },
          "location_type": {
            "type": "string",
            "description": "Type of location associated with the milestone.",
            "example": "Roadmap"
          },
          "location_name": {
            "type": "string",
            "nullable": true,
            "description": "The lane or roadmap assigned to the milestone."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time the milestone was first created."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time the milestone was last updated."
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "date",
          "expanded",
          "location_type",
          "location_name",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 145,
      "2": 51,
      "3": 180,
      "4": 236,
      "5": 85,
      "6": 77,
      "7": 0,
      "8": 85,
      "9": 123,
      "10": 158,
      "11": 250
    }
  }
}
```