Media
Upload User Media
POST https://api.stretch.com/api/v1/storage/profile/media
Uploads the media as requested by the user and display it on their profile page. Media could either be a video or a picture format.
Input Fields / Form-Data / JSON
Query Parameter | Type | Description | Example |
---|---|---|---|
file | string (binary) | ||
preview | string (binary) |
Code sample
Response
UserProfileOut
{
"gender": "male",
"birthDate": "2000-07-08",
"timezone": "Asia/Dubai",
"firstName": "John",
"lastName": "Smith",
"description": "string",
"languages": [],
"experience": 3,
"requiresParking": False,
"id": "3c156fd2-a70f-4150-a6ec-e7267387b8f8",
"type": "guest",
"username": "string",
"phone": "+97100000000",
"email": "[email protected]",
"verifiedPhone": False,
"verifiedEmail": False,
"available": False,
"verified": False,
"avatarUrl": "string",
"mediaType": "string",
"mediaUrl": "string",
"mediaPreviewUrl": "string",
"sessionCount": 1234,
"totalPayment": 1234,
"totalPaymentCurrency": "string",
"profileCompletion":
}