Update a custom default folder

PUT /api/v1/custom-default-folder/{customDefaultFolder_uuid}
application/json

Body Required

  • A description of the default folder structure

  • model string

    What model this default folder structure is for. Can be either client or case

  • structure array[string] Required

    The default folders structure.

  • is_active boolean

    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.

  • 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.

  • 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.

Responses

  • 201 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the resource.

    • The timestamp of when the resource was created.

    • The timestamp of when the resource was updated.

    • The description of the custom default folders structure.

    • model string

      The model the default folders structure is for.

    • The parameter the default folders structure is for.

    • The case type object when model is "case" and the parameter is a valid case type UUID.

      Additional properties are allowed.

    • structure array[object]

      The default folders structure.

      Additional properties are allowed.

    • is_active boolean

      Whether the default folders structure is active.

    • Whether the default folders structure is for existing clients.

PUT /api/v1/custom-default-folder/{customDefaultFolder_uuid}
curl \
 -X PUT https://api.plannrcrm.com/api/v1/custom-default-folder/customDefaultFolder_uuid \
 -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"}'
Request examples
# 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"
}
Response examples (201)
{
  "uuid": "8063c22a-7691-42c8-95c4-9e808cab71a0",
  "model": "client",
  "case_type": {
    "name": "Mortgage Plan",
    "uuid": "8213c568-dcb9-49b5-920e-113a88e538c2",
    "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
}