Skip to navigation

Create a strain

Creates a strain for your team.

Authentication

AuthorizationBearer

OAuth authentication of the form <token>.

Headers

X-Studies-Api-VersionstringOptional

Request

The strain to create.
namestringRequired1-255 characters
The name of the strain.
speciesIdstringRequiredformat: "^spc_[A-Za-z0-9]+$"
The stable external identifier of a species.
activebooleanRequired
Whether the strain is active.

Response headers

X-RateLimit-LimitintegerOptional
The number of requests permitted in the current rate limit window.
X-RateLimit-RemainingintegerOptional

The number of requests still available in the current rate limit window. When several limits apply, this reflects the per-API-key limit, so a request can be rejected while this value is above zero.

X-RateLimit-ResetintegerOptional
The number of seconds until the current rate limit window resets.

Response

The strain was created.
idstringformat: "^stn_[A-Za-z0-9]+$"
The stable external identifier of a strain.
namestring<=255 characters
The name of the strain.
speciesobject
A species configured for your team.
activeboolean
Whether the strain is active.
created_atdatetime

UTC timestamp with microsecond precision, always suffixed with Z, in the form yyyy-MM-ddTHH:mm:ss.SSSSSSZ.

updated_atdatetime

UTC timestamp with microsecond precision, always suffixed with Z, in the form yyyy-MM-ddTHH:mm:ss.SSSSSSZ.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error