Update Media File

Scott Wallace
Scott Wallace
  • Updated
PUT https://api.actonsoftware.com/api/1/media/{id}

This endpoint allows you to update an existing media file in the account.

Customers wanting to access our API via our gateway in the EU can use this link: 

PUT https://api-eu.actonsoftware.com/api/1/media/{id}

Parameters

Name Parameter
Type
Allow
Multiple
Required/
Optional
Data Type Description
Authorization: Header False Required String Insert your generated access token.
(Bearer {access token}
id Path False Required String Specify the ID of the media file.
file Form False Required multipart Attach the media file.

 

Response

{
  "status": "success",
  "message": "The file has been uploaded",
  "id": "f-2e148bf1-7bb3-4b2b-af0e-4f2f6dd2faaa"
}

 

Code Examples

cURL

curl -X PUT https://api.actonsoftware.com/api/1/media/f-2e148bf1-7bb3-4b2b-af0e-4f2f6dd2faaa -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F file=@/Users/john.doe/Downloads/pdf.pdf

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request