For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/account-profile/llms.txt. For full documentation content, see https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/account-profile/llms-full.txt.

# Demographics

PATCH http://localhost:8000/api/sperm-donors/{id}/demographics
Content-Type: application/json

Reference: https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/account-profile/demographics

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/sperm-donors/{id}/demographics:
    patch:
      operationId: demographics
      summary: Demographics
      tags:
        - subpackage_spermDonor.subpackage_spermDonor/accountProfile
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Sperm Donor_Account
                  Profile_Demographics_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: string
servers:
  - url: http://localhost:8000
components:
  schemas:
    Sperm Donor_Account Profile_Demographics_Response_200:
      type: object
      properties:
        status:
          type: integer
        message:
          type: string
      required:
        - status
        - message
      title: Sperm Donor_Account Profile_Demographics_Response_200
  securitySchemes:
    oauth2Auth:
      type: http
      scheme: bearer

```

## SDK Code Examples

```python Sperm Donor_Account Profile_Demographics_example
import requests

url = "http://localhost:8000/api/sperm-donors/21/demographics"

payload = "{
  \"user\": {
    \"email\": \"example.user1@gmail.com\",
    \"status_id\": 1,
    \"first_name\": \"Jane\",
    \"last_name\": \"Doe\",
    \"middle_name\": \"user\",
    \"timezone_id\": 2,
    \"is_private_donor\": \"no\",
    \"has_contact_details\": \"yes\"
  },
  \"user_profile\": {
    \"date_of_birth\": \"1995-08-15\",
    \"birth_country_id\": 1,
    \"race_id\": 3,
    \"donor_type_id\": 1,
    \"religion_id\": 4,
    \"us_citizen\": \"yes\",
    \"language_id\": 2,
    \"education_level_id\": 3,
    \"education_sub_level_id\": 2,
    \"custom_education\": \"High School Diploma\",
    \"home_phone\": \"1234567890\",
    \"home_phone_country\": \"US\",
    \"mobile_phone\": \"9876543210\",
    \"mobile_phone_country\": \"US\",

    \"eye_color_id\": 1,
    \"eye_wear_id\": 2,
    \"eye_size_id\": 3,
    \"hair_color_id\": 4,
    \"hair_type_id\": 1,
    \"hair_texture_id\": 2,
    \"skin_tone_id\": 3,
    \"skin_condition_id\": 2,
    \"skin_complexion_id\": 1,
    \"nose_size_id\": 2,
    \"freckles_id\": 1,

    \"vision\": \"20/20\",
    \"teeth_condition\": \"Good\",
    \"orthodontic_appliances\": \"yes\", // yes or no
    \"predominantly\": \"yes\", // yes or no
    \"distinguishing_characteristics\":\"yes\", // yes or no
    \"hearing_impairments\": \"yes\" // yes or no
  },
  \"address\": {
    \"street_address\": \"456 Central Ave\",
    \"residence\": \"Suite 302\",
    \"country_id\": 1,
    \"state_id\": 10,
    \"city\": \"New York\",
    \"zip_code\": \"10001\",
    \"latitude\": 72.123456,
    \"longitude\": 23.123456
  }
}"
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Sperm Donor_Account Profile_Demographics_example
const url = 'http://localhost:8000/api/sperm-donors/21/demographics';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '"{\n  \"user\": {\n    \"email\": \"example.user1@gmail.com\",\n    \"status_id\": 1,\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Doe\",\n    \"middle_name\": \"user\",\n    \"timezone_id\": 2,\n    \"is_private_donor\": \"no\",\n    \"has_contact_details\": \"yes\"\n  },\n  \"user_profile\": {\n    \"date_of_birth\": \"1995-08-15\",\n    \"birth_country_id\": 1,\n    \"race_id\": 3,\n    \"donor_type_id\": 1,\n    \"religion_id\": 4,\n    \"us_citizen\": \"yes\",\n    \"language_id\": 2,\n    \"education_level_id\": 3,\n    \"education_sub_level_id\": 2,\n    \"custom_education\": \"High School Diploma\",\n    \"home_phone\": \"1234567890\",\n    \"home_phone_country\": \"US\",\n    \"mobile_phone\": \"9876543210\",\n    \"mobile_phone_country\": \"US\",\n\n    \"eye_color_id\": 1,\n    \"eye_wear_id\": 2,\n    \"eye_size_id\": 3,\n    \"hair_color_id\": 4,\n    \"hair_type_id\": 1,\n    \"hair_texture_id\": 2,\n    \"skin_tone_id\": 3,\n    \"skin_condition_id\": 2,\n    \"skin_complexion_id\": 1,\n    \"nose_size_id\": 2,\n    \"freckles_id\": 1,\n\n    \"vision\": \"20/20\",\n    \"teeth_condition\": \"Good\",\n    \"orthodontic_appliances\": \"yes\", // yes or no\n    \"predominantly\": \"yes\", // yes or no\n    \"distinguishing_characteristics\":\"yes\", // yes or no\n    \"hearing_impairments\": \"yes\" // yes or no\n  },\n  \"address\": {\n    \"street_address\": \"456 Central Ave\",\n    \"residence\": \"Suite 302\",\n    \"country_id\": 1,\n    \"state_id\": 10,\n    \"city\": \"New York\",\n    \"zip_code\": \"10001\",\n    \"latitude\": 72.123456,\n    \"longitude\": 23.123456\n  }\n}"'
};

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

```go Sperm Donor_Account Profile_Demographics_example
package main

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

func main() {

	url := "http://localhost:8000/api/sperm-donors/21/demographics"

	payload := strings.NewReader("\"{\\n  \\\"user\\\": {\\n    \\\"email\\\": \\\"example.user1@gmail.com\\\",\\n    \\\"status_id\\\": 1,\\n    \\\"first_name\\\": \\\"Jane\\\",\\n    \\\"last_name\\\": \\\"Doe\\\",\\n    \\\"middle_name\\\": \\\"user\\\",\\n    \\\"timezone_id\\\": 2,\\n    \\\"is_private_donor\\\": \\\"no\\\",\\n    \\\"has_contact_details\\\": \\\"yes\\\"\\n  },\\n  \\\"user_profile\\\": {\\n    \\\"date_of_birth\\\": \\\"1995-08-15\\\",\\n    \\\"birth_country_id\\\": 1,\\n    \\\"race_id\\\": 3,\\n    \\\"donor_type_id\\\": 1,\\n    \\\"religion_id\\\": 4,\\n    \\\"us_citizen\\\": \\\"yes\\\",\\n    \\\"language_id\\\": 2,\\n    \\\"education_level_id\\\": 3,\\n    \\\"education_sub_level_id\\\": 2,\\n    \\\"custom_education\\\": \\\"High School Diploma\\\",\\n    \\\"home_phone\\\": \\\"1234567890\\\",\\n    \\\"home_phone_country\\\": \\\"US\\\",\\n    \\\"mobile_phone\\\": \\\"9876543210\\\",\\n    \\\"mobile_phone_country\\\": \\\"US\\\",\\n\\n    \\\"eye_color_id\\\": 1,\\n    \\\"eye_wear_id\\\": 2,\\n    \\\"eye_size_id\\\": 3,\\n    \\\"hair_color_id\\\": 4,\\n    \\\"hair_type_id\\\": 1,\\n    \\\"hair_texture_id\\\": 2,\\n    \\\"skin_tone_id\\\": 3,\\n    \\\"skin_condition_id\\\": 2,\\n    \\\"skin_complexion_id\\\": 1,\\n    \\\"nose_size_id\\\": 2,\\n    \\\"freckles_id\\\": 1,\\n\\n    \\\"vision\\\": \\\"20/20\\\",\\n    \\\"teeth_condition\\\": \\\"Good\\\",\\n    \\\"orthodontic_appliances\\\": \\\"yes\\\", // yes or no\\n    \\\"predominantly\\\": \\\"yes\\\", // yes or no\\n    \\\"distinguishing_characteristics\\\":\\\"yes\\\", // yes or no\\n    \\\"hearing_impairments\\\": \\\"yes\\\" // yes or no\\n  },\\n  \\\"address\\\": {\\n    \\\"street_address\\\": \\\"456 Central Ave\\\",\\n    \\\"residence\\\": \\\"Suite 302\\\",\\n    \\\"country_id\\\": 1,\\n    \\\"state_id\\\": 10,\\n    \\\"city\\\": \\\"New York\\\",\\n    \\\"zip_code\\\": \\\"10001\\\",\\n    \\\"latitude\\\": 72.123456,\\n    \\\"longitude\\\": 23.123456\\n  }\\n}\"")

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby Sperm Donor_Account Profile_Demographics_example
require 'uri'
require 'net/http'

url = URI("http://localhost:8000/api/sperm-donors/21/demographics")

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

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "\"{\\n  \\\"user\\\": {\\n    \\\"email\\\": \\\"example.user1@gmail.com\\\",\\n    \\\"status_id\\\": 1,\\n    \\\"first_name\\\": \\\"Jane\\\",\\n    \\\"last_name\\\": \\\"Doe\\\",\\n    \\\"middle_name\\\": \\\"user\\\",\\n    \\\"timezone_id\\\": 2,\\n    \\\"is_private_donor\\\": \\\"no\\\",\\n    \\\"has_contact_details\\\": \\\"yes\\\"\\n  },\\n  \\\"user_profile\\\": {\\n    \\\"date_of_birth\\\": \\\"1995-08-15\\\",\\n    \\\"birth_country_id\\\": 1,\\n    \\\"race_id\\\": 3,\\n    \\\"donor_type_id\\\": 1,\\n    \\\"religion_id\\\": 4,\\n    \\\"us_citizen\\\": \\\"yes\\\",\\n    \\\"language_id\\\": 2,\\n    \\\"education_level_id\\\": 3,\\n    \\\"education_sub_level_id\\\": 2,\\n    \\\"custom_education\\\": \\\"High School Diploma\\\",\\n    \\\"home_phone\\\": \\\"1234567890\\\",\\n    \\\"home_phone_country\\\": \\\"US\\\",\\n    \\\"mobile_phone\\\": \\\"9876543210\\\",\\n    \\\"mobile_phone_country\\\": \\\"US\\\",\\n\\n    \\\"eye_color_id\\\": 1,\\n    \\\"eye_wear_id\\\": 2,\\n    \\\"eye_size_id\\\": 3,\\n    \\\"hair_color_id\\\": 4,\\n    \\\"hair_type_id\\\": 1,\\n    \\\"hair_texture_id\\\": 2,\\n    \\\"skin_tone_id\\\": 3,\\n    \\\"skin_condition_id\\\": 2,\\n    \\\"skin_complexion_id\\\": 1,\\n    \\\"nose_size_id\\\": 2,\\n    \\\"freckles_id\\\": 1,\\n\\n    \\\"vision\\\": \\\"20/20\\\",\\n    \\\"teeth_condition\\\": \\\"Good\\\",\\n    \\\"orthodontic_appliances\\\": \\\"yes\\\", // yes or no\\n    \\\"predominantly\\\": \\\"yes\\\", // yes or no\\n    \\\"distinguishing_characteristics\\\":\\\"yes\\\", // yes or no\\n    \\\"hearing_impairments\\\": \\\"yes\\\" // yes or no\\n  },\\n  \\\"address\\\": {\\n    \\\"street_address\\\": \\\"456 Central Ave\\\",\\n    \\\"residence\\\": \\\"Suite 302\\\",\\n    \\\"country_id\\\": 1,\\n    \\\"state_id\\\": 10,\\n    \\\"city\\\": \\\"New York\\\",\\n    \\\"zip_code\\\": \\\"10001\\\",\\n    \\\"latitude\\\": 72.123456,\\n    \\\"longitude\\\": 23.123456\\n  }\\n}\""

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

```java Sperm Donor_Account Profile_Demographics_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("http://localhost:8000/api/sperm-donors/21/demographics")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("\"{\\n  \\\"user\\\": {\\n    \\\"email\\\": \\\"example.user1@gmail.com\\\",\\n    \\\"status_id\\\": 1,\\n    \\\"first_name\\\": \\\"Jane\\\",\\n    \\\"last_name\\\": \\\"Doe\\\",\\n    \\\"middle_name\\\": \\\"user\\\",\\n    \\\"timezone_id\\\": 2,\\n    \\\"is_private_donor\\\": \\\"no\\\",\\n    \\\"has_contact_details\\\": \\\"yes\\\"\\n  },\\n  \\\"user_profile\\\": {\\n    \\\"date_of_birth\\\": \\\"1995-08-15\\\",\\n    \\\"birth_country_id\\\": 1,\\n    \\\"race_id\\\": 3,\\n    \\\"donor_type_id\\\": 1,\\n    \\\"religion_id\\\": 4,\\n    \\\"us_citizen\\\": \\\"yes\\\",\\n    \\\"language_id\\\": 2,\\n    \\\"education_level_id\\\": 3,\\n    \\\"education_sub_level_id\\\": 2,\\n    \\\"custom_education\\\": \\\"High School Diploma\\\",\\n    \\\"home_phone\\\": \\\"1234567890\\\",\\n    \\\"home_phone_country\\\": \\\"US\\\",\\n    \\\"mobile_phone\\\": \\\"9876543210\\\",\\n    \\\"mobile_phone_country\\\": \\\"US\\\",\\n\\n    \\\"eye_color_id\\\": 1,\\n    \\\"eye_wear_id\\\": 2,\\n    \\\"eye_size_id\\\": 3,\\n    \\\"hair_color_id\\\": 4,\\n    \\\"hair_type_id\\\": 1,\\n    \\\"hair_texture_id\\\": 2,\\n    \\\"skin_tone_id\\\": 3,\\n    \\\"skin_condition_id\\\": 2,\\n    \\\"skin_complexion_id\\\": 1,\\n    \\\"nose_size_id\\\": 2,\\n    \\\"freckles_id\\\": 1,\\n\\n    \\\"vision\\\": \\\"20/20\\\",\\n    \\\"teeth_condition\\\": \\\"Good\\\",\\n    \\\"orthodontic_appliances\\\": \\\"yes\\\", // yes or no\\n    \\\"predominantly\\\": \\\"yes\\\", // yes or no\\n    \\\"distinguishing_characteristics\\\":\\\"yes\\\", // yes or no\\n    \\\"hearing_impairments\\\": \\\"yes\\\" // yes or no\\n  },\\n  \\\"address\\\": {\\n    \\\"street_address\\\": \\\"456 Central Ave\\\",\\n    \\\"residence\\\": \\\"Suite 302\\\",\\n    \\\"country_id\\\": 1,\\n    \\\"state_id\\\": 10,\\n    \\\"city\\\": \\\"New York\\\",\\n    \\\"zip_code\\\": \\\"10001\\\",\\n    \\\"latitude\\\": 72.123456,\\n    \\\"longitude\\\": 23.123456\\n  }\\n}\"")
  .asString();
```

```php Sperm Donor_Account Profile_Demographics_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'http://localhost:8000/api/sperm-donors/21/demographics', [
  'body' => '"{\\n  \\"user\\": {\\n    \\"email\\": \\"example.user1@gmail.com\\",\\n    \\"status_id\\": 1,\\n    \\"first_name\\": \\"Jane\\",\\n    \\"last_name\\": \\"Doe\\",\\n    \\"middle_name\\": \\"user\\",\\n    \\"timezone_id\\": 2,\\n    \\"is_private_donor\\": \\"no\\",\\n    \\"has_contact_details\\": \\"yes\\"\\n  },\\n  \\"user_profile\\": {\\n    \\"date_of_birth\\": \\"1995-08-15\\",\\n    \\"birth_country_id\\": 1,\\n    \\"race_id\\": 3,\\n    \\"donor_type_id\\": 1,\\n    \\"religion_id\\": 4,\\n    \\"us_citizen\\": \\"yes\\",\\n    \\"language_id\\": 2,\\n    \\"education_level_id\\": 3,\\n    \\"education_sub_level_id\\": 2,\\n    \\"custom_education\\": \\"High School Diploma\\",\\n    \\"home_phone\\": \\"1234567890\\",\\n    \\"home_phone_country\\": \\"US\\",\\n    \\"mobile_phone\\": \\"9876543210\\",\\n    \\"mobile_phone_country\\": \\"US\\",\\n\\n    \\"eye_color_id\\": 1,\\n    \\"eye_wear_id\\": 2,\\n    \\"eye_size_id\\": 3,\\n    \\"hair_color_id\\": 4,\\n    \\"hair_type_id\\": 1,\\n    \\"hair_texture_id\\": 2,\\n    \\"skin_tone_id\\": 3,\\n    \\"skin_condition_id\\": 2,\\n    \\"skin_complexion_id\\": 1,\\n    \\"nose_size_id\\": 2,\\n    \\"freckles_id\\": 1,\\n\\n    \\"vision\\": \\"20/20\\",\\n    \\"teeth_condition\\": \\"Good\\",\\n    \\"orthodontic_appliances\\": \\"yes\\", // yes or no\\n    \\"predominantly\\": \\"yes\\", // yes or no\\n    \\"distinguishing_characteristics\\":\\"yes\\", // yes or no\\n    \\"hearing_impairments\\": \\"yes\\" // yes or no\\n  },\\n  \\"address\\": {\\n    \\"street_address\\": \\"456 Central Ave\\",\\n    \\"residence\\": \\"Suite 302\\",\\n    \\"country_id\\": 1,\\n    \\"state_id\\": 10,\\n    \\"city\\": \\"New York\\",\\n    \\"zip_code\\": \\"10001\\",\\n    \\"latitude\\": 72.123456,\\n    \\"longitude\\": 23.123456\\n  }\\n}"',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Sperm Donor_Account Profile_Demographics_example
using RestSharp;

var client = new RestClient("http://localhost:8000/api/sperm-donors/21/demographics");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "\"{\\n  \\\"user\\\": {\\n    \\\"email\\\": \\\"example.user1@gmail.com\\\",\\n    \\\"status_id\\\": 1,\\n    \\\"first_name\\\": \\\"Jane\\\",\\n    \\\"last_name\\\": \\\"Doe\\\",\\n    \\\"middle_name\\\": \\\"user\\\",\\n    \\\"timezone_id\\\": 2,\\n    \\\"is_private_donor\\\": \\\"no\\\",\\n    \\\"has_contact_details\\\": \\\"yes\\\"\\n  },\\n  \\\"user_profile\\\": {\\n    \\\"date_of_birth\\\": \\\"1995-08-15\\\",\\n    \\\"birth_country_id\\\": 1,\\n    \\\"race_id\\\": 3,\\n    \\\"donor_type_id\\\": 1,\\n    \\\"religion_id\\\": 4,\\n    \\\"us_citizen\\\": \\\"yes\\\",\\n    \\\"language_id\\\": 2,\\n    \\\"education_level_id\\\": 3,\\n    \\\"education_sub_level_id\\\": 2,\\n    \\\"custom_education\\\": \\\"High School Diploma\\\",\\n    \\\"home_phone\\\": \\\"1234567890\\\",\\n    \\\"home_phone_country\\\": \\\"US\\\",\\n    \\\"mobile_phone\\\": \\\"9876543210\\\",\\n    \\\"mobile_phone_country\\\": \\\"US\\\",\\n\\n    \\\"eye_color_id\\\": 1,\\n    \\\"eye_wear_id\\\": 2,\\n    \\\"eye_size_id\\\": 3,\\n    \\\"hair_color_id\\\": 4,\\n    \\\"hair_type_id\\\": 1,\\n    \\\"hair_texture_id\\\": 2,\\n    \\\"skin_tone_id\\\": 3,\\n    \\\"skin_condition_id\\\": 2,\\n    \\\"skin_complexion_id\\\": 1,\\n    \\\"nose_size_id\\\": 2,\\n    \\\"freckles_id\\\": 1,\\n\\n    \\\"vision\\\": \\\"20/20\\\",\\n    \\\"teeth_condition\\\": \\\"Good\\\",\\n    \\\"orthodontic_appliances\\\": \\\"yes\\\", // yes or no\\n    \\\"predominantly\\\": \\\"yes\\\", // yes or no\\n    \\\"distinguishing_characteristics\\\":\\\"yes\\\", // yes or no\\n    \\\"hearing_impairments\\\": \\\"yes\\\" // yes or no\\n  },\\n  \\\"address\\\": {\\n    \\\"street_address\\\": \\\"456 Central Ave\\\",\\n    \\\"residence\\\": \\\"Suite 302\\\",\\n    \\\"country_id\\\": 1,\\n    \\\"state_id\\\": 10,\\n    \\\"city\\\": \\\"New York\\\",\\n    \\\"zip_code\\\": \\\"10001\\\",\\n    \\\"latitude\\\": 72.123456,\\n    \\\"longitude\\\": 23.123456\\n  }\\n}\"", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Sperm Donor_Account Profile_Demographics_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = "{
  \"user\": {
    \"email\": \"example.user1@gmail.com\",
    \"status_id\": 1,
    \"first_name\": \"Jane\",
    \"last_name\": \"Doe\",
    \"middle_name\": \"user\",
    \"timezone_id\": 2,
    \"is_private_donor\": \"no\",
    \"has_contact_details\": \"yes\"
  },
  \"user_profile\": {
    \"date_of_birth\": \"1995-08-15\",
    \"birth_country_id\": 1,
    \"race_id\": 3,
    \"donor_type_id\": 1,
    \"religion_id\": 4,
    \"us_citizen\": \"yes\",
    \"language_id\": 2,
    \"education_level_id\": 3,
    \"education_sub_level_id\": 2,
    \"custom_education\": \"High School Diploma\",
    \"home_phone\": \"1234567890\",
    \"home_phone_country\": \"US\",
    \"mobile_phone\": \"9876543210\",
    \"mobile_phone_country\": \"US\",

    \"eye_color_id\": 1,
    \"eye_wear_id\": 2,
    \"eye_size_id\": 3,
    \"hair_color_id\": 4,
    \"hair_type_id\": 1,
    \"hair_texture_id\": 2,
    \"skin_tone_id\": 3,
    \"skin_condition_id\": 2,
    \"skin_complexion_id\": 1,
    \"nose_size_id\": 2,
    \"freckles_id\": 1,

    \"vision\": \"20/20\",
    \"teeth_condition\": \"Good\",
    \"orthodontic_appliances\": \"yes\", // yes or no
    \"predominantly\": \"yes\", // yes or no
    \"distinguishing_characteristics\":\"yes\", // yes or no
    \"hearing_impairments\": \"yes\" // yes or no
  },
  \"address\": {
    \"street_address\": \"456 Central Ave\",
    \"residence\": \"Suite 302\",
    \"country_id\": 1,
    \"state_id\": 10,
    \"city\": \"New York\",
    \"zip_code\": \"10001\",
    \"latitude\": 72.123456,
    \"longitude\": 23.123456
  }
}" as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8000/api/sperm-donors/21/demographics")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()
```