PUT https://restapi.actonsoftware.com/api/1/image/{id}
This endpoint allows you to update an existing image in the account.
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization: | Header | False | Required | String | Insert your generated access token. (Bearer {access token} |
file | Form | False | Required | File | Attach the image file. |
id | Path | False | Required | String | Specify the ID of the image. |
foldername | Form | False | Optional | String | Specify the folder name you would like the image added. |
ignorefolder | Form | False | Optional | String | Do you want to ignore the foldername parameter? ("Y") |
Parameter Notes
foldername
If the image does not exist in the specified folder a new image will be uploaded to the specified folder.
ignorefolder
If the value is "Y" the request will ignore the foldername and update the image with the matching ID.
Response
{ "status": "success", "message": "The file has been uploaded", "id": "f-07c4cdc0-56ee-468e-8347-542a3fd381c1" }
Code Examples
cURL
curl -X PUT https://restapi.actonsoftware.com/api/1/image/f-07c4cdc0-56ee-468e-8347-542a3fd381c1 -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F file=@/Users/john.doe/Downloads/logo.png