Delete Files from Profile
Endpoint
DELETE /v1/profile/{id}/files
Description
This endpoint allows the deletion of specified files from a profile. It verifies the user's authorization and updates the profile status accordingly.
Request
Path Parameters
id
(string): The unique identifier of the profile.
Request Body
ids
(list of strings): A list of file IDs to be deleted from the profile.
Example request body:
{
"ids": ["file_1234567890abcdef", "file_0987654321fedcba"]
}
Responses
Success Response
- Code: 200 OK
- Content:
{
"id": "upd_pr_955923b7dcde4e759b219c0a9234b420",
"object": "update_profile",
"updated": true
}