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
id
integer
Example:

1

file_name
string

The name of the file

type
string
Example:

"image"

permissions
string
Example:

"donor"

Response

200
application/json
Successfully Edited File
message
string
Example:

"Successfully Edited File"