DELETE v1/Users/{userId}/Pictures
This will delete the picture for the user Id in the header of the request if no pictures ID being passed. This function can delete all user pictures/ selected multiple user pictures. To delete selected multiple pictures, picture ID/s need to be passed as formbody Validation will consist of matching the user Id of the request to the user Id of the picture
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId |
userId |
string |
Required |
Body Parameters
pictures
Collection of UserPictureEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| UserId | globally unique identifier |
None. |
|
| PictureName | string |
None. |
|
| Thumbnail | Collection of byte |
None. |
|
| Image | Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"UserId": "7595cd7b-ede1-49fb-9185-eb2eed1f21fa",
"PictureName": "sample string 3",
"Thumbnail": "QEA=",
"Image": "QEA="
},
{
"Id": 1,
"UserId": "7595cd7b-ede1-49fb-9185-eb2eed1f21fa",
"PictureName": "sample string 3",
"Thumbnail": "QEA=",
"Image": "QEA="
}
]
application/xml, text/xml
Sample:
<ArrayOfUserPictureEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TGG.JOCService.Core.Models.User">
<UserPictureEntity>
<Id>1</Id>
<Image>QEA=</Image>
<PictureName>sample string 3</PictureName>
<Thumbnail>QEA=</Thumbnail>
<UserId>7595cd7b-ede1-49fb-9185-eb2eed1f21fa</UserId>
</UserPictureEntity>
<UserPictureEntity>
<Id>1</Id>
<Image>QEA=</Image>
<PictureName>sample string 3</PictureName>
<Thumbnail>QEA=</Thumbnail>
<UserId>7595cd7b-ede1-49fb-9185-eb2eed1f21fa</UserId>
</UserPictureEntity>
</ArrayOfUserPictureEntity>
application/x-www-form-urlencoded
Sample:
application/x-msgpack
Sample:
���@@�sample string 3�@@�{͕u���I���.�!���@@�sample string 3�@@�{͕u���I���.�!�
Response Information
Resource Description
IHttpActionResult
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.