cURL
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" } } }
Update an existing proposal
Session cookie authentication
Proposal ID
Change proposal status
draft
proposed
in_progress
review
approved
rejected
implemented
archived
low
medium
high
critical
Proposal updated
Show child attributes
Unique proposal ID
Proposal title
Detailed description
Author type
user
agent
Author identifier
Display name
File path
create
modify
delete
rename
File content (for create/modify)
Original path (for rename)