POST api/Warranties?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

WarrantyUpdateDTO
NameDescriptionTypeAdditional information
status

string

None.

delivery_date

date

None.

expire_date

date

None.

from_date

date

None.

to_date

date

None.

comments

string

None.

landing_page

string

None.

portal_url

string

None.

token

string

None.

Type

integer

None.

product

WarrantyProductUpdateDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "delivery_date": "2025-04-04T04:17:37.4047052+02:00",
  "expire_date": "2025-04-04T04:17:37.4047052+02:00",
  "from_date": "2025-04-04T04:17:37.4047052+02:00",
  "to_date": "2025-04-04T04:17:37.4047052+02:00",
  "comments": "sample string 2",
  "landing_page": "sample string 3",
  "portal_url": "sample string 4",
  "token": "sample string 5",
  "type": 1,
  "product": {
    "sku": 1,
    "manufacturer": "sample string 1",
    "mpn": "sample string 2",
    "cat1": "sample string 3",
    "cat2": "sample string 4",
    "description": "sample string 5",
    "ean": "sample string 6",
    "price": 1.0,
    "serial_number": "sample string 7"
  }
}

text/plain

Sample:
{"status":"sample string 1","delivery_date":"2025-04-04T04:17:37.4047052+02:00","expire_date":"2025-04-04T04:17:37.4047052+02:00","from_date":"2025-04-04T04:17:37.4047052+02:00","to_date":"2025-04-04T04:17:37.4047052+02:00","comments":"sample string 2","landing_page":"sample string 3","portal_url":"sample string 4","token":"sample string 5","type":1,"product":{"sku":1,"manufacturer":"sample string 1","mpn":"sample string 2","cat1":"sample string 3","cat2":"sample string 4","description":"sample string 5","ean":"sample string 6","price":1.0,"serial_number":"sample string 7"}}

application/xml, text/xml

Sample:
<WarrantyUpdateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Warranties.BL.Models.DTO">
  <Type>1</Type>
  <comments>sample string 2</comments>
  <delivery_date>2025-04-04T04:17:37.4047052+02:00</delivery_date>
  <expire_date>2025-04-04T04:17:37.4047052+02:00</expire_date>
  <from_date>2025-04-04T04:17:37.4047052+02:00</from_date>
  <landing_page>sample string 3</landing_page>
  <portal_url>sample string 4</portal_url>
  <product>
    <cat1>sample string 3</cat1>
    <cat2>sample string 4</cat2>
    <description>sample string 5</description>
    <ean>sample string 6</ean>
    <manufacturer>sample string 1</manufacturer>
    <mpn>sample string 2</mpn>
    <price>1</price>
    <serial_number>sample string 7</serial_number>
    <sku>1</sku>
  </product>
  <status>sample string 1</status>
  <to_date>2025-04-04T04:17:37.4047052+02:00</to_date>
  <token>sample string 5</token>
</WarrantyUpdateDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/octet-stream

Sample:
{"status":"sample string 1","delivery_date":"2025-04-04T04:17:37.4047052+02:00","expire_date":"2025-04-04T04:17:37.4047052+02:00","from_date":"2025-04-04T04:17:37.4047052+02:00","to_date":"2025-04-04T04:17:37.4047052+02:00","comments":"sample string 2","landing_page":"sample string 3","portal_url":"sample string 4","token":"sample string 5","Type":1,"product":{"sku":1,"manufacturer":"sample string 1","mpn":"sample string 2","cat1":"sample string 3","cat2":"sample string 4","description":"sample string 5","ean":"sample string 6","price":1.0,"serial_number":"sample string 7"}}

Response Information

Resource Description

None.