Create Approval Policy Type
Creates a new approval policy type.
Request
URI
POST
https://{api_host}/approval-service/api/policytypes
COPY
Request Body
ApprovalPolicyType of type(s) application/json
Optional
{
"phaseTypes": [
{
"phaseOrder": 0,
"name": "string",
"description": "string",
"id": "string",
"forms": {},
"allowUpdates": false
}
],
"classId": "string",
"typeFilter": "string",
"name": "string",
"description": "string",
"serviceTypeId": "string",
"id": "string"
}
string
classId
Optional
classId
string
typeFilter
Optional
typeFilter
string
name
Optional
name
string
description
Optional
description
string
serviceTypeId
Optional
serviceTypeId
string
id
Optional
id
Responses
200
successful operation
Returns ApprovalPolicyType of type(s) */*
{
"phaseTypes": [
{
"phaseOrder": 0,
"name": "string",
"description": "string",
"id": "string",
"forms": {},
"allowUpdates": false
}
],
"classId": "string",
"typeFilter": "string",
"name": "string",
"description": "string",
"serviceTypeId": "string",
"id": "string"
}
string
classId
Optional
classId
string
typeFilter
Optional
typeFilter
string
name
Optional
name
string
description
Optional
description
string
serviceTypeId
Optional
serviceTypeId
string
id
Optional
id
201
Approval policy type created successfully
Returns ApprovalPolicyType of type(s) */*
{
"phaseTypes": [
{
"phaseOrder": 0,
"name": "string",
"description": "string",
"id": "string",
"forms": {},
"allowUpdates": false
}
],
"classId": "string",
"typeFilter": "string",
"name": "string",
"description": "string",
"serviceTypeId": "string",
"id": "string"
}
string
classId
Optional
classId
string
typeFilter
Optional
typeFilter
string
name
Optional
name
string
description
Optional
description
string
serviceTypeId
Optional
serviceTypeId
string
id
Optional
id
Approval Policy Type Operations
POST
Create Approval Policy Type
DELETE
Delete Approval Policy Type
POST
Get the permissible values Of A field In the schema associated with the given policy type.
GET
Get the schema associated with the policy type identified By the given id.
GET
Get the schema associated with the policy type identified By the given id.
GET
Get the schema Of A sub-field In the schema associated with the given policy type identified By the given id.
POST
Get the state Of A field In the schema associated with the given policy type.
GET
Get Subfield Schema Using Typefilter
GET
Retrieve Approval Policy Type
PUT
Update Approval Policy Type