POST Api/ImageApi/Update

Request Information

URI Parameters

None.

Body Parameters

ImagesDTO
NameDescriptionTypeAdditional information
Id

integer

None.

ScheduleCheckListId

integer

Required

Matching regular expression pattern: ^[0-9]*$

EntityId

integer

Required

Matching regular expression pattern: ^[0-9]*$

EntityType

integer

Required

Matching regular expression pattern: ^[0-9]*$

ImageName

string

String length: inclusive between 0 and 250

ImageComment

string

String length: inclusive between 0 and 250

IsShow

boolean

Required

Range: inclusive between false and true

IsDeleted

boolean

Required

Range: inclusive between false and true

CreatedBy

integer

Required

CreatedOn

date

Required

Data type: DateTime

UpdatedBy

integer

Matching regular expression pattern: ^[0-9]*$

UpdatedOn

date

Data type: DateTime

CreatedByName

string

None.

UpdatedByName

string

None.

Base64StringImage

string

None.

Img

Collection of byte

None.

ImagePath

string

None.

ScheduleDate

date

None.

DivisionId

globally unique identifier

None.

AssetId

globally unique identifier

None.

BuildingId

globally unique identifier

None.

SubBuildingId

globally unique identifier

None.

LocationId

globally unique identifier

None.

CHDivisionId

globally unique identifier

None.

CHAssetId

globally unique identifier

None.

CHBuildingId

globally unique identifier

None.

CHSubBuildingId

globally unique identifier

None.

CHLocationId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ScheduleCheckListId": 2,
  "EntityId": 3,
  "EntityType": 4,
  "ImageName": "sample string 5",
  "ImageComment": "sample string 6",
  "IsShow": true,
  "IsDeleted": true,
  "CreatedBy": 8,
  "CreatedOn": "2025-05-25T18:46:55.9396151+04:00",
  "UpdatedBy": 1,
  "UpdatedOn": "2025-05-25T18:46:55.9396151+04:00",
  "CreatedByName": "sample string 10",
  "UpdatedByName": "sample string 11",
  "Base64StringImage": "sample string 12",
  "Img": "QEA=",
  "ImagePath": "sample string 13",
  "ScheduleDate": "2025-05-25T18:46:55.9396151+04:00",
  "DivisionId": "4fd8c0f7-4947-4585-89ec-be8aabaa39bc",
  "AssetId": "77f3822a-358b-474b-b471-cb9130a2d9dd",
  "BuildingId": "9f642a30-893d-455a-bba2-427270eadc1d",
  "SubBuildingId": "c1ab97fc-fe40-4260-96c3-130154a5bddc",
  "LocationId": "b4c6e828-af8a-44fb-875f-5dcbc48b9295",
  "CHDivisionId": "cd785278-e924-4183-9794-71cffe20de10",
  "CHAssetId": "3a0258d1-a165-469a-a72a-25fea4afeaee",
  "CHBuildingId": "d5332317-16b1-47ee-acda-3c809df221a6",
  "CHSubBuildingId": "0b1150d4-0ca2-4962-917d-a08e612fc7df",
  "CHLocationId": "4b5555f1-52f8-4462-aed6-96d6b620e173"
}

text/html, multipart/form-data

Sample:
{"Id":1,"ScheduleCheckListId":2,"EntityId":3,"EntityType":4,"ImageName":"sample string 5","ImageComment":"sample string 6","IsShow":true,"IsDeleted":true,"CreatedBy":8,"CreatedOn":"2025-05-25T18:46:55.9396151+04:00","UpdatedBy":1,"UpdatedOn":"2025-05-25T18:46:55.9396151+04:00","CreatedByName":"sample string 10","UpdatedByName":"sample string 11","Base64StringImage":"sample string 12","Img":"QEA=","ImagePath":"sample string 13","ScheduleDate":"2025-05-25T18:46:55.9396151+04:00","DivisionId":"4fd8c0f7-4947-4585-89ec-be8aabaa39bc","AssetId":"77f3822a-358b-474b-b471-cb9130a2d9dd","BuildingId":"9f642a30-893d-455a-bba2-427270eadc1d","SubBuildingId":"c1ab97fc-fe40-4260-96c3-130154a5bddc","LocationId":"b4c6e828-af8a-44fb-875f-5dcbc48b9295","CHDivisionId":"cd785278-e924-4183-9794-71cffe20de10","CHAssetId":"3a0258d1-a165-469a-a72a-25fea4afeaee","CHBuildingId":"d5332317-16b1-47ee-acda-3c809df221a6","CHSubBuildingId":"0b1150d4-0ca2-4962-917d-a08e612fc7df","CHLocationId":"4b5555f1-52f8-4462-aed6-96d6b620e173"}

application/xml, text/xml

Sample:
<ImagesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSMChecklistFlow.DTO">
  <AssetId>77f3822a-358b-474b-b471-cb9130a2d9dd</AssetId>
  <Base64StringImage>sample string 12</Base64StringImage>
  <BuildingId>9f642a30-893d-455a-bba2-427270eadc1d</BuildingId>
  <CHAssetId>3a0258d1-a165-469a-a72a-25fea4afeaee</CHAssetId>
  <CHBuildingId>d5332317-16b1-47ee-acda-3c809df221a6</CHBuildingId>
  <CHDivisionId>cd785278-e924-4183-9794-71cffe20de10</CHDivisionId>
  <CHLocationId>4b5555f1-52f8-4462-aed6-96d6b620e173</CHLocationId>
  <CHSubBuildingId>0b1150d4-0ca2-4962-917d-a08e612fc7df</CHSubBuildingId>
  <CreatedBy>8</CreatedBy>
  <CreatedByName>sample string 10</CreatedByName>
  <CreatedOn>2025-05-25T18:46:55.9396151+04:00</CreatedOn>
  <DivisionId>4fd8c0f7-4947-4585-89ec-be8aabaa39bc</DivisionId>
  <EntityId>3</EntityId>
  <EntityType>4</EntityType>
  <Id>1</Id>
  <ImageComment>sample string 6</ImageComment>
  <ImageName>sample string 5</ImageName>
  <ImagePath>sample string 13</ImagePath>
  <Img>QEA=</Img>
  <IsDeleted>true</IsDeleted>
  <IsShow>true</IsShow>
  <LocationId>b4c6e828-af8a-44fb-875f-5dcbc48b9295</LocationId>
  <ScheduleCheckListId>2</ScheduleCheckListId>
  <ScheduleDate>2025-05-25T18:46:55.9396151+04:00</ScheduleDate>
  <SubBuildingId>c1ab97fc-fe40-4260-96c3-130154a5bddc</SubBuildingId>
  <UpdatedBy>1</UpdatedBy>
  <UpdatedByName>sample string 11</UpdatedByName>
  <UpdatedOn>2025-05-25T18:46:55.9396151+04:00</UpdatedOn>
</ImagesDTO>

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 'ImagesDTO'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/html, multipart/form-data

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>