This object allows you to create custom case types. You then can create case instances from a case type.
Peach has a predefined collection of special case types,
such as bankruptcy
, identityTheft
, and more. You can use any of the special types
as your base case type. To customize your case type you can:
Do Not Interact Types
If you don't want to use any of the special predefined case types, then use generic
as your base type.
Success
{- "copyOf": 0,
- "caseType": "generic",
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "name": "",
- "description": "",
- "status": "draft",
- "loanTypeId": "string",
- "workflowTypeId": "string",
- "customFieldSchemas": [
- {
- "name": "",
- "description": "",
- "required": false,
- "fieldName": "string",
- "dataType": "integer",
- "displayOrder": 0,
- "default": 0,
- "validation": {
- "enum": [
- 1,
- 10,
- 100
], - "length": 1,
- "minValue": 0,
- "maxValue": 100
}, - "displayPrefix": "string",
- "displayPostfix": "string"
}
], - "smartReviews": {
- "enable": true,
- "config": { }
}
}
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "name": "",
- "description": "",
- "status": "draft",
- "version": 1,
- "derivedFromTypeId": "0",
- "companyId": "string",
- "createdBy": 0,
- "publishedAt": "2019-08-24T14:15:22Z",
- "publishedBy": 0,
- "deprecatedAt": "2019-08-24T14:15:22Z",
- "deprecatedBy": 0,
- "deprecationMessage": "string",
- "object": "caseType",
- "loanTypeId": "string",
- "workflowTypeId": "string",
- "customFieldSchemas": [
- {
- "name": "",
- "description": "",
- "required": false,
- "fieldName": "string",
- "dataType": "integer",
- "displayOrder": 0,
- "default": 0,
- "validation": {
- "enum": [
- 1,
- 10,
- 100
], - "length": 1,
- "minValue": 0,
- "maxValue": 100
}, - "displayPrefix": "string",
- "displayPostfix": "string"
}
], - "associations": [
- {
- "objectType": "doNotInteractType",
- "objectId": 0
}
], - "smartReviews": {
- "enable": true,
- "config": { }
}
}
}
Success
{- "status": 0,
- "count": 0,
- "data": [
- {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "name": "",
- "description": "",
- "status": "draft",
- "version": 1,
- "derivedFromTypeId": "0",
- "companyId": "string",
- "createdBy": 0,
- "publishedAt": "2019-08-24T14:15:22Z",
- "publishedBy": 0,
- "deprecatedAt": "2019-08-24T14:15:22Z",
- "deprecatedBy": 0,
- "deprecationMessage": "string",
- "object": "caseType",
- "loanTypeId": "string",
- "workflowTypeId": "string",
- "customFieldSchemas": [
- {
- "name": "",
- "description": "",
- "required": false,
- "fieldName": "string",
- "dataType": "integer",
- "displayOrder": 0,
- "default": 0,
- "validation": {
- "enum": [
- 1,
- 10,
- 100
], - "length": 1,
- "minValue": 0,
- "maxValue": 100
}, - "displayPrefix": "string",
- "displayPostfix": "string"
}
], - "associations": [
- {
- "objectType": "doNotInteractType",
- "objectId": 0
}
], - "smartReviews": {
- "enable": true,
- "config": { }
}
}
]
}
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "name": "",
- "description": "",
- "status": "draft",
- "version": 1,
- "derivedFromTypeId": "0",
- "companyId": "string",
- "createdBy": 0,
- "publishedAt": "2019-08-24T14:15:22Z",
- "publishedBy": 0,
- "deprecatedAt": "2019-08-24T14:15:22Z",
- "deprecatedBy": 0,
- "deprecationMessage": "string",
- "object": "caseType",
- "loanTypeId": "string",
- "workflowTypeId": "string",
- "customFieldSchemas": [
- {
- "name": "",
- "description": "",
- "required": false,
- "fieldName": "string",
- "dataType": "integer",
- "displayOrder": 0,
- "default": 0,
- "validation": {
- "enum": [
- 1,
- 10,
- 100
], - "length": 1,
- "minValue": 0,
- "maxValue": 100
}, - "displayPrefix": "string",
- "displayPostfix": "string"
}
], - "associations": [
- {
- "objectType": "doNotInteractType",
- "objectId": 0
}
], - "smartReviews": {
- "enable": true,
- "config": { }
}
}
}
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.
Success
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "name": "",
- "description": "",
- "status": "draft",
- "loanTypeId": "string",
- "workflowTypeId": "string",
- "customFieldSchemas": [
- {
- "name": "",
- "description": "",
- "required": false,
- "fieldName": "string",
- "dataType": "integer",
- "displayOrder": 0,
- "default": 0,
- "validation": {
- "enum": [
- 1,
- 10,
- 100
], - "length": 1,
- "minValue": 0,
- "maxValue": 100
}, - "displayPrefix": "string",
- "displayPostfix": "string"
}
], - "smartReviews": {
- "enable": true,
- "config": { }
}
}
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "name": "",
- "description": "",
- "status": "draft",
- "version": 1,
- "derivedFromTypeId": "0",
- "companyId": "string",
- "createdBy": 0,
- "publishedAt": "2019-08-24T14:15:22Z",
- "publishedBy": 0,
- "deprecatedAt": "2019-08-24T14:15:22Z",
- "deprecatedBy": 0,
- "deprecationMessage": "string",
- "object": "caseType",
- "loanTypeId": "string",
- "workflowTypeId": "string",
- "customFieldSchemas": [
- {
- "name": "",
- "description": "",
- "required": false,
- "fieldName": "string",
- "dataType": "integer",
- "displayOrder": 0,
- "default": 0,
- "validation": {
- "enum": [
- 1,
- 10,
- 100
], - "length": 1,
- "minValue": 0,
- "maxValue": 100
}, - "displayPrefix": "string",
- "displayPostfix": "string"
}
], - "associations": [
- {
- "objectType": "doNotInteractType",
- "objectId": 0
}
], - "smartReviews": {
- "enable": true,
- "config": { }
}
}
}
Run successful with no reminder tasks created
Run successful with created reminder tasks
{- "data": {
- "caseTypeId": "string",
- "smartReviewsConfig": { },
- "createdTasks": {
- "count": 0,
- "taskLog": {
- "property1": {
- "CE-XXXX-XXXX": {
- "creatingRule": "keyDates.importantDate",
- "caseValue": "2023-07-31T19:07:00Z"
}
}, - "property2": {
- "CE-XXXX-XXXX": {
- "creatingRule": "keyDates.importantDate",
- "caseValue": "2023-07-31T19:07:00Z"
}
}
}
}, - "completedAt": "2019-08-24T14:15:22Z"
}
}