Skip to main content
PUT
/
api
/
v1
/
proposals
/
{id}
Update proposal
curl --request PUT \
  --url http://localhost:3000/api/v1/proposals/{id} \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "status": "draft",
  "priority": "low",
  "tags": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "proposal": {
      "id": "<string>",
      "title": "<string>",
      "status": "draft",
      "description": "<string>",
      "priority": "low",
      "tags": [
        "<string>"
      ],
      "author": {
        "type": "user",
        "id": "<string>",
        "name": "<string>"
      },
      "changes": [
        {
          "path": "<string>",
          "type": "create",
          "content": "<string>",
          "oldPath": "<string>"
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Path Parameters

id
string
required

Proposal ID

Body

application/json
title
string
description
string
status
enum<string>

Change proposal status

Available options:
draft,
proposed,
in_progress,
review,
approved,
rejected,
implemented,
archived
priority
enum<string>
Available options:
low,
medium,
high,
critical
tags
string[]

Response

Proposal updated

success
boolean
required
data
object