PUT api/v3/Avatars/Crop

Request Information

URI Parameters

None.

Body Parameters

CropRequest
NameDescriptionTypeAdditional information
imgUrl

your image path (the one we recieved after successfull upload)

string

None.

imgInitW

your image original width (the one we recieved after upload)

integer

None.

imgInitH

your image original height (the one we recieved after upload)

integer

None.

imgW

your new scaled image width

decimal number

None.

imgH

your new scaled image height

decimal number

None.

imgX1

top left corner of the cropped image in relation to scaled image

integer

None.

imgY1

top left corner of the cropped image in relation to scaled image

integer

None.

cropW

cropped image width

integer

None.

cropH

cropped image height

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "imgUrl": "sample string 1",
  "imgInitW": 2,
  "imgInitH": 3,
  "imgW": 4.1,
  "imgH": 5.1,
  "imgX1": 6,
  "imgY1": 7,
  "cropW": 8,
  "cropH": 9
}

application/xml, text/xml

Sample:
<CropRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Resgrid.Web.Services.Models">
  <cropH>9</cropH>
  <cropW>8</cropW>
  <imgH>5.1</imgH>
  <imgInitH>3</imgInitH>
  <imgInitW>2</imgInitW>
  <imgUrl>sample string 1</imgUrl>
  <imgW>4.1</imgW>
  <imgX1>6</imgX1>
  <imgY1>7</imgY1>
</CropRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.