A PUT request is used to update an existing type configuration. While the type is in draft status requests can move it to active. Setting the status to deprecated will immediately hide it from future GET all requests, and spawn a draft replica which can be edited and published in its place.
The description for instances of that type. The description could be shown in UI.
The default name for instances of that type. The name could be shown in UI.
The type status. A new type is normally created in the draft status. After you finish with the type configurations and ready to create instances of that type, update the status to active.
You can also update an existing type. Each update will create a new version of the type. Only one version of the type can be active. We'll automatically change the previous version to deprecated. Instances in-flight will continue to use the previous version(s). New instances will be created using the active version.
The optional identifier of a loan type. This is useful when a lender has two or more financial products and need different case types per product.
- oauth2
- bearerAuth
- apiKeyHeader
curl -i -X PUT \
'https://sandboxapi.peach.finance/api/case-types/{caseTypeId}?version=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"description": "",
"name": "",
"status": "draft",
"customFieldSchemas": [
{
"dataType": "integer",
"default": 0,
"description": "",
"displayOrder": 0,
"displayPostfix": "string",
"displayPrefix": "string",
"fieldName": "string",
"name": "",
"required": false,
"validation": {
"enum": [
1,
10,
100
],
"length": 1,
"maxValue": 100,
"minValue": 0
}
}
],
"loanTypeId": "string",
"smartReviews": {
"config": {},
"enable": true
},
"workflowTypeId": "string"
}'{ "message": "string", "status": 0, "data": { "createdAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z", "id": "string", "updatedAt": "2019-08-24T14:15:22Z", "companyId": "string", "createdBy": 0, "deprecatedAt": "2019-08-24T14:15:22Z", "deprecatedBy": 0, "deprecationMessage": "string", "derivedFromTypeId": "0", "description": "", "name": "", "publishedAt": "2019-08-24T14:15:22Z", "publishedBy": 0, "status": "draft", "version": 1, "associations": [ … ], "customFieldSchemas": [ … ], "loanTypeId": "string", "object": "caseType", "smartReviews": { … }, "workflowTypeId": "string" } }