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

# Create Physical Sample

> Register a new physical sample

Creates a new physical sample record. Samples represent the substrates and materials that measurements are taken from.

<ParamField body="name" type="string">
  Name or label for the sample
</ParamField>

<ParamField body="growth_instrument_id" type="integer">
  ID of the growth instrument associated with this sample
</ParamField>

<ParamField body="sample_id" type="integer">
  Numeric sample identifier
</ParamField>

<ParamField body="detail_notes_id" type="string">
  UUID of existing detail notes to attach to the sample
</ParamField>

## Response

<ResponseField name="id" type="string">
  UUID of the created sample
</ResponseField>

<ResponseField name="name" type="string">
  Sample name
</ResponseField>

<ResponseField name="created_datetime" type="string">
  ISO 8601 timestamp of creation
</ResponseField>

<ResponseField name="last_updated" type="string">
  ISO 8601 timestamp of last update
</ResponseField>

<ResponseField name="user_id" type="string">
  ID of the user who created the sample
</ResponseField>

<ResponseField name="growth_instrument_id" type="integer">
  Growth instrument ID
</ResponseField>

<ResponseField name="sample_id" type="integer">
  Numeric sample identifier
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.atomscale.ai/physical_samples/" \
    -H "X-API-KEY: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "GaAs-003"
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.atomscale.ai/physical_samples/",
      headers={
          "X-API-KEY": "YOUR_API_KEY",
          "Content-Type": "application/json"
      },
      json={
          "name": "GaAs-003"
      }
  )
  sample = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
    "name": "GaAs-003",
    "created_datetime": "2024-01-15T11:00:00Z",
    "last_updated": "2024-01-15T11:00:00Z",
    "version": 1,
    "user_id": "user_abc123",
    "growth_instrument_id": null,
    "sample_id": null,
    "detail_notes_id": null,
    "physical_sample_metadata": null
  }
  ```
</ResponseExample>
