PUT api/v1/images/{imageId}
Update an existing Image
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| imageId | integer |
Required |
Body Parameters
ImageUpdateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ImageId | integer |
None. |
|
| UserId | integer |
None. |
|
| CaseId | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| EncodedImage | string |
None. |
|
| EncodedThumbnail | string |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| Height | integer |
None. |
|
| Width | integer |
None. |
|
| ImageGroups | Collection of ImageGroupUpdateDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"imageId": 1,
"userId": 2,
"caseId": 1,
"name": "sample string 3",
"description": "sample string 4",
"encodedImage": "sample string 5",
"encodedThumbnail": "sample string 6",
"latitude": 1.1,
"longitude": 1.1,
"height": 1,
"width": 1,
"imageGroups": [
{
"imageGroupId": 1,
"caseId": 2,
"name": "sample string 3",
"description": "sample string 4"
},
{
"imageGroupId": 1,
"caseId": 2,
"name": "sample string 3",
"description": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<ImageUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models">
<CaseId>1</CaseId>
<Description>sample string 4</Description>
<EncodedImage>sample string 5</EncodedImage>
<EncodedThumbnail>sample string 6</EncodedThumbnail>
<Height>1</Height>
<ImageGroups>
<ImageGroupUpdateDto>
<CaseId>2</CaseId>
<Description>sample string 4</Description>
<ImageGroupId>1</ImageGroupId>
<Name>sample string 3</Name>
</ImageGroupUpdateDto>
<ImageGroupUpdateDto>
<CaseId>2</CaseId>
<Description>sample string 4</Description>
<ImageGroupId>1</ImageGroupId>
<Name>sample string 3</Name>
</ImageGroupUpdateDto>
</ImageGroups>
<ImageId>1</ImageId>
<Latitude>1.1</Latitude>
<Longitude>1.1</Longitude>
<Name>sample string 3</Name>
<UserId>2</UserId>
<Width>1</Width>
</ImageUpdateDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ImageDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ImageId | integer |
None. |
|
| UserId | integer |
None. |
|
| CaseId | integer |
None. |
|
| EncodedImage | string |
None. |
|
| EncodedThumbnail | string |
None. |
|
| LastUpdated | date |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| Height | integer |
None. |
|
| Width | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| GroupName | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"imageId": 1,
"userId": 2,
"caseId": 1,
"encodedImage": "sample string 3",
"encodedThumbnail": "sample string 4",
"lastUpdated": "2025-12-08T10:20:23.8689921+01:00",
"latitude": 1.1,
"longitude": 1.1,
"height": 1,
"width": 1,
"name": "sample string 5",
"description": "sample string 6",
"groupName": "sample string 7"
}
application/xml, text/xml
Sample:
<ImageDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models"> <CaseId>1</CaseId> <Description>sample string 6</Description> <EncodedImage>sample string 3</EncodedImage> <EncodedThumbnail>sample string 4</EncodedThumbnail> <GroupName>sample string 7</GroupName> <Height>1</Height> <ImageId>1</ImageId> <LastUpdated>2025-12-08T10:20:23.8689921+01:00</LastUpdated> <Latitude>1.1</Latitude> <Longitude>1.1</Longitude> <Name>sample string 5</Name> <UserId>2</UserId> <Width>1</Width> </ImageDto>