POST WorkPlan/CreateTP

Request Information

URI Parameters

None.

Body Parameters

TpModel
NameDescriptionTypeAdditional information
WPItemId

Collection of integer

None.

UserId

integer

None.

CompanyName

string

None.

projectName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "WPItemId": [
    1,
    2
  ],
  "UserId": 1,
  "CompanyName": "sample string 2",
  "projectName": "sample string 3"
}

application/xml, text/xml

Sample:
<TpModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WeldingAPI.Models">
  <CompanyName>sample string 2</CompanyName>
  <UserId>1</UserId>
  <WPItemId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </WPItemId>
  <projectName>sample string 3</projectName>
</TpModel>

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 'TpModel'.

Response Information

Resource Description

BaseResult
NameDescriptionTypeAdditional information
Success

integer

None.

Msg

string

None.

Token

string

None.

Key

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": 1,
  "Msg": "sample string 2",
  "Token": "sample string 3",
  "Key": "sample string 4"
}

application/xml, text/xml

Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WeldingAPI.Models">
  <Key>sample string 4</Key>
  <Msg>sample string 2</Msg>
  <Success>1</Success>
  <Token>sample string 3</Token>
</BaseResult>