cURL
Post apiassets relationships
Create an OUTGOING relationship from asset pk to to_asset_id.
Authoring a link is a metadata write on the source, so the caller needs
WRITE_METADATA on pk; they must also be able to see the target
(READ_METADATA on to_asset) so links can’t probe hidden assets.
Self-links and exact duplicates (same from/to/type) are rejected.
POST
cURL
Path Parameters
Body
Create payload for POST /api/assets/{id}/relationships/.
The source (from_asset) is the path asset; to_asset_id is the
target. analysis_mode is one of the model's choices (or blank/null).
Maximum string length:
255non_destructive- Non-destructivealtering- Alteringdestructive- Destructivein_situ- In-situex_situ- Ex-situinvasive- Invasivenon_invasive- Non-invasive
Available options:
non_destructive, altering, destructive, in_situ, ex_situ, invasive, non_invasive Maximum string length:
5000Response
201 - application/json
analysis_of- Analysis Ofpart_of- Part Ofinstrument_used_to- Instrument Used Tocreated_sample- Created Samplederived_from- Derived Frommeasured_by- Measured Bycalibrated_with- Calibrated Withprepared_from- Prepared Fromsampled_from- Sampled Fromaliquot_of- Aliquot Ofsupersedes- Supersedesrevision_of- Revision Ofconforms_to- Conforms Toannotated_with- Annotated Withvalidated_by- Validated Bycontrols_for- Controls Forbaseline_for- Baseline Fortrained_on- Trained Onparameterized_by- Parameterized Byimplements- Implementscited_by- Cited Bycites- Citesapplied_to- Applied Toassigns_perturbation_to- Assigns Perturbation Toboiled_into- Boiled Intobuilds_library- Builds Librarycarbonated_into- Carbonated Intocheckpoint_of- Checkpoint Ofclarified_into- Clarified Intoconditioned_into- Conditioned Intoconfig_for- Config Forconverts- Convertscooled_into- Cooled Intocreator- Creatordata_from- Data Fromderives_neighborhoods_from- Derives Neighborhoods Fromfeeds_into- Feeds Intofermented_into- Fermented Intofigure_from- Figure Fromfunded_by- Funded Byharvested_as- Harvested Asinforms_design- Informs Designintegrates- Integrateslautered_into- Lautered Intomaps_into_spatial_context- Maps Into Spatial Contextmashed_into- Mashed Intomilled_into- Milled Intomodels_effect_on- Models Effect Onpackaged_into- Packaged Intopitched_into- Pitched Intoprepared_library_from- Prepared Library Fromprioritizes- Prioritizesprocessed_into- Processed Intoproduces- Producesproduces_material- Produces Materialproduces_record- Produces Recordqc_of- QC Ofqualified_by- Qualified Byrecords_qc- Records QCrecords_telemetry- Records Telemetryreleased_as- Released Asreleased_for- Released Forsample_produced_by- Sample Produced Bysequenced_as- Sequenced Asspecified_by- Specified Bysplit_into- Split Intostep_of- Step Ofsynthesizes- Synthesizestreated_into- Treated Intotrends- Trendsused_for_training- Used For Training
Available options:
analysis_of, part_of, instrument_used_to, created_sample, derived_from, measured_by, calibrated_with, prepared_from, sampled_from, aliquot_of, supersedes, revision_of, conforms_to, annotated_with, validated_by, controls_for, baseline_for, trained_on, parameterized_by, implements, cited_by, cites, applied_to, assigns_perturbation_to, boiled_into, builds_library, carbonated_into, checkpoint_of, clarified_into, conditioned_into, config_for, converts, cooled_into, creator, data_from, derives_neighborhoods_from, feeds_into, fermented_into, figure_from, funded_by, harvested_as, informs_design, integrates, lautered_into, maps_into_spatial_context, mashed_into, milled_into, models_effect_on, packaged_into, pitched_into, prepared_library_from, prioritizes, processed_into, produces, produces_material, produces_record, qc_of, qualified_by, records_qc, records_telemetry, released_as, released_for, sample_produced_by, sequenced_as, specified_by, split_into, step_of, synthesizes, treated_into, trends, used_for_training incoming- incomingoutgoing- outgoing
Available options:
incoming, outgoing non_destructive- Non-destructivealtering- Alteringdestructive- Destructivein_situ- In-situex_situ- Ex-situinvasive- Invasivenon_invasive- Non-invasive
Available options:
non_destructive, altering, destructive, in_situ, ex_situ, invasive, non_invasive