PUT api/picture/{id}

Update a picture.

Requires Authorisation

The api request must supply authenticated token in a custom variable in the request header. The custom variable name is configured in web.config. The default name of the custom variable is “X-Fern-Token”.

Requires Api License and User Access

The api requires license and user permission for API ID, PUTapi/picture/{id}. The user permission can be defined on User Settings screen in Abacus. For license, please contact Fern manager.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Picture's Id.

integer

Required

Body Parameters

Picture data.

PictureDto
NameDescriptionTypeAdditional information
PictureId

Primary key of Picture table.

integer
Image

Image file in Base64 encoding.

string

Request Formats

application/json, text/json

Sample:
{
  "pictureId": 1,
  "image": "sample string 1"
}

application/xml, text/xml

Sample:
<PictureDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fern.Abacus.ObjectModel.Dto">
  <Image>sample string 1</Image>
  <PictureId>1</PictureId>
</PictureDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response Codes

Success Status:

  • NoContent (204), the response does not have any content.

Failed Status(es):

Resource Description

None.