Study

Create Study

Create a study in a folder.

Always required

FieldDescription
descriptionDescription of the study. May be an empty string, up to 2048 characters.
folderIdTarget folder ID. List folders with the folder list endpoint.
A schema pairOne schema-fields pair, see below.

Schema fields

Provide exactly one of these pairs. Do not mix them:

  • schemaId with schemaFields (preferred). Keys in schemaFields must be field system names or field API IDs, not display names.
  • The deprecated studySchemaId with the deprecated tags. Keys in tags must be field display names or field API IDs.

List schemas with the study-schema list endpoint. See the request example for supported field value shapes.

name

  • Required when the study schema has no naming template.
  • Must be omitted when the schema has a naming template (the server generates the name).

designEntryId

  • Required when the schema's studyType is CUSTOM.
  • Must be omitted for every other studyType.
  • Read studyType from the study-schema get-by-ID endpoint. List entries with the entry list endpoint. A design entry can belong to only one study.

displayId

Behavior depends on the schema's idGenerationMode, which you can read from the study-schema get-by-ID endpoint:

  • AUTO_GENERATED_FROM_PREFIX: omit displayId. The server assigns an ID from the schema prefix. Providing displayId fails validation.
  • MANUAL: you may provide displayId (must be unique within the tenant), or omit it to have the server generate one.

authorIds

  • Omit to default authors to the creator.
  • Provide an array of user or app IDs to set a specific author list. List users with the user list endpoint.
  • Pass an empty array to create the study without authors.
  • Do not pass null.

The request example includes name, designEntryId, and displayId together for a Custom study on a MANUAL schema with no naming template. Other schema configurations require a different subset of these fields.

post/api/v3/study

Request

  • Base URL
    https://{tenant_name}.benchling.com
  • Auth
    HTTP bearer

Request body

authorIdsstring[]

The IDs of the users or apps to set as study authors. Omit to default to the creator. Pass an empty array to create the study without authors.

descriptionstring required
designEntryIdstring

The ID of an entry to use as the study design entry. Optional for custom studies. Should always be omitted for all other study types.

displayIdstring

The ID to assign to the study. Only allowed when the study schema is configured for manual ID assignment (i.e., idGenerationMode is MANUAL). Must be unique within the tenant.

folderIdstring required

The ID of the folder to create the study in.

namestring

The name of the study. Should be omitted if using a study schema with a naming template.

schemaFieldsobject
schemaIdstring

The ID of the schema to associate with this object.

studySchemaIdstring

Deprecated. Use schemaId instead. The ID of the study schema.

tagsCreateStudyInputTags

Deprecated. Use schemaFields instead. Schema fields to set on the study. Must correspond with the study schema's field definitions. Every field should have its display name (not system name) or API ID as a key, mapping to the value of the field. See the example for the supported field value types and formatting. For date and datetime fields, use the RFC 3339 format. For single link fields, supply a single object specifying the id of the item you want to link, (eg. {'targetFiles': [{'id': 'bfi_jdf8BV24'}]}). For multi-link fields, supply an array of objects specifying the ids of the items you want to link, (eg. {'targetFiles': [{'id': 'bfi_jdf8BV24'}, {'id': 'bfi_laGnl8vB'}]}). Must be paired with the deprecated studySchemaId, not schemaId. Prefer schemaId with schemaFields instead.

Response

Created

__typenamestring
archiveDatetimestring datetime nullable

No longer supported.

archiveReasonstring nullable
archivedboolean
authorsstring uri nullable

Users and apps designated as authors of the study.

createdAtstring datetime nullable
descriptionstring nullable
displayIdstring nullable

Human-readable identifier for the study. For schemas with auto-generated IDs, assigned by the server at creation. For MANUAL schemas, may be set at creation or update.

idstring
modifiedAtstring datetime nullable
namestring
phase'DESIGN' | 'EXECUTION' | 'COMPLETE'

Changes

No recorded changes to this operation across all 1 revision of this API.