Skip to main content

TimeAndActionUpdateMilestone

milestones object[]required

Milestones information. At least one milestone with actualStartDate, actualEndDate, lateReasonCodes, plannedStartDate or plannedEndDate is required.

Possible values: >= 1

  • Array [
  • actualEndDatestring<date>nullable

    The actual end date of a milestone

    Example: 2022-12-12
    actualStartDatestring<date>nullable

    The actual start date of a milestone

    Example: 2022-12-12
    idstringrequired

    ID of a milestone

    Possible values: non-empty

    Example: 1234f24e-54f6-4326-b4d3-402d52af291a
    lateReasonCodes object[]

    Late reason codes from the T&A owner's late-milestone reason set (GET /api/v1/time-and-actions/{ta_id}/reason-codes). Names match after trimming, ignoring case. They replace the codes already on the milestone and can be sent without dates, e.g. to add or change codes after the milestone is completed. Saved for late and on-time milestones. An unknown code fails the milestone and the error lists the valid codes.

  • Array [
  • primaryReasonCodestringrequired

    Possible values: non-empty

    Example: Material Delay
    secondaryReasonCodesstring[]
    Example: ["Fabric late"]
  • ]
  • plannedStartDatestring<date>nullable

    New planned start date. Only the T&A creator can send planned dates, on an Upcoming or New T&A. They are saved as an edit, or as a revision (original dates kept) when the T&A's status is in the owner's Revise Date setting, the same way as the bulk planned-dates update in the app. Send planned dates in their own request, without actual dates or lateReasonCodes.

    Example: 2022-12-12
    plannedEndDatestring<date>nullable

    New planned end date. Same rules as plannedStartDate.

    Example: 2022-12-12
    reviseReasonstring

    Why the planned dates changed. Saved only when the change is a revision (the T&A's status is in the owner's Revise Date setting); ignored otherwise.

    Example: Fabric arrives 4 days late
  • ]
  • TimeAndActionUpdateMilestone
    {
    "milestones": [
    {
    "actualEndDate": "2022-12-12",
    "actualStartDate": "2022-12-12",
    "id": "1234f24e-54f6-4326-b4d3-402d52af291a",
    "lateReasonCodes": [
    {
    "primaryReasonCode": "Material Delay",
    "secondaryReasonCodes": [
    "Fabric late"
    ]
    }
    ],
    "plannedStartDate": "2022-12-12",
    "plannedEndDate": "2022-12-12",
    "reviseReason": "Fabric arrives 4 days late"
    }
    ]
    }