> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useparagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Custom Field Lead

**Provider API:** Salesforce REST API (Latest version available to the connected org).


## OpenAPI

````yaml actionkit/openapi.json POST /projects/{project_id}/tools/#SALESFORCE_CREATE_CUSTOM_FIELD_LEAD
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#SALESFORCE_CREATE_CUSTOM_FIELD_LEAD:
    post:
      summary: Create Custom Field Lead
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: SALESFORCE_CREATE_CUSTOM_FIELD_LEAD
                parameters:
                  type: object
                  properties:
                    label:
                      type: string
                      description: >-
                        Field Label : Enter a label to be used on displays, page
                        layouts, reports, and list views. Also determines the
                        Field Name used for internal reference. For example, if
                        the Field Label is “Email”, the Field Name will be
                        “Email__c”.
                    type:
                      type: string
                      description: Field Type
                      enum:
                        - Checkbox
                        - Currency
                        - Date
                        - Email
                        - Number
                        - Percent
                        - Phone
                        - Picklist
                        - MultiselectPicklist
                        - Text
                        - TextArea
                        - LongTextArea
                        - Html
                        - Time
                        - Url
                    defaultCheckboxValue:
                      type: boolean
                      description: |-
                        Default Value 
                        This field appears only when 'type' = 'Checkbox')
                    length:
                      type: string
                      description: >-
                        Length : Number of digits to the left of the decimal
                        point 

                        This field appears only when 'type' = 'Currency') 

                        This field appears only when 'type' = 'Currency',
                        'Number') 

                        This field appears only when 'type' = 'Currency',
                        'Percent') 

                        This field appears only when 'type' = 'Currency',
                        'Text') 

                        This field appears only when 'type' = 'Currency',
                        'LongTextArea') 

                        This field appears only when 'type' = 'Currency',
                        'Html')
                    decimalPlace:
                      type: string
                      description: >-
                        Decimal Places : Number of digits to the right of the
                        decimal point 

                        This field appears only when 'type' = 'Currency') 

                        This field appears only when 'type' = 'Currency',
                        'Number') 

                        This field appears only when 'type' = 'Currency',
                        'Percent')
                    pickListValues:
                      type: string
                      description: >-
                        Values : Enter values, with each value separated by a
                        new line 

                        This field appears only when 'type' = 'Picklist') 

                        This field appears only when 'type' = 'Picklist',
                        'MultiselectPicklist')
                    visibleLines:
                      type: string
                      description: >-
                        Visible Lines 

                        This field appears only when 'type' =
                        'MultiselectPicklist') 

                        This field appears only when 'type' =
                        'MultiselectPicklist', 'LongTextArea') 

                        This field appears only when 'type' =
                        'MultiselectPicklist', 'Html')
                    description:
                      type: string
                      description: Description
                    helperText:
                      type: string
                      description: >-
                        Helper Text : This text displays on detail and edit
                        pages when users hover over the Info icon next to this
                        field.
                    defaultFieldValue:
                      type: string
                      description: Default Value
                  required:
                    - label
                    - type
                    - length
                    - decimalPlace
                    - pickListValues
                    - visibleLines
                  x-integration: salesforce
              required:
                - tool
                - parameters
      responses:
        '200':
          description: >-
            The result of creating the custom field. `created` is `false` if the
            field already existed. `fullName` is the object name and the field
            API name. If adding the field to a profile or page layout fails, the
            field is still created and `errors` describes what was skipped. The
            keys and values in the response come from Salesforce and can vary
            with how the object, its fields and the org are configured, so your
            response may differ from this example.
          content:
            application/json:
              examples:
                'Success: Created':
                  summary: Custom field created
                  value:
                    created: true
                    fullName: Lead.Docs_Example_Score__c
                    success: true
                    errors: []
                'Success: Created (with warning)':
                  summary: Custom field already exists, layout update skipped
                  value:
                    created: false
                    fullName: Lead.Docs_Example_Score__c
                    success: true
                    errors:
                      - fields:
                          - Docs_Example_Score__c
                        message: >-
                          Field "Docs_Example_Score__c" already exists in layout
                          "Lead-Lead Layout". Skipping layout update.
                        extendedErrorDetails: []
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````