POST api/e/ys/AddNetWorkCategory?memberID={memberID}&enterpriseID={enterpriseID}

网点类别新建

Request Information

URI Parameters

NameDescriptionTypeAdditional information
memberID

会员编号

globally unique identifier

Required

enterpriseID

globally unique identifier

Required

Body Parameters

CName 必填 Description 选填为空 Image 选填为空 Thumbnail 选填为空

CategoryModel
NameDescriptionTypeAdditional information
ID

编号

globally unique identifier

None.

ParentID

父类编号

globally unique identifier

None.

EnterpriseID

系统编号

globally unique identifier

None.

IndustryId

行业编号 当是网点类别时不填

globally unique identifier

None.

Name

名称

string

None.

Description

描述

string

None.

Image

图片

string

None.

Thumbnail

缩略图

string

None.

Level

等级

integer

None.

State

状态

boolean

None.

OrderIndex

排序值

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "aad6a0ba-3cd5-4fc9-8e33-5d44df4d56a1",
  "ParentID": "b55f5103-b3f0-4710-b4fb-f0fb68f56205",
  "EnterpriseID": "1f6a13ef-9651-4654-9678-17bf58f75b9a",
  "IndustryId": "d0d9d7f8-6972-45dc-ab9b-49a148f0a66b",
  "Name": "sample string 5",
  "Description": "sample string 6",
  "Image": "sample string 7",
  "Thumbnail": "sample string 8",
  "Level": 9,
  "State": true,
  "OrderIndex": 11
}

application/xml, text/xml

Sample:
<CategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LijiyTow.Liji_E.EAPI.Models.E">
  <Description>sample string 6</Description>
  <EnterpriseID>1f6a13ef-9651-4654-9678-17bf58f75b9a</EnterpriseID>
  <ID>aad6a0ba-3cd5-4fc9-8e33-5d44df4d56a1</ID>
  <Image>sample string 7</Image>
  <IndustryId>d0d9d7f8-6972-45dc-ab9b-49a148f0a66b</IndustryId>
  <Level>9</Level>
  <Name>sample string 5</Name>
  <OrderIndex>11</OrderIndex>
  <ParentID>b55f5103-b3f0-4710-b4fb-f0fb68f56205</ParentID>
  <State>true</State>
  <Thumbnail>sample string 8</Thumbnail>
</CategoryModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CategoryModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.