PUT api/v1/products/{code}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

string

None.

Body Parameters

ProductDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Code

string

None.

Name

string

None.

Price

decimal number

None.

Barcode

string

None.

BrandCode

string

None.

BrandName

string

None.

OrganizationCode

string

None.

ProductCategories

Collection of string

None.

Categories

Collection of ProductCategoryDto

None.

ProductTypeCode

string

None.

IsDeletable

boolean

None.

CreationDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "78166d33-a618-499a-81c4-003f284b58f5",
  "code": "sample string 1",
  "name": "sample string 2",
  "price": 1.0,
  "barcode": "sample string 3",
  "brandCode": "sample string 4",
  "brandName": "sample string 5",
  "organizationCode": "sample string 6",
  "productCategories": [
    "sample string 1",
    "sample string 2"
  ],
  "categories": [
    {
      "id": "e95421e6-63ce-489a-b655-4f0642d96d83",
      "code": "sample string 1",
      "name": "sample string 2",
      "organizationCode": "sample string 3",
      "creationDate": "2025-08-31T06:18:45.4126214+00:00"
    },
    {
      "id": "e95421e6-63ce-489a-b655-4f0642d96d83",
      "code": "sample string 1",
      "name": "sample string 2",
      "organizationCode": "sample string 3",
      "creationDate": "2025-08-31T06:18:45.4126214+00:00"
    }
  ],
  "productTypeCode": "sample string 7",
  "isDeletable": true,
  "creationDate": "2025-08-31T06:18:45.4126214+00:00"
}

application/xml, text/xml

Sample:
<ProductDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Dtos">
  <Barcode>sample string 3</Barcode>
  <BrandCode>sample string 4</BrandCode>
  <BrandName>sample string 5</BrandName>
  <Categories>
    <ProductCategoryDto>
      <Code>sample string 1</Code>
      <CreationDate>2025-08-31T06:18:45.4126214+00:00</CreationDate>
      <Id>e95421e6-63ce-489a-b655-4f0642d96d83</Id>
      <Name>sample string 2</Name>
      <OrganizationCode>sample string 3</OrganizationCode>
    </ProductCategoryDto>
    <ProductCategoryDto>
      <Code>sample string 1</Code>
      <CreationDate>2025-08-31T06:18:45.4126214+00:00</CreationDate>
      <Id>e95421e6-63ce-489a-b655-4f0642d96d83</Id>
      <Name>sample string 2</Name>
      <OrganizationCode>sample string 3</OrganizationCode>
    </ProductCategoryDto>
  </Categories>
  <Code>sample string 1</Code>
  <CreationDate>2025-08-31T06:18:45.4126214+00:00</CreationDate>
  <Id>78166d33-a618-499a-81c4-003f284b58f5</Id>
  <IsDeletable>true</IsDeletable>
  <Name>sample string 2</Name>
  <OrganizationCode>sample string 6</OrganizationCode>
  <Price>1</Price>
  <ProductCategories xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ProductCategories>
  <ProductTypeCode>sample string 7</ProductTypeCode>
</ProductDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.