POST v1/Users/{userId}/Pictures

This gives the ability to upload pictures to a given user.The payload will be a list of attached images.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

userId

string

Required

Body Parameters

UserPictureEntities

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": "7902c8d4-4e64-488e-bbfc-3b57bc063d95",
    "PictureName": "sample string 3",
    "Thumbnail": "QEA=",
    "Image": "QEA="
  },
  {
    "Id": 1,
    "UserId": "7902c8d4-4e64-488e-bbfc-3b57bc063d95",
    "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>7902c8d4-4e64-488e-bbfc-3b57bc063d95</UserId>
  </UserPictureEntity>
  <UserPictureEntity>
    <Id>1</Id>
    <Image>QEA=</Image>
    <PictureName>sample string 3</PictureName>
    <Thumbnail>QEA=</Thumbnail>
    <UserId>7902c8d4-4e64-488e-bbfc-3b57bc063d95</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�@@���ydN�H��;W�=���@@�sample string 3�@@���ydN�H��;W�=�

Response Information

Resource Description

IHttpActionResult

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.