---
updatedAt: 2025-06-11T21:42:37.000Z
agentTools:
  projectIndex: https://developers.fireberry.com/llms.txt
---

# Create a Text Field

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "fireberry-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.fireberry.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "tokenid"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v2/system-field/{objectType}/text": {
      "post": {
        "summary": "Create a Text Field",
        "description": "",
        "operationId": "create-a-text-field",
        "parameters": [
          {
            "name": "objectType",
            "in": "path",
            "description": "Use an object's number here to assign this field to an object.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fieldName",
                  "label"
                ],
                "properties": {
                  "fieldName": {
                    "type": "string",
                    "description": "System field name. Must start with 'pcf' or the field will not be created.",
                    "default": "pcf"
                  },
                  "label": {
                    "type": "string",
                    "description": "Field name used for system displays."
                  },
                  "autoComplete": {
                    "type": "boolean",
                    "description": "To autocomplete values for this field, enter ׳true׳.",
                    "default": false
                  },
                  "defaultValue": {
                    "type": "string",
                    "description": "Value used by default for this field. Must match field requirements."
                  },
                  "follow": {
                    "type": "boolean",
                    "description": "To track all changes made to this field, enter ׳true׳.",
                    "default": false
                  },
                  "maxLength": {
                    "type": "integer",
                    "description": "Number between 1-200 to limit length of text.",
                    "format": "int32"
                  },
                  "additionalProperty": {
                    "type": "string",
                    "description": "Select required or read only to set these properties, or leave blank.",
                    "enum": [
                      "required",
                      "readonly"
                    ]
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "defaultValue": "Text Default",
                    "autoComplete": true,
                    "maxLength": 195,
                    "follow": true,
                    "fieldName": "pcffulltextfield",
                    "label": "Text field",
                    "additionalProperty": "readonly"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```