Create New Document Record (Trust)
POST {{baseUrl}}/cas/trusts/:trustId/documents
Create New Document Record for a Trust
Request Body
Key | Datatype | Mandatory | Constraints |
---|---|---|---|
name | String | Yes | |
documentDate | String | Yes | ISO 8601 date https://en.wikipedia.org/wiki/ISO_8601 |
asicDocNumber | String | No |
status object
Key | Datatype | Mandatory | Constraints |
---|---|---|---|
typeId | Long | No | Must be a valid status Id, if not specified will default to 'RECEIVED' |
Request Body
{"asicDocNumber"=>"{{asicDocNumber}}", "documentDate"=>"{{documentDate}}", "name"=>"{{name}}", "status"=>{"typeId"=>3}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: OK
{"documentDate":"2020-07-03","id":1075469,"lastUpdatedTimestamp":"2020-07-03T04:39:45.356366","name":"Trust Deed Update","status":{"createdBy":"CAS360 API","effectiveDate":"2020-07-03","id":969220,"type":"ADDED FROM MIGRATION","typeId":1},"traceNumber":"104"}