Set Property Configurations

Set Property Configurations #

API Endpoint:
PUT https://app.funnelstory.ai/api/config/properties


Steps to Set Custom Property Data #

1. Prepare Your Property Data #

  • key: The unique identifier for the property.
  • display_name: The name to display for the property.
  • type(optional): The property value type (example: “string”, “date”, etc.).
const data = {
  properties: [
    {
      key: "replace_key",                  // Example: "additional_domains"
      display_name: "Replace Custom Name", // Example: "Domain List"
      type: "string"                       // Optional: "string", "number", "date", etc.
    }
  ]
};

2. Run the Request via Browser Console #

  • Open your browser’s DevTools (press F12, or right-click → “Inspect”, then select “Console”).
  • Copy & paste the script below (replace fields as in Step 1 if you haven’t already) and press Enter:
fetch('https://app.funnelstory.ai/api/config/properties', {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    properties: [
      {
        key: "replace_key",              
        display_name: "Replace Custom Name"
      }
    ]
  })
})
.then(response => response.json())
.then(data => console.log('API Response:', data))
.catch(error => console.error('Request error:', error));

Success Response Example

{
  "ok": true,
  "response": {
    "properties": [
      {
        "key": "additional_domains",
        "display_name": "Domain List",
        "type": "string"
      }
    ]
  }
}

Error Response Example

If either display_name or key is empty, you will get an error like this:

{
  "ok": false,
  "error": "display name is empty\nkey is empty",
  "fs_request_id": "01983b25-5ad3-7a21-a47b-xxxxxxxxxxxx"
}