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 UserPictureEntityName | 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": "abf683e2-12c1-4662-a0fa-d8a8da64d1ad", "PictureName": "sample string 3", "Thumbnail": "QEA=", "Image": "QEA=" }, { "Id": 1, "UserId": "abf683e2-12c1-4662-a0fa-d8a8da64d1ad", "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>abf683e2-12c1-4662-a0fa-d8a8da64d1ad</UserId> </UserPictureEntity> <UserPictureEntity> <Id>1</Id> <Image>QEA=</Image> <PictureName>sample string 3</PictureName> <Thumbnail>QEA=</Thumbnail> <UserId>abf683e2-12c1-4662-a0fa-d8a8da64d1ad</UserId> </UserPictureEntity> </ArrayOfUserPictureEntity>
application/x-www-form-urlencoded
Sample:
application/x-msgpack
Sample:
���@@�sample string 3�@@�����bF��ب�dѭ��@@�sample string 3�@@�����bF��ب�dѭ
Response Information
Resource Description
IHttpActionResult
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.