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/egg-donor/account-profile/llms.txt. For full documentation content, see https://docs.ivfprovider.com/ivf-agency-ap-is/egg-donor/account-profile/llms-full.txt.

# Demographics

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

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

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/egg-donors/{id}/demographics:
    patch:
      operationId: demographics
      summary: Demographics
      tags:
        - subpackage_eggDonor.subpackage_eggDonor/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/Egg Donor_Account
                  Profile_Demographics_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                user:
                  $ref: >-
                    #/components/schemas/ApiEggDonorsIdDemographicsPatchRequestBodyContentApplicationJsonSchemaUser
                user_profile:
                  $ref: >-
                    #/components/schemas/ApiEggDonorsIdDemographicsPatchRequestBodyContentApplicationJsonSchemaUserProfile
                address:
                  $ref: >-
                    #/components/schemas/ApiEggDonorsIdDemographicsPatchRequestBodyContentApplicationJsonSchemaAddress
              required:
                - user
                - user_profile
                - address
servers:
  - url: http://localhost:8000
components:
  schemas:
    ApiEggDonorsIdDemographicsPatchRequestBodyContentApplicationJsonSchemaUser:
      type: object
      properties:
        first_name:
          type: string
        middle_name:
          type: string
        last_name:
          type: string
        timezone_id:
          type: integer
        status_id:
          type: integer
        is_private_donor:
          type: string
        has_contact_details:
          type: string
        email:
          type: string
          format: email
      required:
        - first_name
        - middle_name
        - last_name
        - timezone_id
        - status_id
        - is_private_donor
        - has_contact_details
        - email
      title: >-
        ApiEggDonorsIdDemographicsPatchRequestBodyContentApplicationJsonSchemaUser
    ApiEggDonorsIdDemographicsPatchRequestBodyContentApplicationJsonSchemaUserProfile:
      type: object
      properties:
        ethnicity_id:
          type: integer
        date_of_birth:
          type: string
          format: date
        birth_country_id:
          type: integer
        race_id:
          type: integer
        donor_type_id:
          type: integer
        religion_id:
          type: integer
        compensation:
          type: integer
        citizenship:
          type: string
        language_id:
          type: integer
        bmi:
          type: string
        education_level_id:
          type: integer
        education_sub_level_id:
          description: Any type
        custom_education:
          description: Any type
        occupation:
          type: string
        health_insurance_carrier:
          type: string
        home_phone:
          type: string
        home_phone_country:
          type: string
        mobile_phone:
          type: string
        mobile_phone_country:
          type: string
        eye_color_id:
          type: integer
        eye_wear_id:
          type: integer
        eye_size_id:
          type: integer
        hair_color_id:
          type: integer
        hair_type_id:
          type: integer
        hair_texture_id:
          type: integer
        skin_tone_id:
          type: integer
        skin_condition_id:
          type: integer
        skin_complexion_id:
          type: integer
        nose_size_id:
          type: integer
        freckles_id:
          type: integer
        vision:
          type: string
        teeth_condition:
          type: string
        orthodontic_appliances:
          type: string
        predominantly:
          type: string
        distinguishing_characteristics:
          type: string
        hearing_impairments:
          type: string
      required:
        - ethnicity_id
        - date_of_birth
        - birth_country_id
        - race_id
        - donor_type_id
        - religion_id
        - compensation
        - citizenship
        - language_id
        - bmi
        - education_level_id
        - occupation
        - health_insurance_carrier
        - home_phone
        - home_phone_country
        - mobile_phone
        - mobile_phone_country
        - eye_color_id
        - eye_wear_id
        - eye_size_id
        - hair_color_id
        - hair_type_id
        - hair_texture_id
        - skin_tone_id
        - skin_condition_id
        - skin_complexion_id
        - nose_size_id
        - freckles_id
        - vision
        - teeth_condition
        - orthodontic_appliances
        - predominantly
        - distinguishing_characteristics
        - hearing_impairments
      title: >-
        ApiEggDonorsIdDemographicsPatchRequestBodyContentApplicationJsonSchemaUserProfile
    ApiEggDonorsIdDemographicsPatchRequestBodyContentApplicationJsonSchemaAddress:
      type: object
      properties:
        street_address:
          type: string
        residence:
          type: string
        country_id:
          type: integer
        state_id:
          type: integer
        city:
          type: string
        zip_code:
          type: string
        latitude:
          type: number
          format: double
        longitude:
          type: number
          format: double
      required:
        - street_address
        - residence
        - country_id
        - state_id
        - city
        - zip_code
        - latitude
        - longitude
      title: >-
        ApiEggDonorsIdDemographicsPatchRequestBodyContentApplicationJsonSchemaAddress
    Egg Donor_Account Profile_Demographics_Response_200:
      type: object
      properties:
        status:
          type: integer
        message:
          type: string
      required:
        - status
        - message
      title: Egg Donor_Account Profile_Demographics_Response_200
  securitySchemes:
    oauth2Auth:
      type: http
      scheme: bearer

```

## SDK Code Examples

```python Egg Donor_Account Profile_Demographics_example
import requests

url = "http://localhost:8000/api/egg-donors/20/demographics"

payload = {
    "user": {
        "first_name": "Agency",
        "middle_name": "Test",
        "last_name": "Surrogate",
        "timezone_id": 2,
        "status_id": 1,
        "is_private_donor": "no",
        "has_contact_details": "yes",
        "email": "agency.eggdonor@gmail.com"
    },
    "user_profile": {
        "ethnicity_id": 2,
        "date_of_birth": "1995-08-15",
        "birth_country_id": 1,
        "race_id": 3,
        "donor_type_id": 1,
        "religion_id": 4,
        "compensation": 50000,
        "citizenship": "USA",
        "language_id": 2,
        "bmi": "21.7",
        "education_level_id": 3,
        "occupation": "Software Developer",
        "health_insurance_carrier": "Blue Shield",
        "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": "Normal",
        "teeth_condition": "Good",
        "orthodontic_appliances": "No",
        "predominantly": "No",
        "distinguishing_characteristics": "No",
        "hearing_impairments": "No"
    },
    "address": {
        "street_address": "456 Central Ave",
        "residence": "Suite 302",
        "country_id": 1,
        "state_id": 10,
        "city": "New York",
        "zip_code": "10001",
        "latitude": 72.1111,
        "longitude": 23.1111
    }
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Egg Donor_Account Profile_Demographics_example
const url = 'http://localhost:8000/api/egg-donors/20/demographics';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"user":{"first_name":"Agency","middle_name":"Test","last_name":"Surrogate","timezone_id":2,"status_id":1,"is_private_donor":"no","has_contact_details":"yes","email":"agency.eggdonor@gmail.com"},"user_profile":{"ethnicity_id":2,"date_of_birth":"1995-08-15","birth_country_id":1,"race_id":3,"donor_type_id":1,"religion_id":4,"compensation":50000,"citizenship":"USA","language_id":2,"bmi":"21.7","education_level_id":3,"occupation":"Software Developer","health_insurance_carrier":"Blue Shield","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":"Normal","teeth_condition":"Good","orthodontic_appliances":"No","predominantly":"No","distinguishing_characteristics":"No","hearing_impairments":"No"},"address":{"street_address":"456 Central Ave","residence":"Suite 302","country_id":1,"state_id":10,"city":"New York","zip_code":"10001","latitude":72.1111,"longitude":23.1111}}'
};

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

```go Egg Donor_Account Profile_Demographics_example
package main

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

func main() {

	url := "http://localhost:8000/api/egg-donors/20/demographics"

	payload := strings.NewReader("{\n  \"user\": {\n    \"first_name\": \"Agency\",\n    \"middle_name\": \"Test\",\n    \"last_name\": \"Surrogate\",\n    \"timezone_id\": 2,\n    \"status_id\": 1,\n    \"is_private_donor\": \"no\",\n    \"has_contact_details\": \"yes\",\n    \"email\": \"agency.eggdonor@gmail.com\"\n  },\n  \"user_profile\": {\n    \"ethnicity_id\": 2,\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    \"compensation\": 50000,\n    \"citizenship\": \"USA\",\n    \"language_id\": 2,\n    \"bmi\": \"21.7\",\n    \"education_level_id\": 3,\n    \"occupation\": \"Software Developer\",\n    \"health_insurance_carrier\": \"Blue Shield\",\n    \"home_phone\": \"1234567890\",\n    \"home_phone_country\": \"US\",\n    \"mobile_phone\": \"9876543210\",\n    \"mobile_phone_country\": \"US\",\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    \"vision\": \"Normal\",\n    \"teeth_condition\": \"Good\",\n    \"orthodontic_appliances\": \"No\",\n    \"predominantly\": \"No\",\n    \"distinguishing_characteristics\": \"No\",\n    \"hearing_impairments\": \"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.1111,\n    \"longitude\": 23.1111\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 Egg Donor_Account Profile_Demographics_example
require 'uri'
require 'net/http'

url = URI("http://localhost:8000/api/egg-donors/20/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    \"first_name\": \"Agency\",\n    \"middle_name\": \"Test\",\n    \"last_name\": \"Surrogate\",\n    \"timezone_id\": 2,\n    \"status_id\": 1,\n    \"is_private_donor\": \"no\",\n    \"has_contact_details\": \"yes\",\n    \"email\": \"agency.eggdonor@gmail.com\"\n  },\n  \"user_profile\": {\n    \"ethnicity_id\": 2,\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    \"compensation\": 50000,\n    \"citizenship\": \"USA\",\n    \"language_id\": 2,\n    \"bmi\": \"21.7\",\n    \"education_level_id\": 3,\n    \"occupation\": \"Software Developer\",\n    \"health_insurance_carrier\": \"Blue Shield\",\n    \"home_phone\": \"1234567890\",\n    \"home_phone_country\": \"US\",\n    \"mobile_phone\": \"9876543210\",\n    \"mobile_phone_country\": \"US\",\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    \"vision\": \"Normal\",\n    \"teeth_condition\": \"Good\",\n    \"orthodontic_appliances\": \"No\",\n    \"predominantly\": \"No\",\n    \"distinguishing_characteristics\": \"No\",\n    \"hearing_impairments\": \"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.1111,\n    \"longitude\": 23.1111\n  }\n}"

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

```java Egg 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/egg-donors/20/demographics")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"user\": {\n    \"first_name\": \"Agency\",\n    \"middle_name\": \"Test\",\n    \"last_name\": \"Surrogate\",\n    \"timezone_id\": 2,\n    \"status_id\": 1,\n    \"is_private_donor\": \"no\",\n    \"has_contact_details\": \"yes\",\n    \"email\": \"agency.eggdonor@gmail.com\"\n  },\n  \"user_profile\": {\n    \"ethnicity_id\": 2,\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    \"compensation\": 50000,\n    \"citizenship\": \"USA\",\n    \"language_id\": 2,\n    \"bmi\": \"21.7\",\n    \"education_level_id\": 3,\n    \"occupation\": \"Software Developer\",\n    \"health_insurance_carrier\": \"Blue Shield\",\n    \"home_phone\": \"1234567890\",\n    \"home_phone_country\": \"US\",\n    \"mobile_phone\": \"9876543210\",\n    \"mobile_phone_country\": \"US\",\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    \"vision\": \"Normal\",\n    \"teeth_condition\": \"Good\",\n    \"orthodontic_appliances\": \"No\",\n    \"predominantly\": \"No\",\n    \"distinguishing_characteristics\": \"No\",\n    \"hearing_impairments\": \"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.1111,\n    \"longitude\": 23.1111\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'http://localhost:8000/api/egg-donors/20/demographics', [
  'body' => '{
  "user": {
    "first_name": "Agency",
    "middle_name": "Test",
    "last_name": "Surrogate",
    "timezone_id": 2,
    "status_id": 1,
    "is_private_donor": "no",
    "has_contact_details": "yes",
    "email": "agency.eggdonor@gmail.com"
  },
  "user_profile": {
    "ethnicity_id": 2,
    "date_of_birth": "1995-08-15",
    "birth_country_id": 1,
    "race_id": 3,
    "donor_type_id": 1,
    "religion_id": 4,
    "compensation": 50000,
    "citizenship": "USA",
    "language_id": 2,
    "bmi": "21.7",
    "education_level_id": 3,
    "occupation": "Software Developer",
    "health_insurance_carrier": "Blue Shield",
    "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": "Normal",
    "teeth_condition": "Good",
    "orthodontic_appliances": "No",
    "predominantly": "No",
    "distinguishing_characteristics": "No",
    "hearing_impairments": "No"
  },
  "address": {
    "street_address": "456 Central Ave",
    "residence": "Suite 302",
    "country_id": 1,
    "state_id": 10,
    "city": "New York",
    "zip_code": "10001",
    "latitude": 72.1111,
    "longitude": 23.1111
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Egg Donor_Account Profile_Demographics_example
using RestSharp;

var client = new RestClient("http://localhost:8000/api/egg-donors/20/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    \"first_name\": \"Agency\",\n    \"middle_name\": \"Test\",\n    \"last_name\": \"Surrogate\",\n    \"timezone_id\": 2,\n    \"status_id\": 1,\n    \"is_private_donor\": \"no\",\n    \"has_contact_details\": \"yes\",\n    \"email\": \"agency.eggdonor@gmail.com\"\n  },\n  \"user_profile\": {\n    \"ethnicity_id\": 2,\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    \"compensation\": 50000,\n    \"citizenship\": \"USA\",\n    \"language_id\": 2,\n    \"bmi\": \"21.7\",\n    \"education_level_id\": 3,\n    \"occupation\": \"Software Developer\",\n    \"health_insurance_carrier\": \"Blue Shield\",\n    \"home_phone\": \"1234567890\",\n    \"home_phone_country\": \"US\",\n    \"mobile_phone\": \"9876543210\",\n    \"mobile_phone_country\": \"US\",\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    \"vision\": \"Normal\",\n    \"teeth_condition\": \"Good\",\n    \"orthodontic_appliances\": \"No\",\n    \"predominantly\": \"No\",\n    \"distinguishing_characteristics\": \"No\",\n    \"hearing_impairments\": \"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.1111,\n    \"longitude\": 23.1111\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Egg Donor_Account Profile_Demographics_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "user": [
    "first_name": "Agency",
    "middle_name": "Test",
    "last_name": "Surrogate",
    "timezone_id": 2,
    "status_id": 1,
    "is_private_donor": "no",
    "has_contact_details": "yes",
    "email": "agency.eggdonor@gmail.com"
  ],
  "user_profile": [
    "ethnicity_id": 2,
    "date_of_birth": "1995-08-15",
    "birth_country_id": 1,
    "race_id": 3,
    "donor_type_id": 1,
    "religion_id": 4,
    "compensation": 50000,
    "citizenship": "USA",
    "language_id": 2,
    "bmi": "21.7",
    "education_level_id": 3,
    "occupation": "Software Developer",
    "health_insurance_carrier": "Blue Shield",
    "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": "Normal",
    "teeth_condition": "Good",
    "orthodontic_appliances": "No",
    "predominantly": "No",
    "distinguishing_characteristics": "No",
    "hearing_impairments": "No"
  ],
  "address": [
    "street_address": "456 Central Ave",
    "residence": "Suite 302",
    "country_id": 1,
    "state_id": 10,
    "city": "New York",
    "zip_code": "10001",
    "latitude": 72.1111,
    "longitude": 23.1111
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8000/api/egg-donors/20/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()
```