Path parameters

application/json

Body Required

Responses

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

      UUID of the file

    • The timestamp of when the resource was created.

    • Timestamp of when the file was originally created

    • The timestamp of when the resource was updated.

    • Timestamp of when the file was uploaded

    • status string

      Current status of the uploading progress

    • filename string

      The filename including extension

    • name string

      The name of the file without extension

    • The extension of the file

    • type string

      The MIME type of the file

    • size string

      The size of the file in bytes

    • path string

      The path of the file

    • Timestamp of when the file was last modified before uploading

    • progress string

      The progress of the uploaded file as a percentage between 0 and 100

    • The download URL of the file

    • The name of the folder the file is located in

    • folder object

      The folder this file is located in

    • The documentable type such as account/plan/case/etc the file was uploaded to

    • The documentable the file was uploaded to

    • The documentable type and its UUID in order to navigator to the correct resource

    • firm object

      The firm which the file belongs to

    • account object

      The account that uploaded the file (if specified)

    • tags array[object]

      The tags added to the file (if provided)

PUT /api/v1/file/{uuid}
curl \
 --request PUT 'https://api.plannrcrm.com/api/v1/file/uuid' \
 --header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 --header "Content-Type: application/json" \
 --header "Accept: application/json" \
 --data '{"name":"Important Document","folder_uuid":"00374fd5-19b7-40e6-a55c-3139726b1d46","original_created_at":"2025-06-24 10:15:13"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "name": "Important Document",
  "folder_uuid": "00374fd5-19b7-40e6-a55c-3139726b1d46",
  "original_created_at": "2025-06-24 10:15:13"
}
Response examples (200)
{
  "firm": {
    "tax": 17.5,
    "logo": "https://api.plannrcrm.com/images/plannr.jpg",
    "name": "Codepotato",
    "slug": "codepotato",
    "uuid": "78bb8d0a-84ba-42a2-bd50-67c212e01675",
    "county": "Hampshire",
    "billing": {
      "invoice_email": "gareth@codepotato.co.uk",
      "invoice_county": "Hampshire",
      "invoice_country": "United Kingdom",
      "invoice_postcode": "PO7 7YH",
      "invoice_address_1": "Suite E, 5 The Briars",
      "invoice_address_2": "Waterberry Drive",
      "invoice_town_city": "Waterlooville"
    },
    "country": "United Kingdom",
    "postcode": "PO7 7YH",
    "address_1": "Suite E, 5 The Briars",
    "address_2": "Waterberry Drive",
    "logo_icon": "https://api.plannrcrm.com/images/plannr-icon.jpg",
    "month_end": 25,
    "town_city": "Waterlooville",
    "created_at": "2025-06-24T10:15:13+01:00",
    "updated_at": "2025-06-24T10:15:13+01:00",
    "ip_whitelist": [
      "192.168.0.1",
      "127.0.0.1"
    ],
    "brand_colours": {
      "sidebar_text": "#ffffff",
      "sidebar_hover": "#0A0A42",
      "email_sub_text": "#ffffff",
      "sidebar_accent": "#36367E",
      "sidebar_active": "#53DBB8",
      "email_background": "#0E0E56",
      "email_button_text": "#ffffff",
      "portal_background": "#f6f6f6",
      "portal_brand_title": "#323b4b",
      "sidebar_background": "#0E0E56",
      "portal_sidebar_icon": "#828994",
      "portal_sidebar_text": "#323b4b",
      "portal_account_email": "#828994",
      "portal_sidebar_title": "#11151d",
      "sidebar_title_primary": "#FFC634",
      "portal_brand_sub_title": "#828994",
      "portal_sidebar_divider": "#e3e5e9",
      "email_button_background": "#36367E",
      "portal_dashboard_bg_one": "#EF4583",
      "portal_dashboard_bg_two": "#FFC634",
      "sidebar_title_secondary": "#ffffff",
      "sidebar_title_background": "#36367E",
      "portal_sidebar_icon_hover": "#828994",
      "portal_sidebar_text_hover": "#323b4b",
      "portal_sidebar_icon_active": "#828994",
      "portal_sidebar_text_active": "#323b4b",
      "email_logo_background_panel": "#36367E",
      "portal_sidebar_button_hover": "#ffffff",
      "portal_sidebar_account_title": "#11151d",
      "portal_sidebar_button_active": "#ffffff",
      "sidebar_title_secondary_hover": "#ffffff",
      "portal_sidebar_button_background": "#f6f6f6"
    },
    "is_subscribed": true,
    "regulatory_text": "Regulatory text",
    "addon_subscriptions": "App\\Http\\Resources\\Addons\\AddonSubscriptionResource",
    "statement_frequency": "monthly",
    "task_board_template": "App\\Http\\Resources\\Board\\BoardResource",
    "keep_deleted_files_for": 30,
    "welcome_paragraph_html": "<h1>Welcome.</h1>",
    "email_welcome_paragraph_html": "Welcome to Plannr!",
    "show_fact_find_illustrations": true
  },
  "name": "Welcome to Plannr",
  "path": "Gareth Thompson/Subfolder/Welcome to Plannr.pdf",
  "size": "21691783",
  "tags": [
    {
      "name": "Mortgage",
      "slug": "mortgage",
      "uuid": "769e6099-5ab0-414c-9fe0-ba69c5a23429",
      "colour": "#ef4582",
      "created_at": "2025-06-24T10:15:13+01:00",
      "updated_at": "2025-06-24T10:15:13+01:00"
    }
  ],
  "type": "type",
  "uuid": "2ed1cbf4-1426-4bd6-ad0b-38f012779bbf",
  "folder": {
    "name": "Important Documents",
    "path": "Codepotato/Important Documents",
    "slug": "important-documents",
    "uuid": "a292a07d-66c6-4f62-bc77-83d8a3b69700",
    "depth": 5,
    "files": "App\\Http\\Resources\\FileResource",
    "owned": false,
    "folders": "App\\Http\\Resources\\FolderResource",
    "parents": "App\\Http\\Resources\\FolderResource",
    "children": "App\\Http\\Resources\\FolderResource",
    "ancestors": "App\\Http\\Resources\\FolderResource",
    "created_at": "2025-06-24T10:15:13+01:00",
    "updated_at": "2025-06-24T10:15:13+01:00",
    "files_count": 8,
    "clients_read": true,
    "documentable": "Object",
    "participants": "App\\Http\\Resources\\FolderParticipantResource",
    "clients_write": true,
    "folders_count": 5,
    "is_root_folder": true,
    "is_pseudo_folder": true,
    "is_system_folder": true,
    "documentable_type": "account",
    "documentable_uuid": "account",
    "participants_count": 3,
    "show_client_permissions": true
  },
  "status": "uploaded",
  "account": {
    "name": "Gareth Thompson",
    "role": "client",
    "type": "client",
    "uuid": "20966dc6-ea5b-42fd-ad8e-5c740229b890",
    "email": "gareth@codepotato.co.uk",
    "last_name": "Thompson",
    "photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
    "created_at": "2025-06-24T10:15:13+01:00",
    "first_name": "Gareth",
    "updated_at": "2025-06-24T10:15:13+01:00",
    "external_references": "App\\Http\\Resources\\ExternalReferenceResource"
  },
  "filename": "Welcome to Plannr.pdf",
  "progress": "100",
  "extension": "pdf",
  "navigator": {
    "model_type": "account",
    "model_uuid": "b0b9d3ae-1c90-40c2-90eb-a0d1d4a4b00d"
  },
  "created_at": "2025-06-24T10:15:13+01:00",
  "updated_at": "2025-06-24T10:15:13+01:00",
  "folder_name": "folder 2",
  "uploaded_at": "2025-06-24T10:15:13+01:00",
  "documentable": "Object",
  "download_url": "https://plannr.valet/file/3fd5dca1-4008-408f-9766-723e3afcf80a/download",
  "last_modified": "2025-06-24T10:15:13+01:00",
  "documentable_type": "account",
  "original_created_at": "2025-06-24T10:15:13+01:00"
}