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

NameDescriptionTypeAdditional information
userId

userId

string

Required

Body Parameters

pictures

Collection of UserPictureEntity
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

application/x-msgpack

Sample:
���@@�sample string 3�@@�����bF��ب�dѭ��@@�sample string 3�@@�����bF��ب�dѭ

Response Information

Resource Description

IHttpActionResult

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.