Updates An Approval Policy while ignoring few Of the validations. This Is An internal API which Is used for upgrade.

Updates An Approval Policy while ignoring few Of the validations. This Is An internal API which Is used for upgrade.

Updates an Approval Policy while ignoring few of the validations. This is an internal API which is used for upgrade.

Request
URI
PUT
https://{api_host}/approval-service/api/policies/upgrade/{id}
COPY
Path Parameters
string
id
Required

The policy id


Request Body
ApprovalPolicy of type(s) application/json
Optional
{
    "lastModifiedBy": "string",
    "description": "string",
    "version": 0,
    "createdDate": "string",
    "approvableItemId": "string",
    "typeFilter": "string",
    "stateName": "string",
    "createdBy": "string",
    "policyType": {
        "phaseTypes": [
            {
                "phaseOrder": 0,
                "name": "string",
                "description": "string",
                "id": "string",
                "forms": {},
                "allowUpdates": false
            }
        ],
        "classId": "string",
        "typeFilter": "string",
        "name": "string",
        "description": "string",
        "serviceTypeId": "string",
        "id": "string"
    },
    "name": "string",
    "id": "string",
    "state": "string",
    "lastModified": "string",
    "approvableItemName": "string",
    "approvableItemServiceTypeId": "string",
    "phases": [
        {
            "name": "string",
            "description": "string",
            "id": "string",
            "levels": [
                {
                    "approvalMode": "string",
                    "external": false,
                    "editSchema": {
                        "fields": [
                            {}
                        ]
                    },
                    "name": "string",
                    "levelNumber": 0,
                    "description": "string",
                    "approvers": [
                        {
                            "displayName": "string",
                            "type": "string",
                            "value": "string"
                        }
                    ],
                    "id": "string"
                }
            ],
            "phasetype": {
                "phaseOrder": 0,
                "name": "string",
                "description": "string",
                "id": "string",
                "forms": {},
                "allowUpdates": false
            }
        }
    ]
}
string
lastModifiedBy
Optional

lastModifiedBy

string
description
Optional

description

integer As int64 As int64
version
Optional

version

string As date-time As date-time
createdDate
Optional

createdDate

string
approvableItemId
Optional

approvableItemId

string
typeFilter
Optional

typeFilter

string
stateName
Optional

stateName

string
createdBy
Optional

createdBy

policyType
Required

policyType

string
name
Required

name

string As uuid As uuid
id
Optional

id

string
state
Required

state

Possible values are : DRAFT, PUBLISHED, RETIRED,
string As date-time As date-time
lastModified
Optional

lastModified

string
approvableItemName
Optional

approvableItemName

string
approvableItemServiceTypeId
Optional

approvableItemServiceTypeId

array of Phase
phases
Required

phases

Responses
200

successful operation

Operation doesn't return any data structure