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"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the file to be edited
File data that needs to be updated
The body is of type object
.
Successfully Edited File
The response is of type object
.
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"
}