Skip to content

Create a platform user profile picture upload

Request

Create an upload URL for a platform user's profile picture

Security
bearerToken
Path
idstringrequired

The unique ID of the Platform User

Bodyapplication/jsonrequired
contentTypestringrequired

The image content type of the profile picture to upload

Example:"image/png"
curl -i -X POST \
  'https://api-v2.dash.app/platform/users/{id}/profile-picture-upload' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "contentType": "image/png"
  }'

Responses

Success

Bodyapplication/json
uploadUrlstringrequired

The URL that can be used to upload the profile picture

Example:"https://example.com/profile-picture-upload"
pictureUrlstringrequired

The URL to store against the platform user profile picture after upload

Example:"https://example.com/profile-picture.jpg"
Response
{ "uploadUrl": "https://example.com/profile-picture-upload", "pictureUrl": "https://example.com/profile-picture.jpg" }