Sample Display En

Web service to retrieve data from a sample #

Call method #

index.php?module=apiv1sampleDisplay&uid=xxx&uuid=yyy&token=zzz&template_name=aaa
index.php?module=sampleDetail&uid=xxx&uuid=yyy&token=zzz&template_name=aaa

Parameters #

{: .datatable}

ParameterContent
uidSample UID (required if UUID not filled in)
uuidUUID of the sample (required if UID not filled in)
tokenidentification token. Information required if the collection is not public
loginlogin associated to the token. Both information must be provided for the identification to be performed
template_nameName of thetemplate used to format the information. This information must be provided if the token is not filled in (public collection)
localeLanguage code used for error messages or date formatting. Default: fr, otherwise ’en’ or ‘us’

{.table .table-bordered .table-hover}

Returned data #

Format #

The data is returned in JSON format

Content #

Collection not public or with token provided #

By default, i.e. if no template_name is defined, the following information is embedded in the JSON record:

FieldDescription
uidsample uid
dbuid_origininitial sample identifier, if entered in another database
collection_namecollection name
sample_type_namesample_type_name
sample_creation_datesample creation date
sampling_datesampling date
metadata_listassociated metadata list
expiration_datesample expiration date
campaign_namename of sampling campaign
multiple_valueinitial quantity (sub-sampling)
multiple_unitsub-sampling unit
multiple_valueinitial quantity (sub-sampling)
wgs84_xlongitude of sampling point
wgs84_ylatitude of sampling point
country_namename of sampling country
country_code2country code, two digits long
object_status_namesample status
change_datedate sample was last changed
uuiduuid of the sample
trashedis 1 if the sample has been trashed (waiting to be deleted)
location_accuracyprecision of the location of the collection place
object_commentcomment on the sample
parent_uidparent’s uid
parent_identifierbusiness identifier of parent
parent_uuidparent uuid
parent_identifierslist of other identifiers of the parent
container_type_namename of the container type associated with the sample type
clp_classificationCLP risk associated with the container
protocol_namecollection protocol name
protocol_yearprotocol year
protocol_versionprotocol version
operation_namename of the operation associated with the protocol
operation_versionoperation version
identifierslist of secondary identifiers of the sample
movement_datedate of last recorded movement
movement_type_nametype of last recorded movement
sampling_place_namesampling station
sampling_place_namesampling station
column_numbernumber of the column where the sample is stored in the container
container_uiduid of the container
container_identifierbusiness identifier of the container
container_uuidcontainer uuid
container_type_namecontainer type
referent_namereferent name
referent_emailreferent’s email
address_namefirst line of the referent’s address
address_line2second line of the referent’s address
address_line3third line of the referent’s address
address_citycity of referrer
address_countrycountry of referrer
referent_phonereferent’s phone number
referent_firstnamereferent’s first name
academical_directoryname of referent’s academic structure (e.g., ORCID)
academical_linkreferent’s academic access link
borrowing_datesample borrowing date
expected_return_dateexpected return date of sample
borrower_namename of borrower
subsample_quantityquantity remaining in sample (subsampling)
eventslist of events recorded for the sample
containerlist of container hierarchy

{.table .table-bordered .table-hover}

Public collection or template name provided #

The content depends exclusively on the settings made in the template.

Error codes #

Error codeMeaning
500Internal Server Error
401Unauthorized
520Unknown error
404Not Found

{.table .table-bordered .table-hover}

Translated with www.DeepL.com/Translator (free version)