POST api/organizations/current/pictures/{pictureId}/crop

Crops a picture.



Request Information

URI Parameters

NameDescriptionTypeAdditional information
pictureId

The id of the Picture to crop.

integer

Required



Body Parameters

The coordinates representing the requested crop.

PostCroppingCoordinatesViewModel
NameDescriptionTypeAdditional information
X1

integer

None.

X2

integer

None.

Y1

integer

None.

Y2

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "X1": 1,
  "X2": 2,
  "Y1": 3,
  "Y2": 4
}

application/xml, text/xml

Sample:
<PostCroppingCoordinatesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Models.ViewModels.UserSettings">
  <X1>1</X1>
  <X2>2</X2>
  <Y1>3</Y1>
  <Y2>4</Y2>
</PostCroppingCoordinatesViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.



Response Information

Resource Description

An object containing respectively: - The id of the cropped image, - The base64 string representing the encoded 128x128 cropped picture.

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />