Add an Image

Scott Wallace
Scott Wallace
  • Updated
POST https://api.actonsoftware.com/api/1/image

This endpoint allows you to add an image to the account.

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

POST https://api-eu.actonsoftware.com/api/1/image

Parameters

Name Parameter
Type
Allow
Multiple
Required/
Optional
Data Type Description
Authorization: Header False Required String Insert your generated access token.
("Bearer {access token}")
name Form False Optional String Specify a name for the image.
file Form False Required File Attach the image file.
foldername Form False Optional String Specify the folder name you would like the image added.

 

Response

{
  "status": "success",
  "message": "The file has been uploaded",
  "id": "f-07c4cdc0-56ee-468e-8347-542a3fd381c1"
}

 

Code Examples

cURL

curl -X POST https://api.actonsoftware.com/api/1/image -H 'Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs' -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' -F file=@/Users/john.doe/Downloads/logo.png -F name=test2

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request