Passer au contenu principal
POST
/
v2
/
private
/
user
/
upload
/
image
Upload Image
curl --request POST \
  --url https://api.crowdchange.dev/v2/private/user/upload/image \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file": "<string>"
}
'
{
  "id": "1eaf5ab2-5d55-11ee-82ef-001c42584fa2",
  "url": 10,
  "success": true,
  "message": "Campaign"
}

Body

file
string
requis
base-64 encoded image.

Response

id
string
Image ID
url
string
URL to uploaded image
success
boolean
Flag if uploading is successful
message
string
Message if uploading is unsuccessful
Other responses
StatusDescription
401Unauthorized
403Forbidden
{
  "id": "1eaf5ab2-5d55-11ee-82ef-001c42584fa2",
  "url": 10,
  "success": true,
  "message": "Campaign"
}