Assign file Run in API Explorer
Ask AI
Set the unassigned files to belong to a documentable item and folder.
POST
/api/v1/file
curl \
--request POST 'https://api.plannrcrm.com/api/v1/file' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"folder":"b6bcf99d-f75b-4068-a096-c830b90b40f9","files":["56c12048-0622-4e52-b74a-72d92c63827c","d67b11ee-c4c0-4052-8940-66725baee40c","35cda5e1-91cd-4ca5-9212-c25cd268f09c"]}'
Request examples
{
"folder": "b6bcf99d-f75b-4068-a096-c830b90b40f9",
"files": [
"56c12048-0622-4e52-b74a-72d92c63827c",
"d67b11ee-c4c0-4052-8940-66725baee40c",
"35cda5e1-91cd-4ca5-9212-c25cd268f09c"
]
}
Response examples (200)
{
"uuid": "6e9a51a2-03ab-48d9-87f0-e446118d22c5",
"created_at": "2026-04-30T14:48:31+01:00",
"original_created_at": "2026-04-30T14:48:31+01:00",
"updated_at": "2026-04-30T14:48:31+01:00",
"uploaded_at": "2026-04-30T14:48:31+01:00",
"status": "uploaded",
"filename": "Welcome to Plannr.pdf",
"name": "Welcome to Plannr",
"extension": "pdf",
"type": "type",
"size": "21691783",
"path": "Gareth Thompson/Subfolder/Welcome to Plannr.pdf",
"last_modified": "2026-04-30T14:48:31+01:00",
"progress": "100",
"download_url": "https://api.plannrcrm.com/file/2a95c586-ff4a-43f0-a195-4c60e4f3214c/download",
"folder_name": "folder 2",
"folder": {
"uuid": "1f080b24-6ebe-4661-8846-f6deeb1ec067",
"created_at": "2026-04-30T14:48:31+01:00",
"updated_at": "2026-04-30T14:48:31+01:00",
"name": "Important Documents",
"slug": "important-documents",
"path": "Codepotato/Important Documents",
"clients_read": true,
"clients_write": true,
"show_client_permissions": true,
"is_system_folder": true,
"is_pseudo_folder": true,
"is_root_folder": true,
"documentable_type": "account",
"documentable_uuid": "account",
"documentable": "Object",
"participants_count": 3,
"participants": "App\\Http\\Resources\\FolderParticipantResource",
"folders_count": 5,
"folders": "App\\Http\\Resources\\FolderResource",
"files_count": 8,
"files": "App\\Http\\Resources\\FileResource",
"parents": "App\\Http\\Resources\\FolderResource",
"ancestors": "App\\Http\\Resources\\FolderResource",
"children": "App\\Http\\Resources\\FolderResource",
"depth": 5,
"owned": false
},
"documentable_type": "account",
"documentable": "Object",
"navigator": {
"model_type": "account",
"model_uuid": "5855b135-3574-49a8-b453-1dc49df7473c"
},
"firm": {
"uuid": "42930b0c-e1c0-43ad-b95f-148d2593c2a2",
"created_at": "2026-04-30T14:48:31+01:00",
"updated_at": "2026-04-30T14:48:31+01:00",
"name": "Codepotato",
"slug": "codepotato",
"address_1": "Suite E, 5 The Briars",
"address_2": "Waterberry Drive",
"town_city": "Waterlooville",
"county": "Hampshire",
"postcode": "PO7 7YH",
"country": "United Kingdom",
"regulatory_text": "Regulatory text",
"logo": "https://api.plannrcrm.com/images/plannr.jpg",
"logo_icon": "https://api.plannrcrm.com/images/plannr-icon.jpg",
"brand_colours": {
"sidebar_background": "#0E0E56",
"sidebar_accent": "#36367E",
"sidebar_text": "#FFFFFF",
"sidebar_hover": "#0A0A42",
"sidebar_active": "#53DBB8",
"sidebar_title_background": "#36367E",
"sidebar_title_primary": "#FFC634",
"sidebar_title_secondary": "#FFFFFF",
"sidebar_title_secondary_hover": "#FFFFFF",
"email_background": "#0E0E56",
"email_logo_background_panel": "#36367E",
"email_sub_text": "#FFFFFF",
"email_button_background": "#36367E",
"email_button_text": "#FFFFFF",
"portal_sidebar_button_background": "#F6F6F6",
"portal_sidebar_button_hover": "#FFFFFF",
"portal_sidebar_button_active": "#FFFFFF",
"portal_brand_title": "#323B4B",
"portal_brand_sub_title": "#828994",
"portal_sidebar_title": "#11151D",
"portal_sidebar_text": "#323B4B",
"portal_sidebar_text_hover": "#323B4B",
"portal_sidebar_text_active": "#323B4B",
"portal_sidebar_icon": "#828994",
"portal_sidebar_icon_hover": "#828994",
"portal_sidebar_icon_active": "#828994",
"portal_background": "#F6F6F6",
"portal_sidebar_account_title": "#11151D",
"portal_sidebar_account_email": "#828994",
"portal_sidebar_divider": "#E3E5E9",
"portal_dashboard_bg_one": "#EF4583",
"portal_dashboard_bg_two": "#FFC634",
"portal_sidebar_collapse_button": "#828994",
"portal_sidebar_collapse_button_hover": "#B3B9C4",
"portal_sidebar_user_select_background": "#F6F6F6",
"portal_sidebar_user_select_hover": "#F6F6F6",
"portal_sidebar_user_select_text": "#323B4B",
"portal_sidebar_user_select_text_hover": "#323B4B",
"portal_sidebar_user_select_border": "#EEEEEE",
"portal_sidebar_user_select_border_hover": "#828994"
},
"is_subscribed": true,
"addon_subscriptions": "App\\Http\\Resources\\Addons\\AddonSubscriptionResource",
"keep_deleted_files_for": 30,
"tax": 17.5,
"month_end": 25,
"statement_frequency": "monthly",
"billing": {
"invoice_address_1": "Suite E, 5 The Briars",
"invoice_address_2": "Waterberry Drive",
"invoice_town_city": "Waterlooville",
"invoice_county": "Hampshire",
"invoice_postcode": "PO7 7YH",
"invoice_country": "United Kingdom",
"invoice_email": "gareth@codepotato.co.uk"
},
"task_board_template": "App\\Http\\Resources\\Board\\BoardResource",
"ip_whitelist": [
"192.168.0.1",
"127.0.0.1"
],
"welcome_paragraph_html": "<h1>Welcome.</h1>",
"email_welcome_paragraph_html": "Welcome to Plannr!",
"show_fact_find_illustrations": true,
"cc_email_addresses": [
"jack@example.com",
"jill@example.com"
],
"bcc_email_addresses": [
"jack@example.com",
"jill@example.com"
],
"reply_to_email_address": "jack@example.com",
"mobile_app_support_number": "01234 567890",
"mobile_app_support_email": "support@example.com"
},
"account": {
"uuid": "582fc5d0-8fb4-4d22-8745-fce0583e6d5d",
"created_at": "2026-04-30T14:48:31+01:00",
"updated_at": "2026-04-30T14:48:31+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
"external_references": "App\\Http\\Resources\\ExternalReferenceResource"
},
"tags": [
{
"uuid": "3c47f454-3c1b-4bf3-b754-8144fdba398c",
"created_at": "2026-04-30T14:48:31+01:00",
"updated_at": "2026-04-30T14:48:31+01:00",
"name": "Mortgage",
"slug": "mortgage",
"colour": "#ef4582"
}
]
}