Create a custom default folder
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Body Required
-
description string
A description of the default folder structure
-
What model this default folder structure is for. Can be either client or case
-
The default folders structure.
-
Whether this default folder structure is active or not. Only one default folder structure for the same model and parameter can be active at a time.
-
parameter string
The parameter for the default folder structure. If the model is client, this can be either individual, trust, business or shared. If the type is case, this can be any of the case types that are available in the firm. Leaving it null will make the custom default folders apply to all clients/cases.
-
for_existing boolean
Whether this default folder structure is applied to existing clients or not. If this is false, the default folder structure will only be applied to new clients. Required if the model is client
curl \
-X POST https://api.plannrcrm.com/api/v1/custom-default-folder \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
-d '{"description":"Default folder structure for standard clients","model":"client","structure":[{"name":"Documents","children":[{"name":"Contracts","children":[]},{"name":"Emails","children":[]}]},{"name":"Notes","children":[]}],"is_active":"true","parameter":"individual","for_existing":"true"}'
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"description": "Default folder structure for standard clients",
"model": "client",
"structure": [
{
"name": "Documents",
"children": [
{
"name": "Contracts",
"children": []
},
{
"name": "Emails",
"children": []
}
]
},
{
"name": "Notes",
"children": []
}
],
"is_active": "true",
"parameter": "individual",
"for_existing": "true"
}
{
"uuid": "f5f7959f-04ac-4c9e-9312-35c48b43dd00",
"model": "client",
"case_type": {
"name": "Mortgage Plan",
"uuid": "afa8a84d-0de0-4cf0-a5b8-4b4121c54171",
"created_at": "2024-11-20T13:24:04+00:00",
"updated_at": "2024-11-20T13:24:04+00:00"
},
"is_active": true,
"parameter": "client",
"structure": [
{
"name": "Documents",
"children": [
{
"name": "Contracts",
"children": []
},
{
"name": "Emails",
"children": []
}
]
},
{
"name": "Notes",
"children": []
}
],
"created_at": "2024-11-20T13:24:04+00:00",
"updated_at": "2024-11-20T13:24:04+00:00",
"description": "Shared client default folders",
"for_existing": true
}