openapi: 3.0.0 info: title: Labguru Antibodies Sections API description: "Labguru API is a JSON / REST based API, get started by reviewing the documentation below or code samples.
\n Join our dedicated [Slack channel](https://join.slack.com/t/labgurus/shared_invite/zt-199glfagl-QZQ_bKl7vLAi8CQSuNrRug)\n to be in direct contact with our API team and be informed about the latest updates.
\n ***[API introduction and overview](https://help.labguru.com/en/articles/6149483-api-introduction-and-overview)***" version: v1 tags: - name: Sections paths: /api/v1/sections: post: summary: Add a section tags: - Sections parameters: [] responses: '201': description: section created '422': description: container_type cannot be blank '401': description: 'Error: Unauthorized' requestBody: content: application/json: schema: $ref: '#/components/schemas/createSection' required: true /api/v1/sections/sort: post: summary: Sort sections tags: - Sections description: Change the arrangement of sections on a Labguru page parameters: [] responses: '201': description: section moved '422': description: container_type cannot be blank '401': description: 'Error: Unauthorized' requestBody: content: application/json: schema: $ref: '#/components/schemas/moveSection' required: true /api/v1/sections/{id}: put: summary: Update section tags: - Sections parameters: - name: id in: path required: true description: the id of the section schema: type: integer responses: '200': description: section updated '422': description: container_id cannot be blank '401': description: 'Error: Unauthorized' requestBody: content: application/json: schema: $ref: '#/components/schemas/updateSection' required: true get: summary: Get section by id tags: - Sections parameters: - name: token in: query required: true schema: type: string - name: id in: path required: true description: the id of the section schema: type: integer responses: '200': description: success '404': description: page not found components: schemas: updateSection: type: object required: - token properties: token: type: string example: YOUR TOKEN IS HERE item: type: object properties: name: type: string description: the name of the section container_id: type: integer description: the id of the experiment/protocol/report the section belongs to container_type: type: string description: the type of the container - Projects::Experiment\Knowledgebase::Protocol\Knowledgebase::Report example: Projects::Experiment position: type: integer description: the section position moveSection: type: object required: - token - container_id - container_type - list properties: token: type: string example: YOUR TOKEN IS HERE container_id: type: integer description: The id of the container container_type: type: string default: Projects::Experiment description: The container type of the section list: type: array items: type: integer description: "An array of section IDs.
\n The order of IDs in this list defines the new arrangement of sections on the page" example: - 110 - 111 createSection: type: object required: - token properties: token: type: string example: YOUR TOKEN IS HERE item: type: object required: - name - container_id - container_type properties: name: type: string description: the name of the section container_id: type: integer description: the id of the experiment/protocol/report the section belongs to container_type: type: string description: the type of the container - Projects::Experiment | Knowledgebase::Protocol | Knowledgebase::AbstractDocument example: Projects::Experiment position: type: integer description: the section position