PUT
/
file
/
{id}
curl --request PUT \
  --url https://api.helpyousponsor.com/v1/file/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "file_name": "<string>",
  "type": "image",
  "permissions": "donor"
}'
{
  "message": "Successfully Edited File"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

ID of the file to be edited

Body

application/json

File data that needs to be updated

The body is of type object.

Response

200
application/json

Successfully Edited File

The response is of type object.