POST api/Admin/SetKWGUIPageSpec?projectId={projectId}&specTypeId={specTypeId}

SetKWGUIPageSpec for a project and spectype

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectId

项目ID

integer

Required

specTypeId

Spec类型ID

integer

Required

Body Parameters

Pages

Collection of KWGUIPageSpec
NameDescriptionTypeAdditional information
ProjectID

integer

None.

ModuleTypeID

integer

None.

PageID

integer

None.

SpecTypeID

integer

None.

OverwritePageID

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ProjectID": 1,
    "ModuleTypeID": 2,
    "PageID": 3,
    "SpecTypeID": 4,
    "OverwritePageID": 5
  },
  {
    "ProjectID": 1,
    "ModuleTypeID": 2,
    "PageID": 3,
    "SpecTypeID": 4,
    "OverwritePageID": 5
  }
]

application/xml, text/xml

Sample:
<ArrayOfKWGUIPageSpec xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Project">
  <KWGUIPageSpec>
    <ModuleTypeID>2</ModuleTypeID>
    <OverwritePageID>5</OverwritePageID>
    <PageID>3</PageID>
    <ProjectID>1</ProjectID>
    <SpecTypeID>4</SpecTypeID>
  </KWGUIPageSpec>
  <KWGUIPageSpec>
    <ModuleTypeID>2</ModuleTypeID>
    <OverwritePageID>5</OverwritePageID>
    <PageID>3</PageID>
    <ProjectID>1</ProjectID>
    <SpecTypeID>4</SpecTypeID>
  </KWGUIPageSpec>
</ArrayOfKWGUIPageSpec>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SetKWGUIPageSpec for a project and spectype

API_Data_Int32
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": 2
}

application/xml, text/xml

Sample:
<API_Data_int xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data>2</Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_int>