PUT Service/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ServiceDto
NameDescriptionTypeAdditional information
ServiceId

integer

None.

Title

string

Required

String length: inclusive between 0 and 1000

AltTitle

string

Required

String length: inclusive between 0 and 1000

Description

string

String length: inclusive between 0 and 4000

Text

string

Required

CreateUserId

string

Required

String length: inclusive between 0 and 128

UpdateUserId

string

Required

String length: inclusive between 0 and 128

ImageUrl

string

String length: inclusive between 0 and 4000

Images

Collection of string

None.

SeoTitle

string

String length: inclusive between 0 and 500

SeoDescription

string

String length: inclusive between 0 and 4000

Keywords

string

String length: inclusive between 0 and 4000

IsApprove

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ServiceId": 1,
  "Title": "sample string 2",
  "AltTitle": "sample string 3",
  "Description": "sample string 4",
  "Text": "sample string 5",
  "CreateUserId": "sample string 6",
  "UpdateUserId": "sample string 7",
  "ImageUrl": "sample string 8",
  "Images": [
    "sample string 1",
    "sample string 2"
  ],
  "SeoTitle": "sample string 9",
  "SeoDescription": "sample string 10",
  "Keywords": "sample string 11",
  "IsApprove": true
}

application/xml, text/xml

Sample:
<ServiceDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PackageSite.Models.Dto">
  <AltTitle>sample string 3</AltTitle>
  <CreateUserId>sample string 6</CreateUserId>
  <Description>sample string 4</Description>
  <ImageUrl>sample string 8</ImageUrl>
  <Images xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Images>
  <IsApprove>true</IsApprove>
  <Keywords>sample string 11</Keywords>
  <SeoDescription>sample string 10</SeoDescription>
  <SeoTitle>sample string 9</SeoTitle>
  <ServiceId>1</ServiceId>
  <Text>sample string 5</Text>
  <Title>sample string 2</Title>
  <UpdateUserId>sample string 7</UpdateUserId>
</ServiceDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.