POST api/PCAPI20/SetFlowSettings

Request Information

URI Parameters

None.

Body Parameters

FlowSettingsModel
NameDescriptionTypeAdditional information
approveTemplate

string

None.

ccTemplate

string

None.

tenant_GID

globally unique identifier

None.

flowCategory

FlowCategory

None.

ccTimeType

CCTimeType

None.

CanModifyApprover

boolean

None.

CanModifyCC

boolean

None.

CanModifyContent

boolean

None.

CanCallBack

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "approveTemplate": "sample string 1",
  "ccTemplate": "sample string 2",
  "tenant_GID": "66b25882-11db-40a2-a93b-887740305d5e",
  "flowCategory": 1,
  "ccTimeType": 0,
  "CanModifyApprover": true,
  "CanModifyCC": true,
  "CanModifyContent": true,
  "CanCallBack": true
}

application/xml, text/xml

Sample:
<FlowSettingsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JetHR.OpenAPI.Model">
  <CanCallBack>true</CanCallBack>
  <CanModifyApprover>true</CanModifyApprover>
  <CanModifyCC>true</CanModifyCC>
  <CanModifyContent>true</CanModifyContent>
  <approveTemplate>sample string 1</approveTemplate>
  <ccTemplate>sample string 2</ccTemplate>
  <ccTimeType>Commit</ccTimeType>
  <flowCategory>Leave</flowCategory>
  <tenant_GID>66b25882-11db-40a2-a93b-887740305d5e</tenant_GID>
</FlowSettingsModel>

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

Response Information

Resource Description

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>