📸 Social Media
Update cover image
The API endpoint allows users to update their social media profile's cover image.
By accessing this endpoint, users can submit a new cover image file, which will be applied as their updated profile cover on the social media platform.
patch/social-media/profile/cover-image
Response
Update cover image
Example response
{
"data": [
{
"__v": 0,
"_id": "6491e1315420697399d92653",
"account": {
"_id": "6491e1045420697399d92643",
"avatar": {
"_id": "6491e1045420697399d92642",
"localPath": "",
"url": "https://via.placeholder.com/200x200.png"
},
"email": "user.email@domain.com",
"isEmailVerified": false,
"loginType": "EMAIL_PASSWORD",
"role": "ADMIN",
"username": "doejohn"
},
"bio": "This is my bio text",
"countryCode": "+91",
"coverImage": {
"_id": "6491e500e7459f659f3fe8a8",
"localPath": "public/images/bottle.jpg-168728294397895743007.jpg",
"url": "http://localhost:8080/images/bottle.jpg-168728294397895743007.jpg"
},
"createdAt": "2023-06-20T17:26:09.021Z",
"dob": "2023-06-20T17:25:24.365Z",
"firstName": "John",
"lastName": "Doe",
"location": "Mumbai, India",
"owner": "6491e1045420697399d92643",
"phoneNumber": "8273827837",
"updatedAt": "2023-06-20T17:42:24.072Z"
}
],
"message": "Cover image updated successfully",
"statusCode": 200,
"success": true
}