cURL
curl --request POST \ --url http://localhost:3001/api/v1/resources \ --header 'Content-Type: multipart/form-data' \ --cookie nut-session= \ --form file='@example-file' \ --form 'description=<string>' \ --form '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" } } }
Upload a new resource file
Session cookie authentication
File to upload
Optional description
Associated proposal ID
Resource uploaded
Show child attributes