Skip to main content
PATCH
/
milestone-update
Edit a proposed milestone
curl --request PATCH \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/milestone-update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "milestone_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "title": "<string>",
  "description": "<string>",
  "amount": 1,
  "due_date": "2023-12-25"
}
'
{
  "success": true,
  "status": 200,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "escrow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "milestone_index": 1,
    "title": "Design mockups",
    "description": "Deliver Figma screens for all main flows",
    "amount": 150000,
    "due_date": "2026-05-01",
    "status": "proposed",
    "initiator_approved": true,
    "counterparty_approved": true,
    "changes_note": "Please split into two separate milestones",
    "release_tx_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "accepted_at": "2023-11-07T05:31:56Z",
    "completed_at": "2023-11-07T05:31:56Z",
    "released_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.

Body

application/json
milestone_id
string<uuid>
required
title
string
Required string length: 1 - 200
description
string | null
Maximum string length: 2000
amount
number
Required range: x > 0
due_date
string<date> | null

Response

Milestone updated

success
boolean
Example:

true

status
integer
Example:

200

data
object