PUT api/Photo

Edits an existing Photo.

Request Information

URI Parameters

None.

Body Parameters

Photo.

Photo
NameDescriptionTypeAdditional information
UpdateType

string

None.

PhotoId

integer

None.

OrganizationId

integer

None.

Filename

string

None.

UpdatedBy

string

None.

UpdatedByName

string

None.

UpdatedDate

date

None.

OriginalWidth

integer

None.

OriginalHeight

integer

None.

OriginalSize

integer

None.

OriginalSizeKb

integer

None.

Width

integer

None.

Height

integer

None.

Size

integer

None.

ContentType

string

None.

ItemId

integer

None.

ProductName

string

None.

GlobalId

string

None.

SizeKb

integer

None.

PhotoUrl

string

None.

PhotoUrlM

string

None.

PhotoUrlS

string

None.

OriginalFilename

string

None.

ObjectTypeId

integer

None.

ObjectType

string

None.

ProductGlobalId

string

None.

Title

string

None.

Description

string

None.

PhotoGroupId

integer

None.

PhotoGroup

string

None.

ProductSku

string

None.

Tags

string

None.

TagIds

string

None.

GroupTitle

string

None.

GroupTitle2

string

None.

ItemGlobalId

string

None.

PhotoGlobalId

string

None.

DefaultPhoto

string

None.

ProductCategoryId

integer

None.

ProductCategoryName

string

None.

IsDefaultPhoto

integer

None.

ProductCategoryGlobalId

string

None.

StoreGlobalId

string

None.

StoreId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UpdateType": "sample string 1",
  "PhotoId": 2,
  "OrganizationId": 1,
  "Filename": "sample string 3",
  "UpdatedBy": "sample string 4",
  "UpdatedByName": "sample string 5",
  "UpdatedDate": "2025-01-16T06:52:32.2905485+00:00",
  "OriginalWidth": 1,
  "OriginalHeight": 1,
  "OriginalSize": 1,
  "OriginalSizeKb": 1,
  "Width": 1,
  "Height": 1,
  "Size": 1,
  "ContentType": "sample string 6",
  "ItemId": 1,
  "ProductName": "sample string 7",
  "GlobalId": "sample string 8",
  "SizeKb": 1,
  "PhotoUrl": "sample string 9",
  "PhotoUrlM": "sample string 10",
  "PhotoUrlS": "sample string 11",
  "OriginalFilename": "sample string 12",
  "ObjectTypeId": 1,
  "ObjectType": "sample string 13",
  "ProductGlobalId": "sample string 14",
  "Title": "sample string 15",
  "Description": "sample string 16",
  "PhotoGroupId": 1,
  "PhotoGroup": "sample string 17",
  "ProductSku": "sample string 18",
  "Tags": "sample string 19",
  "TagIds": "sample string 20",
  "GroupTitle": "sample string 21",
  "GroupTitle2": "sample string 22",
  "ItemGlobalId": "sample string 23",
  "PhotoGlobalId": "sample string 24",
  "DefaultPhoto": "sample string 25",
  "ProductCategoryId": 1,
  "ProductCategoryName": "sample string 26",
  "IsDefaultPhoto": 27,
  "ProductCategoryGlobalId": "sample string 28",
  "StoreGlobalId": "sample string 29",
  "StoreId": 1
}

application/xml, text/xml

Sample:
<Photo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models">
  <ContentType>sample string 6</ContentType>
  <DefaultPhoto>sample string 25</DefaultPhoto>
  <Description>sample string 16</Description>
  <Filename>sample string 3</Filename>
  <GlobalId>sample string 8</GlobalId>
  <GroupTitle>sample string 21</GroupTitle>
  <GroupTitle2>sample string 22</GroupTitle2>
  <Height>1</Height>
  <IsDefaultPhoto>27</IsDefaultPhoto>
  <ItemGlobalId>sample string 23</ItemGlobalId>
  <ItemId>1</ItemId>
  <ObjectType>sample string 13</ObjectType>
  <ObjectTypeId>1</ObjectTypeId>
  <OrganizationId>1</OrganizationId>
  <OriginalFilename>sample string 12</OriginalFilename>
  <OriginalHeight>1</OriginalHeight>
  <OriginalSize>1</OriginalSize>
  <OriginalSizeKb>1</OriginalSizeKb>
  <OriginalWidth>1</OriginalWidth>
  <PhotoGlobalId>sample string 24</PhotoGlobalId>
  <PhotoGroup>sample string 17</PhotoGroup>
  <PhotoGroupId>1</PhotoGroupId>
  <PhotoId>2</PhotoId>
  <PhotoUrl>sample string 9</PhotoUrl>
  <PhotoUrlM>sample string 10</PhotoUrlM>
  <PhotoUrlS>sample string 11</PhotoUrlS>
  <ProductCategoryGlobalId>sample string 28</ProductCategoryGlobalId>
  <ProductCategoryId>1</ProductCategoryId>
  <ProductCategoryName>sample string 26</ProductCategoryName>
  <ProductGlobalId>sample string 14</ProductGlobalId>
  <ProductName>sample string 7</ProductName>
  <ProductSku>sample string 18</ProductSku>
  <Size>1</Size>
  <SizeKb>1</SizeKb>
  <StoreGlobalId>sample string 29</StoreGlobalId>
  <StoreId>1</StoreId>
  <TagIds>sample string 20</TagIds>
  <Tags>sample string 19</Tags>
  <Title>sample string 15</Title>
  <UpdateType>sample string 1</UpdateType>
  <UpdatedBy>sample string 4</UpdatedBy>
  <UpdatedByName>sample string 5</UpdatedByName>
  <UpdatedDate>2025-01-16T06:52:32.2905485+00:00</UpdatedDate>
  <Width>1</Width>
</Photo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Photo
NameDescriptionTypeAdditional information
UpdateType

string

None.

PhotoId

integer

None.

OrganizationId

integer

None.

Filename

string

None.

UpdatedBy

string

None.

UpdatedByName

string

None.

UpdatedDate

date

None.

OriginalWidth

integer

None.

OriginalHeight

integer

None.

OriginalSize

integer

None.

OriginalSizeKb

integer

None.

Width

integer

None.

Height

integer

None.

Size

integer

None.

ContentType

string

None.

ItemId

integer

None.

ProductName

string

None.

GlobalId

string

None.

SizeKb

integer

None.

PhotoUrl

string

None.

PhotoUrlM

string

None.

PhotoUrlS

string

None.

OriginalFilename

string

None.

ObjectTypeId

integer

None.

ObjectType

string

None.

ProductGlobalId

string

None.

Title

string

None.

Description

string

None.

PhotoGroupId

integer

None.

PhotoGroup

string

None.

ProductSku

string

None.

Tags

string

None.

TagIds

string

None.

GroupTitle

string

None.

GroupTitle2

string

None.

ItemGlobalId

string

None.

PhotoGlobalId

string

None.

DefaultPhoto

string

None.

ProductCategoryId

integer

None.

ProductCategoryName

string

None.

IsDefaultPhoto

integer

None.

ProductCategoryGlobalId

string

None.

StoreGlobalId

string

None.

StoreId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "UpdateType": "sample string 1",
  "PhotoId": 2,
  "OrganizationId": 1,
  "Filename": "sample string 3",
  "UpdatedBy": "sample string 4",
  "UpdatedByName": "sample string 5",
  "UpdatedDate": "2025-01-16T06:52:32.2905485+00:00",
  "OriginalWidth": 1,
  "OriginalHeight": 1,
  "OriginalSize": 1,
  "OriginalSizeKb": 1,
  "Width": 1,
  "Height": 1,
  "Size": 1,
  "ContentType": "sample string 6",
  "ItemId": 1,
  "ProductName": "sample string 7",
  "GlobalId": "sample string 8",
  "SizeKb": 1,
  "PhotoUrl": "sample string 9",
  "PhotoUrlM": "sample string 10",
  "PhotoUrlS": "sample string 11",
  "OriginalFilename": "sample string 12",
  "ObjectTypeId": 1,
  "ObjectType": "sample string 13",
  "ProductGlobalId": "sample string 14",
  "Title": "sample string 15",
  "Description": "sample string 16",
  "PhotoGroupId": 1,
  "PhotoGroup": "sample string 17",
  "ProductSku": "sample string 18",
  "Tags": "sample string 19",
  "TagIds": "sample string 20",
  "GroupTitle": "sample string 21",
  "GroupTitle2": "sample string 22",
  "ItemGlobalId": "sample string 23",
  "PhotoGlobalId": "sample string 24",
  "DefaultPhoto": "sample string 25",
  "ProductCategoryId": 1,
  "ProductCategoryName": "sample string 26",
  "IsDefaultPhoto": 27,
  "ProductCategoryGlobalId": "sample string 28",
  "StoreGlobalId": "sample string 29",
  "StoreId": 1
}

application/xml, text/xml

Sample:
<Photo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models">
  <ContentType>sample string 6</ContentType>
  <DefaultPhoto>sample string 25</DefaultPhoto>
  <Description>sample string 16</Description>
  <Filename>sample string 3</Filename>
  <GlobalId>sample string 8</GlobalId>
  <GroupTitle>sample string 21</GroupTitle>
  <GroupTitle2>sample string 22</GroupTitle2>
  <Height>1</Height>
  <IsDefaultPhoto>27</IsDefaultPhoto>
  <ItemGlobalId>sample string 23</ItemGlobalId>
  <ItemId>1</ItemId>
  <ObjectType>sample string 13</ObjectType>
  <ObjectTypeId>1</ObjectTypeId>
  <OrganizationId>1</OrganizationId>
  <OriginalFilename>sample string 12</OriginalFilename>
  <OriginalHeight>1</OriginalHeight>
  <OriginalSize>1</OriginalSize>
  <OriginalSizeKb>1</OriginalSizeKb>
  <OriginalWidth>1</OriginalWidth>
  <PhotoGlobalId>sample string 24</PhotoGlobalId>
  <PhotoGroup>sample string 17</PhotoGroup>
  <PhotoGroupId>1</PhotoGroupId>
  <PhotoId>2</PhotoId>
  <PhotoUrl>sample string 9</PhotoUrl>
  <PhotoUrlM>sample string 10</PhotoUrlM>
  <PhotoUrlS>sample string 11</PhotoUrlS>
  <ProductCategoryGlobalId>sample string 28</ProductCategoryGlobalId>
  <ProductCategoryId>1</ProductCategoryId>
  <ProductCategoryName>sample string 26</ProductCategoryName>
  <ProductGlobalId>sample string 14</ProductGlobalId>
  <ProductName>sample string 7</ProductName>
  <ProductSku>sample string 18</ProductSku>
  <Size>1</Size>
  <SizeKb>1</SizeKb>
  <StoreGlobalId>sample string 29</StoreGlobalId>
  <StoreId>1</StoreId>
  <TagIds>sample string 20</TagIds>
  <Tags>sample string 19</Tags>
  <Title>sample string 15</Title>
  <UpdateType>sample string 1</UpdateType>
  <UpdatedBy>sample string 4</UpdatedBy>
  <UpdatedByName>sample string 5</UpdatedByName>
  <UpdatedDate>2025-01-16T06:52:32.2905485+00:00</UpdatedDate>
  <Width>1</Width>
</Photo>