Description
Uploads and assigns an image in the format of jpg, png, gif to a customer.
In case of update fail or aborted, old image stay in the customer.
The maximum size of an image is 150kb.
-
The user must have admin privileges.
Request
The request object has multipart-form-data type and has the following part fields.
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
Identifier for the customer to be assigned with image. |
|
|
Binary |
Yes |
Image file to be assigned to the specified segment. |
Response
The response for a successful query is an empty object: {"status":"ok"}
Examples
Bash
$ curl -X POST -H 'X-cXense-Authentication: ...' -F customerId=d234ssdsdfcv -F img=@Sport.jpg https://api.cxense.com/customer/image/upload
{"status":"ok"}