Skip to main content
POST
/
auth
/
user
/
{id}
/
profile-image
Add profile image
curl --request POST \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/auth/user/{id}/profile-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form image='@example-file'
{
  "message": "<string>",
  "success": true,
  "content": {
    "profile_image_url": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://www.commercengine.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Access token

Path Parameters

id
string
required

user ID

Body

multipart/form-data
image
file
required

Response

OK

message
string
required

A descriptive message confirming the success or failure of the add operation.

success
boolean
required

Indicates whether the request was successful or failure (true for success, false for failure).

content
object
required

An object containing the response content.