Get all custom fields

GET /api/v1/custom-field

Query parameters

  • Filter by a comma separated list of UUIDs.

  • Filter the custom fields by a specific model type. For example: ?filter[model_type]=client

  • sort string

    Field to sort by. Valid fields are [created_at, updated_at, name, model_type, position]. Negative sign to denote DESC. Defaults to 'position'.

  • per_page integer

    Number of results to return with pagination (Default 15. Max 500).

Responses

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

      The UUID of the custom field

    • The timestamp of when the resource was created.

    • The timestamp of when the resource was updated.

    • type string

      The type of custom field

    • name string

      The name of the custom field

    • The reference of the custom field, used when updating the custom field on the model.

    • Denotes if the custom field is required

    • The type of model that the custom field is for.

    • Optional help text to aide the custom field. Will be displayed on Plannr.

    • firm object

      The custom field firm

    • selection_options array[string]

      This is the array of available options for the selection box. If the type is "selection" this array will be provided.

    • Denotes if the custom field is visible and editable to clients.

    • position integer

      The position of the custom field

GET /api/v1/custom-field
curl \
 -X GET https://api.plannrcrm.com/api/v1/custom-field \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json"
Response examples (200)
{
  "firm": {
    "tax": 17.5,
    "logo": "https://api.plannrcrm.com/images/plannr.jpg",
    "name": "Codepotato",
    "slug": "codepotato",
    "uuid": "fc049422-5b7e-44d1-b413-1605fbb8a165",
    "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": "2024-10-16T11:10:17+01:00",
    "updated_at": "2024-10-16T11:10:17+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",
      "sidebar_background": "#0E0E56",
      "sidebar_title_primary": "#FFC634",
      "email_button_background": "#36367E",
      "sidebar_title_secondary": "#ffffff",
      "sidebar_title_background": "#36367E",
      "email_logo_background_panel": "#36367E",
      "sidebar_title_secondary_hover": "#ffffff"
    },
    "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!"
  },
  "name": "Favourite Drink",
  "type": "string",
  "uuid": "ae8d2cc3-8433-48da-96d1-64819a408d96",
  "position": 5,
  "help_text": "This is the client's favourite drink.",
  "reference": "favourite_drink",
  "created_at": "2024-10-16T11:10:17+01:00",
  "model_type": "client",
  "updated_at": "2024-10-16T11:10:17+01:00",
  "is_required": false,
  "selection_options": [
    "Coffee",
    "Tea",
    "Water"
  ],
  "is_visible_to_clients": true
}