> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itspropel.com/llms.txt.
> For full documentation content, see https://docs.itspropel.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itspropel.com/_mcp/server.

# Create Customer

POST https://crm/customers
Content-Type: multipart/form-data

Reference: https://docs.itspropel.com/propel-biz/05-crm/customers/05-crm-customers-crud/create-customer

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: PropelBiz
  version: 1.0.0
paths:
  /crm/customers:
    post:
      operationId: create-customer
      summary: Create Customer
      tags:
        - >-
          subpackage_05Crm.subpackage_05Crm/customers.subpackage_05Crm/customers/05CrmCustomersCrud
      parameters:
        - name: '{{tenant_key_name}}'
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/05 CRM_Customers_05 CRM > Customers >
                  CRUD_Create Customer_Response_200
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostCrmCustomersRequestUnprocessableEntityError
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                status:
                  type: string
                  description: >-
                    Optional: Status (prospect, active, inactive, suspended) -
                    defaults to prospect
                last_name:
                  type: string
                  description: 'Required: Last name (for residential customers)'
                first_name:
                  type: string
                  description: 'Required: First name (for residential customers)'
                do_not_call:
                  type: string
                  description: 'Optional: Do not call flag (true, false) - defaults to false'
                do_not_text:
                  type: string
                  description: 'Optional: Do not text flag (true, false) - defaults to false'
                credit_limit:
                  type: string
                  description: 'Optional: Credit limit amount'
                display_name:
                  type: string
                  description: 'Optional: Display name override'
                do_not_email:
                  type: string
                  description: >-
                    Optional: Do not email flag (true, false) - defaults to
                    false
                credit_status:
                  type: string
                  description: >-
                    Optional: Credit status (excellent, good, fair, poor) -
                    defaults to good
                customer_type:
                  type: string
                  description: >-
                    Required: Customer type (residential, commercial,
                    industrial, government)
                priority_level:
                  type: string
                  description: >-
                    Optional: Priority level (standard, preferred, vip) -
                    defaults to standard
                marketing_opt_out:
                  type: string
                  description: >-
                    Optional: Marketing opt out flag (true, false) - defaults to
                    false
                preferred_language:
                  type: string
                  description: 'Optional: Preferred language (en, es, fr) - defaults to en'
                customer_portal_access:
                  type: string
                  description: >-
                    Optional: Customer portal access (true, false) - defaults to
                    true
              required:
                - status
                - last_name
                - first_name
                - do_not_call
                - do_not_text
                - credit_limit
                - display_name
                - do_not_email
                - credit_status
                - customer_type
                - priority_level
                - marketing_opt_out
                - preferred_language
                - customer_portal_access
servers:
  - url: https:/
components:
  schemas:
    CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsAttributes:
      type: object
      properties:
        status:
          type: string
        last_name:
          type: string
        first_name:
          type: string
        do_not_call:
          type: boolean
        do_not_text:
          type: boolean
        lead_source:
          description: Any type
        credit_limit:
          type: string
        display_name:
          type: string
        do_not_email:
          type: boolean
        business_name:
          description: Any type
        credit_status:
          type: string
        customer_type:
          type: string
        customer_since:
          description: Any type
        priority_level:
          type: string
        current_balance:
          description: Any type
        customer_number:
          description: Any type
        referral_source:
          description: Any type
        marketing_opt_out:
          type: boolean
        preferred_language:
          type: string
        customer_portal_access:
          type: boolean
      required:
        - status
        - last_name
        - first_name
        - do_not_call
        - do_not_text
        - credit_limit
        - display_name
        - do_not_email
        - credit_status
        - customer_type
        - priority_level
        - marketing_opt_out
        - preferred_language
        - customer_portal_access
      title: CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsAttributes
    CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsCreatedByUserItemsAttributes:
      type: object
      properties:
        email:
          type: string
          format: email
        last_name:
          type: string
        first_name:
          type: string
      required:
        - email
        - last_name
        - first_name
      title: >-
        CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsCreatedByUserItemsAttributes
    CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsCreatedByUserItems:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
        attributes:
          $ref: >-
            #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsCreatedByUserItemsAttributes
      required:
        - id
        - type
        - attributes
      title: >-
        CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsCreatedByUserItems
    CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsCreatedBy:
      type: object
      properties:
        user:
          type: array
          items:
            $ref: >-
              #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsCreatedByUserItems
        created_at:
          type: string
          format: date-time
      required:
        - user
        - created_at
      title: >-
        CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsCreatedBy
    CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsUpdatedByUserItemsAttributes:
      type: object
      properties:
        email:
          type: string
          format: email
        last_name:
          type: string
        first_name:
          type: string
      required:
        - email
        - last_name
        - first_name
      title: >-
        CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsUpdatedByUserItemsAttributes
    CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsUpdatedByUserItems:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
        attributes:
          $ref: >-
            #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsUpdatedByUserItemsAttributes
      required:
        - id
        - type
        - attributes
      title: >-
        CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsUpdatedByUserItems
    CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsUpdatedBy:
      type: object
      properties:
        user:
          type: array
          items:
            $ref: >-
              #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsUpdatedByUserItems
        updated_at:
          type: string
          format: date-time
      required:
        - user
        - updated_at
      title: >-
        CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsUpdatedBy
    CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationships:
      type: object
      properties:
        contacts:
          type: array
          items:
            description: Any type
        equipment:
          description: Any type
        locations:
          type: array
          items:
            description: Any type
        created_by:
          $ref: >-
            #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsCreatedBy
        updated_by:
          $ref: >-
            #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationshipsUpdatedBy
      required:
        - contacts
        - locations
        - created_by
        - updated_by
      title: >-
        CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationships
    CrmCustomersPostResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
        attributes:
          $ref: >-
            #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsAttributes
        relationships:
          $ref: >-
            #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaDataItemsRelationships
      required:
        - id
        - type
        - attributes
        - relationships
      title: CrmCustomersPostResponsesContentApplicationJsonSchemaDataItems
    05 CRM_Customers_05 CRM > Customers > CRUD_Create Customer_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaDataItems
      required:
        - data
      title: 05 CRM_Customers_05 CRM > Customers > CRUD_Create Customer_Response_200
    CrmCustomersPostResponsesContentApplicationJsonSchemaErrorsItemsSource:
      type: object
      properties:
        pointer:
          type: string
      required:
        - pointer
      title: CrmCustomersPostResponsesContentApplicationJsonSchemaErrorsItemsSource
    CrmCustomersPostResponsesContentApplicationJsonSchemaErrorsItems:
      type: object
      properties:
        title:
          type: string
        detail:
          type: string
        source:
          $ref: >-
            #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaErrorsItemsSource
        status:
          type: string
      required:
        - title
        - detail
        - source
        - status
      title: CrmCustomersPostResponsesContentApplicationJsonSchemaErrorsItems
    PostCrmCustomersRequestUnprocessableEntityError:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: >-
              #/components/schemas/CrmCustomersPostResponsesContentApplicationJsonSchemaErrorsItems
      required:
        - errors
      title: PostCrmCustomersRequestUnprocessableEntityError

```

## SDK Code Examples

```python 05 CRM_Customers_05 CRM > Customers > CRUD_Create Customer_example
import requests

url = "https://https/crm/customers"

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"status\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_call\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_text\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"credit_limit\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"display_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_email\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"credit_status\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"customer_type\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"priority_level\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"marketing_opt_out\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preferred_language\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"customer_portal_access\"\r\n\r\nstring\r\n-----011000010111000001101001--\r\n"
headers = {
    "{{tenant_key_name}}": "{{tenant_key_value1}}|{{tenant_key_value2}}",
    "Content-Type": "multipart/form-data; boundary=---011000010111000001101001"
}

response = requests.post(url, data=payload, headers=headers)

print(response.json())
```

```javascript 05 CRM_Customers_05 CRM > Customers > CRUD_Create Customer_example
const url = 'https://https/crm/customers';
const form = new FormData();
form.append('status', 'string');
form.append('last_name', 'string');
form.append('first_name', 'string');
form.append('do_not_call', 'string');
form.append('do_not_text', 'string');
form.append('credit_limit', 'string');
form.append('display_name', 'string');
form.append('do_not_email', 'string');
form.append('credit_status', 'string');
form.append('customer_type', 'string');
form.append('priority_level', 'string');
form.append('marketing_opt_out', 'string');
form.append('preferred_language', 'string');
form.append('customer_portal_access', 'string');

const options = {
  method: 'POST',
  headers: {'{{tenant_key_name}}': '{{tenant_key_value1}}|{{tenant_key_value2}}'}
};

options.body = form;

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go 05 CRM_Customers_05 CRM > Customers > CRUD_Create Customer_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/crm/customers"

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"status\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_call\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_text\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"credit_limit\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"display_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_email\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"credit_status\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"customer_type\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"priority_level\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"marketing_opt_out\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preferred_language\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"customer_portal_access\"\r\n\r\nstring\r\n-----011000010111000001101001--\r\n")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby 05 CRM_Customers_05 CRM > Customers > CRUD_Create Customer_example
require 'uri'
require 'net/http'

url = URI("https://https/crm/customers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["{{tenant_key_name}}"] = '{{tenant_key_value1}}|{{tenant_key_value2}}'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"status\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_call\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_text\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"credit_limit\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"display_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_email\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"credit_status\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"customer_type\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"priority_level\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"marketing_opt_out\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preferred_language\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"customer_portal_access\"\r\n\r\nstring\r\n-----011000010111000001101001--\r\n"

response = http.request(request)
puts response.read_body
```

```java 05 CRM_Customers_05 CRM > Customers > CRUD_Create Customer_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/crm/customers")
  .header("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"status\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_call\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_text\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"credit_limit\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"display_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_email\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"credit_status\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"customer_type\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"priority_level\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"marketing_opt_out\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preferred_language\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"customer_portal_access\"\r\n\r\nstring\r\n-----011000010111000001101001--\r\n")
  .asString();
```

```php 05 CRM_Customers_05 CRM > Customers > CRUD_Create Customer_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/crm/customers', [
  'multipart' => [
    [
        'name' => 'status',
        'contents' => 'string'
    ],
    [
        'name' => 'last_name',
        'contents' => 'string'
    ],
    [
        'name' => 'first_name',
        'contents' => 'string'
    ],
    [
        'name' => 'do_not_call',
        'contents' => 'string'
    ],
    [
        'name' => 'do_not_text',
        'contents' => 'string'
    ],
    [
        'name' => 'credit_limit',
        'contents' => 'string'
    ],
    [
        'name' => 'display_name',
        'contents' => 'string'
    ],
    [
        'name' => 'do_not_email',
        'contents' => 'string'
    ],
    [
        'name' => 'credit_status',
        'contents' => 'string'
    ],
    [
        'name' => 'customer_type',
        'contents' => 'string'
    ],
    [
        'name' => 'priority_level',
        'contents' => 'string'
    ],
    [
        'name' => 'marketing_opt_out',
        'contents' => 'string'
    ],
    [
        'name' => 'preferred_language',
        'contents' => 'string'
    ],
    [
        'name' => 'customer_portal_access',
        'contents' => 'string'
    ]
  ]
  'headers' => [
    '{{tenant_key_name}}' => '{{tenant_key_value1}}|{{tenant_key_value2}}',
  ],
]);

echo $response->getBody();
```

```csharp 05 CRM_Customers_05 CRM > Customers > CRUD_Create Customer_example
using RestSharp;

var client = new RestClient("https://https/crm/customers");
var request = new RestRequest(Method.POST);
request.AddHeader("{{tenant_key_name}}", "{{tenant_key_value1}}|{{tenant_key_value2}}");
request.AddParameter("undefined", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"status\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_call\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_text\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"credit_limit\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"display_name\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"do_not_email\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"credit_status\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"customer_type\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"priority_level\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"marketing_opt_out\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preferred_language\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"customer_portal_access\"\r\n\r\nstring\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 05 CRM_Customers_05 CRM > Customers > CRUD_Create Customer_example
import Foundation

let headers = ["{{tenant_key_name}}": "{{tenant_key_value1}}|{{tenant_key_value2}}"]
let parameters = [
  [
    "name": "status",
    "value": "string"
  ],
  [
    "name": "last_name",
    "value": "string"
  ],
  [
    "name": "first_name",
    "value": "string"
  ],
  [
    "name": "do_not_call",
    "value": "string"
  ],
  [
    "name": "do_not_text",
    "value": "string"
  ],
  [
    "name": "credit_limit",
    "value": "string"
  ],
  [
    "name": "display_name",
    "value": "string"
  ],
  [
    "name": "do_not_email",
    "value": "string"
  ],
  [
    "name": "credit_status",
    "value": "string"
  ],
  [
    "name": "customer_type",
    "value": "string"
  ],
  [
    "name": "priority_level",
    "value": "string"
  ],
  [
    "name": "marketing_opt_out",
    "value": "string"
  ],
  [
    "name": "preferred_language",
    "value": "string"
  ],
  [
    "name": "customer_portal_access",
    "value": "string"
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "https://https/crm/customers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```