benchling_typescript_sdk
Version:
Typescript SDK for Benchling API
1,542 lines (1,478 loc) • 1.11 MB
YAML
paths:
/aa-sequences:
get:
description: List AA sequences
operationId: listAASequences
parameters:
- description: 'Number of results to return. Defaults to 50, maximum of 100.
'
in: query
name: pageSize
schema:
default: 50
maximum: 100
minimum: 0
nullable: false
type: integer
- description: Token for pagination
in: query
name: nextToken
schema:
type: string
- in: query
name: sort
schema:
default: modifiedAt:desc
description: 'Method by which to order search results. Valid sorts are name,
modifiedAt, and createdAt. Optionally add :asc or :desc to specify ascending
or descending order. Default is modifiedAt.
'
enum:
- createdAt
- createdAt:asc
- createdAt:desc
- modifiedAt
- modifiedAt:asc
- modifiedAt:desc
- name
- name:asc
- name:desc
nullable: false
type: string
- description: 'Datetime, in RFC 3339 format. Supports the > and < operators.
Time zone defaults to UTC. Restricts results to those created in the specified
range. e.g. > 2017-04-30. Date ranges can be specified with the following
nomenclature > YYYY-MM-DD AND <YYYY-MM-DD.
'
examples:
and-range:
summary: Filter for all models created within a certain range using the
AND operator.
value: '> 2022-03-01 AND < 2022-04-01'
full-rfc-3339-format:
summary: Filter for created models using the full RFC 3339 format
value: '> 2020-12-31T21:07:14-05:00'
greater-than-example:
summary: Filter for all models created after a certain date
value: '> 2022-03-01'
in: query
name: createdAt
schema:
type: string
- description: 'Datetime, in RFC 3339 format. Supports the > and < operators.
Time zone defaults to UTC. Restricts results to those modified in the specified
range. e.g. > 2017-04-30. Date ranges can be specified with the following
nomenclature > YYYY-MM-DD AND <YYYY-MM-DD.
'
examples:
and-range:
summary: Filter for all models modified within a certain range using the
AND operator.
value: '> 2022-03-01 AND < 2022-04-01'
full-rfc-3339-format:
summary: Filter for modified models using the full RFC 3339 format
value: '> 2020-12-31T21:07:14-05:00'
greater-than-example:
summary: Filter for all models modified after a certain date
value: '> 2022-03-01'
in: query
name: modifiedAt
schema:
type: string
- description: Name of an AA Sequence. Restricts results to those with the specified
name, alias, or entity registry ID.
in: query
name: name
schema:
type: string
- description: Name substring of an AA sequence. Restricts results to those
with names, aliases, or entity registry IDs that include the provided substring.
in: query
name: nameIncludes
schema:
type: string
- description: String of amino acids. Restricts results to AA sequences exactly
matching these amino acids (case-insensitive).
in: query
name: aminoAcids
schema:
type: string
- description: ID of a folder. Restricts results to those in the folder.
in: query
name: folderId
schema:
type: string
- description: 'Comma-separated list of entry IDs. Restricts results to AA sequences
mentioned in those entries.
'
in: query
name: mentionedIn
schema:
type: string
- description: ID of a project. Restricts results to those in the project.
in: query
name: projectId
schema:
type: string
- description: 'ID of a registry. Restricts results to those registered in this
registry. Specifying "null" returns unregistered items.
'
in: query
name: registryId
schema:
nullable: true
type: string
- description: 'ID of a schema. Restricts results to those of the specified
schema.
'
in: query
name: schemaId
schema:
type: string
- description: 'Filter based on schema field value (not display value). Restricts
results to those with a field whose value matches the filter. For Integer,
Float, and Date type fields, supports the >= and <= operators (but not <
or >). If any schemaField filters are present, the schemaId param must also
be present. Note that all operators must be separated from any values by
a single space.
'
in: query
name: schemaFields
schema:
$ref: '#/components/schemas/SchemaFieldsQueryParam'
- description: 'Archive reason. Restricts items to those with the specified
archive reason. Use "NOT_ARCHIVED" to filter for unarchived AA sequences.
Use "ANY_ARCHIVED" to filter for archived AA sequences regardless of reason.
Use "ANY_ARCHIVED_OR_NOT_ARCHIVED" to return items for both archived and
unarchived.
'
examples:
1_not_archived:
summary: Only include unarchived items (default).
value: NOT_ARCHIVED
2_archived_reason:
summary: Includes items archived for a specific reason.
value: Retired
3_any_archived:
summary: Includes items archived for any reason.
value: ANY_ARCHIVED
4_any_archived_or_not_archived:
summary: Includes both archived and unarchived items.
value: ANY_ARCHIVED_OR_NOT_ARCHIVED
in: query
name: archiveReason
schema:
type: string
- description: 'Comma-separated list of item IDs. Restricts results to those
that mention the given items in the description.
'
in: query
name: mentions
schema:
type: string
- description: 'Comma-separated list of ids. Matches all of the provided IDs,
or returns a 400 error that includes a list of which IDs are invalid.
'
in: query
name: ids
schema:
example: prtn_6gxJGfPh,prtn_u7fOvqWg
type: string
- description: 'Comma-separated list of entity registry IDs. Maximum of 100.
Restricts results to those that match any of the specified registry IDs.
'
in: query
name: entityRegistryIds.anyOf
schema:
example: TP001,TP002
type: string
- description: 'Comma-separated list of names. Maximum of 100. Restricts results
to those that match any of the specified names, aliases, or entity registry
IDs, case insensitive. Warning - this filter can be non-performant due
to case insensitivity.
'
in: query
name: names.anyOf
schema:
example: MyName1,MyName2
type: string
- description: 'Comma-separated list of names. Maximum of 100. Restricts results
to those that match any of the specified names, aliases, or entity registry
IDs, case sensitive.
'
in: query
name: names.anyOf.caseSensitive
schema:
example: MyName1,MyName2
type: string
- description: Comma separated list of users IDs
in: query
name: creatorIds
schema:
example: ent_a0SApq3z
type: string
- description: Comma separated list of user or app IDs. Maximum of 100.
in: query
name: authorIds.anyOf
schema:
example: ent_a0SApq3z,ent_b4AApz9b
type: string
- description: 'Comma-separated list of fields to return. Modifies the output
shape. To return all keys at a given level, enumerate them or use the wildcard,
''*''. For more information, [click here](https://docs.benchling.com/docs/getting-started-1#returning-query-parameter).
**Note**: Fields annotations, translations, and primers cannot be introspected
with the returning parameter, and any sub fields will be ignored. E.g.:
"aaSequences.annotations.id" will return the same as "aaSequences.annotations".
'
in: query
name: returning
schema:
example: aaSequences.id,aaSequences.modifiedAt
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesPaginatedList'
description: OK
headers:
Result-Count:
description: The total number of items that match the given query
schema:
type: integer
x-rate-limit-limit:
description: The number of allowed requests in the current rate-limit
period
schema:
type: integer
x-rate-limit-remaining:
description: The number of requests remaining in the current rate-limit
period
schema:
type: integer
x-rate-limit-reset:
description: The number of seconds remaining in the current rate-limit
period
schema:
type: integer
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: List AA sequences
tags:
- AA Sequences
post:
description: Create an AA sequence
operationId: createAASequence
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequenceCreate'
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequence'
description: Created
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
'503':
description: Deprecated, a 429 is returned for too many requests
summary: Create an AA sequence
tags:
- AA Sequences
/aa-sequences/{aa_sequence_id}:
get:
description: Get an AA sequence
operationId: getAASequence
parameters:
- in: path
name: aa_sequence_id
required: true
schema:
type: string
- description: 'Comma-separated list of fields to return. Modifies the output
shape. To return all keys at a given level, enumerate them or use the wildcard,
''*''. For more information, [click here](https://docs.benchling.com/docs/getting-started-1#returning-query-parameter).
**Note**: Fields annotations, translations, and primers cannot be introspected
with the returning parameter, and any sub fields will be ignored. E.g.:
"annotations.id" will return the same as "annotations".
'
in: query
name: returning
schema:
example: id,modifiedAt
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequence'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Get an AA sequence
tags:
- AA Sequences
patch:
description: Update an AA sequence
operationId: updateAASequence
parameters:
- in: path
name: aa_sequence_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequenceUpdate'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequence'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Update an AA sequence
tags:
- AA Sequences
/aa-sequences/{entity_registry_id}:upsert:
patch:
description: 'Create or update a registered AA sequence.
Schema field links can be populated using entity registry IDs or API IDs.
In the `value` field of the [Field](#/components/schemas/FieldWithResolution)
resource, the object `{"entityRegistryId": ENTITY_REGISTRY_ID}` may be provided
instead of the API ID if desired (see example value).
'
operationId: upsertAaSequence
parameters:
- in: path
name: entity_registry_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequenceUpsert'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequence'
description: OK
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequence'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Create or update a registered AA sequence.
tags:
- AA Sequences
/aa-sequences:archive:
post:
description: Archive AA sequences
operationId: archiveAASequences
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesArchive'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesArchivalChange'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Archive AA sequences
tags:
- AA Sequences
/aa-sequences:auto-annotate:
post:
description: Auto-annotate AA sequences with matching features from specified
Feature Libraries
operationId: autoAnnotateAaSequences
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AutoAnnotateAaSequences'
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncTaskLink'
description: 'This endpoint launches a [long-running task](#/Tasks/getTask)
and returns the Task ID of the launched task.
When successful, the task has an empty response.
'
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Auto-annotate AA sequences with matching features from specified Feature
Libraries
tags:
- AA Sequences
/aa-sequences:back-translate:
post:
description: Create back-translated DNA sequences from AA sequences.
operationId: backTranslate
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BackTranslate'
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncTaskLink'
description: 'This endpoint launches a [long-running task](#/Tasks/getTask)
and returns the Task ID of the launched task.
When successful, the task returns the resources of the DNA Sequence entities
that were back-translated.
'
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Create back-translated DNA sequences from AA sequences.
tags:
- AA Sequences
/aa-sequences:bulk-create:
post:
description: Bulk Create AA sequences. Limit of 1000 AA Sequences per request.
operationId: bulkCreateAASequences
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesBulkCreateRequest'
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncTaskLink'
description: 'This endpoint launches a [long-running task](#/Tasks/getTask)
and returns the Task ID of the launched task.
The task response contains the full list of AA Sequences that were created.
'
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Bulk Create AA sequences
tags:
- AA Sequences
/aa-sequences:bulk-get:
get:
description: Bulk get AA sequences by ID
operationId: bulkGetAASequences
parameters:
- description: 'Comma-separated list of IDs of AA sequences to get.
'
in: query
name: aaSequenceIds
required: true
schema:
type: string
- description: 'Comma-separated list of fields to return. Modifies the output
shape. To return all keys at a given level, enumerate them or use the wildcard,
''*''. For more information, [click here](https://docs.benchling.com/docs/getting-started-1#returning-query-parameter).
**Note**: Fields annotations, translations, and primers cannot be introspected
with the returning parameter, and any sub fields will be ignored. E.g.:
"aaSequences.annotations.id" will return the same as "aaSequences.annotations".
'
in: query
name: returning
schema:
example: aaSequences.id, aaSequences.modifiedAt
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesBulkGet'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Bulk get AA sequences by ID
tags:
- AA Sequences
/aa-sequences:bulk-update:
post:
description: Bulk Update AA sequences
operationId: bulkUpdateAASequences
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesBulkUpdateRequest'
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncTaskLink'
description: 'This endpoint launches a [long-running task](#/Tasks/getTask)
and returns the Task ID of the launched task.
When successful, the task returns a full list of [AA Sequence](#/AA%20Sequences/bulkGetAASequences)
resources
that were updated.
'
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Bulk Update AA sequences
tags:
- AA Sequences
/aa-sequences:bulk-upsert:
post:
description: 'All entities and their schemas must be within the same registry.
This operation performs the following actions:
1. Any existing objects are looked up in Benchling by the provided entity
registry ID.
2. Then, all objects are either created or updated accordingly, temporarily
skipping any schema field links between objects.
3. Schema field links can be populated using entity registry IDs or API IDs.
In the `value` field of the [Field](#/components/schemas/FieldWithResolution)
resource, the object `{"entityRegistryId": ENTITY_REGISTRY_ID}` may be provided
instead of the API ID if desired (see example value). You may link to objects
being created in the same operation.
4. Entities are registered, using the provided name and entity registry ID.
If any action fails, the whole operation is canceled and no objects are created
or updated.
'
operationId: bulkUpsertAASequences
parameters:
- description: 'Comma-separated list of fields to return. Modifies the output
shape. To return all keys at a given level, enumerate them or use the wildcard,
''*''. For more information, [click here](https://docs.benchling.com/docs/getting-started-1#returning-query-parameter).
'
in: query
name: returning
schema:
example: aaSequences.id,aaSequences.creator.handle
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesBulkUpsertRequest'
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncTaskLink'
description: 'This endpoint launches a [long-running task](#/Tasks/getTask)
and returns the Task ID of the launched task.
When successful, the task returns the resources of the objects that were
upserted.
'
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Bulk upsert AA sequences
tags:
- AA Sequences
/aa-sequences:find-matching-regions:
post:
description: Find matching regions for AA sequences
operationId: findMatchingRegionsAaSequences
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesFindMatchingRegion'
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncTaskLink'
description: 'This endpoint launches a [long-running task](#/Tasks/getTask)
and returns the Task ID of the launched task.
It is used to search for AA sequences that are either subsequences or
exact matches of the provided target sequences.
Each returned item represents the group of sequences that partially or
fully match the target sequence."
'
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Find matching regions for AA sequences
tags:
- AA Sequences
/aa-sequences:match-amino-acids:
post:
description: 'Returns AA Sequences that exactly match the provided amino acids.
'
operationId: matchAminoAcidsAaSequences
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesMatchBases'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesPaginatedList'
description: A filtered list of AA Sequences
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: List entities with matching amino acids
tags:
- AA Sequences
/aa-sequences:search-amino-acids:
post:
description: 'Returns AA Sequences that contain the provided amino acids. Search
indexing is asynchronous, so results my be not be available immediately after
creation.
'
operationId: searchAaSequences
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesSearchBases'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesPaginatedList'
description: A filtered list of AA Sequences
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Search AA Sequences
tags:
- AA Sequences
/aa-sequences:unarchive:
post:
description: Unarchive AA sequences
operationId: unarchiveAASequences
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesUnarchive'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AaSequencesArchivalChange'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Unarchive AA sequences
tags:
- AA Sequences
/app-canvases:
post:
description: 'Create an App Canvas that a Benchling App can write to and read
user interaction from.
'
operationId: createAppCanvas
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AppCanvasCreate'
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/AppCanvas'
description: Created
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
description: Forbidden
summary: Create an App Canvas
tags:
- Apps
/app-canvases/{canvas_id}:
get:
description: Get the current state of the App Canvas, including user input elements.
operationId: getAppCanvas
parameters:
- example: cnvs_Q4mPJ34a
in: path
name: canvas_id
required: true
schema:
type: string
- description: Comma-separated list of fields to return. Modifies the output
shape. To return all keys at a given level, enumerate them or use the wildcard,
'*'. For more information, [click here](https://docs.benchling.com/docs/getting-started-1#returning-query-parameter).
in: query
name: returning
schema:
example: id,modifiedAt
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AppCanvas'
description: OK
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
description: Not Found
summary: Get App Canvas
tags:
- Apps
patch:
description: Update App Canvas
operationId: updateAppCanvas
parameters:
- example: cnvs_Q4mPJ34a
in: path
name: canvas_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AppCanvasUpdate'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AppCanvas'
description: OK
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
description: Not Found
summary: Update App Canvas
tags:
- Apps
/app-canvases:archive:
post:
description: Archive app canvases
operationId: archiveAppCanvases
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AppCanvasesArchive'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AppCanvasesArchivalChange'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Archive app canvases
tags:
- Apps
/app-canvases:unarchive:
post:
description: Unarchive app canvases
operationId: unarchiveAppCanvases
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AppCanvasesUnarchive'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AppCanvasesArchivalChange'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Unarchive app canvases
tags:
- Apps
/app-configuration-items:
get:
description: Get app configuration items
operationId: listAppConfigurationItems
parameters:
- description: Token for pagination
in: query
name: nextToken
schema:
type: string
- description: Number of results to return. Defaults to 50, maximum of 100.
in: query
name: pageSize
schema:
default: 50
maximum: 100
minimum: 0
nullable: false
type: integer
- description: 'Datetime, in RFC 3339 format. Supports the > and < operators.
Time zone defaults to UTC. Restricts results to those modified in the specified
range. e.g. > 2017-04-30. Date ranges can be specified with the following
nomenclature > YYYY-MM-DD AND <YYYY-MM-DD.
'
examples:
and-range:
summary: Filter for all models modified within a certain range using the
AND operator.
value: '> 2022-03-01 AND < 2022-04-01'
full-rfc-3339-format:
summary: Filter for modified models using the full RFC 3339 format
value: '> 2020-12-31T21:07:14-05:00'
greater-than-example:
summary: Filter for all models modified after a certain date
value: '> 2022-03-01'
in: query
name: modifiedAt
schema:
type: string
- description: App id to which the configuration belongs.
example: app_e59sjL23Pqn30xHg
in: query
name: appId
schema:
type: string
- description: 'Comma-separated list of ids. Matches all of the provided IDs,
or returns a 400 error that includes a list of which IDs are invalid.
'
in: query
name: ids
schema:
example: aci_VfVOART1,aci_RFhDGaaC
type: string
- in: query
name: sort
schema:
default: modifiedAt:desc
description: 'Method by which to order search results. Valid sorts are modifiedAt
(modified time, most recent first) and createdAt (created time, most recent
first). Optionally add :asc or :desc to specify ascending or descending
order.
'
enum:
- createdAt
- createdAt:asc
- createdAt:desc
- modifiedAt
- modifiedAt:asc
- modifiedAt:desc
nullable: false
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AppConfigurationPaginatedList'
description: OK
headers:
Result-Count:
description: The total number of items that match the given query
schema:
type: integer
x-rate-limit-limit:
description: The number of allowed requests in the current rate-limit
period
schema:
type: integer
x-rate-limit-remaining:
description: The number of requests remaining in the current rate-limit
period
schema:
type: integer
x-rate-limit-reset:
description: The number of seconds remaining in the current rate-limit
period
schema:
type: integer
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
description: Not Found
summary: Get app configuration items
tags:
- Apps
post:
description: Create app configuration item
operationId: createAppConfigurationItem
requestBody:
content:
application/json:
example: "{\n \"appId\": \"app_J39na03L1nsLS34o\",\n \"path\": [\n \
\ \"My Schema 1\",\n \"My Field 1\"\n ],\n \"type\": \"field\"\
,\n \"value\": \"tsf_HXUnClU9\"\n}\n"
schema:
$ref: '#/components/schemas/AppConfigItemCreate'
responses:
'201':
content:
application/json:
example: "{\n \"apiURL\": \"string\",\n \"app\": {\n \"id\": \"\
string\"\n },\n \"createdAt\": \"2024-03-14T21:52:32.929Z\",\n \
\ \"id\": \"string\",\n \"type\": \"field\",\n \"modifiedAt\": \"\
2024-03-14T21:52:32.929Z\",\n \"path\": [\n \"My Schema 1\",\n\
\ \"My Field 1\"\n ],\n \"value\": \"tsf_HXUnClU9\"\n}\n"
schema:
$ref: '#/components/schemas/AppConfigItem'
description: Created
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Create app configuration item
tags:
- Apps
/app-configuration-items/{item_id}:
get:
description: Get app configuration item
operationId: getAppConfigurationItemById
parameters:
- example: aci_e59sjL23Pqn30xHg
in: path
name: item_id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
example: "{\n \"apiURL\": \"string\",\n \"app\": {\n \"id\": \"\
string\"\n },\n \"createdAt\": \"2024-03-14T21:54:20.435Z\",\n \
\ \"id\": \"string\",\n \"type\": \"field\",\n \"modifiedAt\": \"\
2024-03-14T21:54:20.435Z\",\n \"path\": [\n \"My Schema 1\",\n\
\ \"My Field 1\"\n ]\n}\n"
schema:
$ref: '#/components/schemas/AppConfigItem'
description: OK
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
description: Not Found
summary: Get app configuration item
tags:
- Apps
patch:
description: Update app configuration item
operationId: updateAppConfigurationItem
parameters:
- example: aci_e59sjL23Pqn30xHg
in: path
name: item_id
required: true
schema:
type: string
requestBody:
content:
application/json:
example: "{\n \"apiURL\": \"string\",\n \"app\": {\n \"id\": \"string\"\
\n },\n \"createdAt\": \"2024-03-14T21:59:01.233Z\",\n \"id\": \"\
string\",\n \"type\": \"field\",\n \"modifiedAt\": \"2024-03-14T21:59:01.233Z\"\
,\n \"path\": [\n \"My Schema 1\",\n \"My Field 1\"\n ]\n}\n"
schema:
$ref: '#/components/schemas/AppConfigItemUpdate'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AppConfigItem'
description: OK
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
description: Not Found
summary: Update app configuration item
tags:
- Apps
/app-configuration-items:bulk-create:
post:
description: Bulk Create app configuration items
operationId: bulkCreateAppConfigurationItems
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AppConfigItemsBulkCreateRequest'
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncTaskLink'
description: Accepted
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Bulk Create app configuration items. Limit of 1000 App Config Items
per request.
tags:
- Apps
/app-configuration-items:bulk-update:
post:
description: Bulk Update app configuration items
operationId: bulkUpdateAppConfigurationItems
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AppConfigItemsBulkUpdateRequest'
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncTaskLink'
description: Accepted
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
summary: Bulk Update app configuration items. Limit of 1000 App Config Items
per request.
tags:
- Apps
/app-sessions:
post:
description: 'Create a new app session. Sessions cannot be archived once created.
'
operationId: createAppSession
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AppSessionCreate'
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/AppSession'
description: Created
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
description: Forbidden
summary: Create a new app session
tags:
- Apps
/app-sessions/{id}:
get:
description: Get an app session
operationId: getAppSessionById
parameters:
- example: sesn_J2PGE0Z516Y
in: path
name: id
required: true
schema:
type: string
- description: Comma-separated list of fields to return. Modifies the output
shape. To return all keys at a given level, enumerate them or use the wildcard,
'*'. For more information, [click here](https://docs.benchling.com/docs/getting-started-1#returning-query-parameter).
in: query
name: returning
schema:
example: id,modifiedAt
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AppSession'
description: OK
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
description: Not Found
summary: Get an app session
tags:
- Apps
patch:
description: Update app session
operationId: updateAppSession
parameters:
- in: path
name: id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AppSessionUpdate'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AppSession'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
description: Not Found
summary: Update app session
tags:
- Apps
/apps:
get:
description: List apps
operationId: listBenchlingApps
parameters:
- description: Number of results to return.
in: query
name: pageSize
schema:
default: 50
maximum: 100
nullable: false
type: integer
- description: Token for pagination
in: query
name: nextToken
schema:
type: string
- description: 'Method by which to order search results. Valid sorts are name,
modifiedAt, and createdAt. Optionally add :asc or :desc to specify ascending
or descending order. Default is modifiedAt.
'
in: query
name: sort
schema:
default: modifiedAt
enum:
- createdAt
- createdAt:asc
- createdAt:desc
- modifiedAt
- name
- modifiedAt:asc
- name:asc
- modifiedAt:desc
- name:desc
nullable: false
type: string
- description: 'Comma-separated list of ids. Matches all of the provided IDs,
or returns a 400 error that includes a list of which IDs are invalid.
'
in: query
name: ids
schema:
example: app_J39na03L1nsLS34o,app_ae92kBv9aNSl593z,app_e59sjL23Pqn30xHg
type: string
- description: 'Datetime, in RFC 3339 format. Supports the > and < operators.
Time zone defaults to UTC. Restricts results to those modified in the specified
range. e.g. > 2017-04-30. Date ranges can be specified with the following
nomenclature > YYYY-MM-DD AND <YYYY-MM-DD.
'
examples:
and-range:
summary: Filter for all models modified within a certain range using the
AND operator.
value: '> 2022-03-01 AND < 2022-04-01'
full-rfc-3339-format:
summary: Filter for modified models using the full RFC 3339 format
value: '> 2020-12-31T21:07:14-05:00'
greater-than-example:
summary: Filter for all models modified after a certain date
value: '> 2022-03-01'
in: query
name: modifiedAt
schema:
type: string
- description: Name of an app. Restricts results to those with the specified
name.
in: query
name: name
schema:
type: string
- description: Name substring of an app. Restricts results to those with names
that include the provided substring.
in: query
name: nameIncludes
schema:
type: string
- description: 'Comma-separated list of app names. Maximum of 100. Restricts
results to those that match any of the specified names, case insensitive. Warning
- this filter can be non-performant due to case insensitivity.
'
in: query
name: names.anyOf
schema:
example: MyName1, MyName2
type: string
- description: 'Comma-separated list of app names. Maximum of 100. Restricts
results to those that match any of the specified names, case sensitive.
'
in: query
name: names.anyOf.caseSensitive
schema:
example: MyName1,MyName2
type: string
- description: Comma separated list of users IDs
in: query
name: creatorIds
schema:
example: ent_a0SApq3z
type: string
- description: Comma-separated list of organization and/or team API IDs. Restricts
results to apps that are members of all given groups.
in: query
name: memberOf
schema:
type: string
- description: Comma-separated list of organization and/or team API IDs. Restricts
results to apps that are admins of all given groups.
in: query
name: adminOf
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/BenchlingAppsPaginatedList'
description: OK
headers:
Result-Count:
description: The total number of items that match the given query
schema:
type: integer
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
description: Forbidden
summary: List apps
tags:
- Apps
post:
deprecated: true
description: Create an app
operationId: createBenchlingApp
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BenchlingAppCreate'
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/BenchlingApp'
description: Created
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
description: Forbidden
'409':
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictError'
description: Conflict
summary: Create an app
tags:
- Apps
/apps/{app_id}:
get:
description: Get an app by ID
operationId: getBenchlingAppByID
parameters:
- example: app_J39na03L1nsLS34o
in: path
name: app_id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/BenchlingApp'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
description: Bad Request
'403':