Skip to main content
POST
/
projects
/
{project_id}
/
physical_samples
curl -X POST "https://api.atomscale.ai/projects/d290f1ee-6c54-4b01-90e6-d701748f0851/physical_samples" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "physical_sample_ids": [
      "a1b2c3d4-5678-90ab-cdef-1234567890ab",
      "b2c3d4e5-6789-01bc-defg-2345678901bc"
    ],
    "set": false
  }'
[
  "a1b2c3d4-5678-90ab-cdef-1234567890ab",
  "b2c3d4e5-6789-01bc-defg-2345678901bc"
]
Updates the association between physical samples and a project.
project_id
string
required
The UUID of the project
physical_sample_ids
array
required
Array of physical sample UUIDs to associate with the project
set
boolean
default:"false"
If true, replaces all existing sample associations with the provided list. If false, adds the provided samples to the existing associations.

Response

Returns an array of the physical sample UUIDs now associated with the project.
curl -X POST "https://api.atomscale.ai/projects/d290f1ee-6c54-4b01-90e6-d701748f0851/physical_samples" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "physical_sample_ids": [
      "a1b2c3d4-5678-90ab-cdef-1234567890ab",
      "b2c3d4e5-6789-01bc-defg-2345678901bc"
    ],
    "set": false
  }'
[
  "a1b2c3d4-5678-90ab-cdef-1234567890ab",
  "b2c3d4e5-6789-01bc-defg-2345678901bc"
]