POST api/MobileAPI20/CreateFlowInstance

2.0版本申请流程

Request Information

URI Parameters

None.

Body Parameters

FlowCreateModel
NameDescriptionTypeAdditional information
data

string

None.

templateID

globally unique identifier

None.

applicantID

globally unique identifier

None.

approveTemplate

string

None.

ccTemplate

string

None.

tenant_GID

globally unique identifier

None.

attachmentList

string

None.

features

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "data": "sample string 1",
  "templateID": "312bcc41-f2e4-4a2f-bd6a-ac7b6b0357e2",
  "applicantID": "5f9f6315-38dd-4516-bf7a-fbe2f7e0547a",
  "approveTemplate": "sample string 4",
  "ccTemplate": "sample string 5",
  "tenant_GID": "e6d782d0-8a5e-416a-b2c1-114023abfab5",
  "attachmentList": "sample string 7",
  "features": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<FlowCreateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JetHR.OpenAPI.Model">
  <applicantID>5f9f6315-38dd-4516-bf7a-fbe2f7e0547a</applicantID>
  <approveTemplate>sample string 4</approveTemplate>
  <attachmentList>sample string 7</attachmentList>
  <ccTemplate>sample string 5</ccTemplate>
  <data>sample string 1</data>
  <features xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </features>
  <templateID>312bcc41-f2e4-4a2f-bd6a-ac7b6b0357e2</templateID>
  <tenant_GID>e6d782d0-8a5e-416a-b2c1-114023abfab5</tenant_GID>
</FlowCreateModel>

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

Response Information

Resource Description

2.0版本申请流程

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>