Skip to main content
PUT
/
api
/
v1
/
resources
/
{filename}
Update resource
curl --request PUT \
  --url http://localhost:3000/api/v1/resources/{filename} \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "description": "<string>",
  "proposalId": "<string>"
}
'
{
  "success": true,
  "data": {
    "resource": {
      "filename": "<string>",
      "type": "image",
      "mimeType": "<string>",
      "size": 123,
      "description": "<string>",
      "proposalId": "<string>",
      "url": "<string>",
      "thumbnailUrl": "<string>",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Path Parameters

filename
string
required

Resource filename

Body

application/json
description
string
proposalId
string

Response

Resource updated

success
boolean
required
data
object