Tricentis Defect API

Defect API

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/v3/projects/{projectId}/defects Submit a defect · Submit a Defect #
Ask an LLM
“How do I log a new bug in qTest?”
“Can I submit a defect with attachments in one call?”
Tell an agent
Submit a new defect in project {project}.
Log a defect in project {project} with properties {properties}.
GET /api/v3/projects/{projectId}/defects/last-change List recently updated defects · Gets recently updated Defects #
Ask an LLM
“Which defects changed since yesterday?”
“Can I pull defects updated within a time window?”
Tell an agent
List defects in project {project} updated since {start}.
Show defects changed between {start} and {end} in project {project}.
GET /api/v3/projects/{projectId}/defects/{defectId} Get a defect · Gets a Defect #
Ask an LLM
“How do I look up a single defect?”
“What are the current properties of this bug?”
Tell an agent
Get defect {defect} in project {project}.
Show the details of bug {defect}.
PUT /api/v3/projects/{projectId}/defects/{defectId} Update a defect · Updates a Defect #
Ask an LLM
“How do I change the status or severity of a defect?”
“Can I update a bug's fields after it's been submitted?”
Tell an agent
Update defect {defect} in project {project} with properties {properties}.
Change the fields on bug {defect}.
GET /api/v3/projects/{projectId}/defects/{idOrKey}/comments List comments on a defect · Gets all Comments of a Defect #
Ask an LLM
“What comments are on this defect?”
“Can I page through a bug's discussion thread?”
Tell an agent
Show all comments on defect {defect} in project {project}.
List the discussion on bug {defect}.
POST /api/v3/projects/{projectId}/defects/{idOrKey}/comments Comment on a defect · Adds a Comment to a Defect #
Ask an LLM
“How do I add a comment to a defect?”
“Can I post reproduction notes on a bug?”
Tell an agent
Add the comment {content} to defect {defect} in project {project}.
Post repro notes on bug {defect}: {content}.
GET /api/v3/projects/{projectId}/defects/{idOrKey}/comments/{commentId} Get one comment on a defect · Gets a Comment of a Defect #
Ask an LLM
“How do I fetch a single comment on a defect?”
“Who left a particular comment on a bug?”
Tell an agent
Get comment {comment} on defect {defect} in project {project}.
Show bug comment {comment} on {defect}.
PUT /api/v3/projects/{projectId}/defects/{idOrKey}/comments/{commentId} Edit a comment on a defect · Updates a Comment of a Defect #
Ask an LLM
“Can I edit a comment on a defect?”
“How do I correct a note on a bug?”
Tell an agent
Change comment {comment} on defect {defect} in project {project} to {content}.
Edit bug comment {comment} on {defect}.
DELETE /api/v3/projects/{projectId}/defects/{idOrKey}/comments/{commentId} Delete a comment from a defect · Deletes a Comment of a Defect #
Ask an LLM
“How do I remove a comment from a defect?”
“Can bug comments be deleted?”
Tell an agent destructive · confirm first
Delete comment {comment} from defect {defect} in project {project}.
Remove bug comment {comment} on {defect}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tricentis:tricentis-defect-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tricentis-defect-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Introduction to qTest API Specification

    How to use interactive API Doc

    The bearer token can be found at `[qtestUrl/p/{projectId}/portal/project#tab=resource]` under the API & SDK tab.'
  version: v3.0
  title: qTest Manager API Version 3.0 Defect API
servers:
- url: https://apitryout.qtestnet.com/
tags:
- name: defect
  description: Defect API
paths:
  /api/v3/projects/{projectId}/defects:
    post:
      tags:
      - defect
      summary: Submit a Defect
      description: To submit an internal Defect
      operationId: submitDefect
      parameters:
      - name: projectId
        in: path
        description: ID of the project
        required: true
        schema:
          type: integer
          format: int64
      responses:
        201:
          description: Successfully submitted a defect.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefectResource'
        400:
          description: Field value constraint is invalid.
        403:
          description: User does not have permission to submit a defect.
        500:
          description: Internal Server Error.
      security:
      - Authorization: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DefectResource'
        description: '<em>properties:</em> a JSONArray of field-value pairs


          <em>attachments:</em> a JSONArray of Attachment objects'
        required: true
  /api/v3/projects/{projectId}/defects/last-change:
    get:
      tags:
      - defect
      summary: Gets recently updated Defects
      description: To retrieve Defects which have been recently updated after a specified time
      operationId: getLastChanged
      parameters:
      - name: projectId
        in: path
        description: ID of the project
        required: true
        schema:
          type: integer
          format: int64
      - name: startTime
        in: query
        description: 'The specified time since when the Defects have been updated. It needs to be URL encoded: <em>yyyy-MM-dd''T''HH:mm:ss.SSSZ</em> or <em>yyyy-MM-dd''T''HH:mm:ssZZ</em>'
        required: true
        schema:
          type: string
      - name: endTime
        in: query
        description: Do not support at this time. Use the current time only.
        required: false
        schema:
          type: string
      - name: size
        in: query
        description: The result is paginated. By the default, the number of objects in each page is 100. You can specify your custom number in this parameter. The maximum page size is 999.
        required: false
        schema:
          type: integer
          format: int32
          default: 100
      - name: page
        in: query
        description: By default the first page is returned but you can specify any page number to retrieve objects
        required: false
        schema:
          type: integer
          format: int64
          default: 1
      responses:
        200:
          description: successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DefectResource'
      security:
      - Authorization: []
  /api/v3/projects/{projectId}/defects/{defectId}:
    get:
      tags:
      - defect
      summary: Gets a Defect
      description: 'To retrieve a Defect


        qTest Manager version: 6+'
      operationId: getDefect
      parameters:
      - name: projectId
        in: path
        description: ID of the project
        required: true
        schema:
          type: integer
          format: int64
      - name: defectId
        in: path
        description: ID of the defect.
        required: true
        schema:
          type: string
      responses:
        200:
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefectResource'
      security:
      - Authorization: []
    put:
      tags:
      - defect
      summary: Updates a Defect
      description: 'To update a Defect


        qTest Manager version: 6+'
      operationId: updateDefect
      parameters:
      - name: projectId
        in: path
        description: ID of the project
        required: true
        schema:
          type: integer
          format: int64
      - name: defectId
        in: path
        description: ID of the Defect which needs to be updated.
        required: true
        schema:
          type: integer
          format: int64
      responses:
        200:
          description: Successfully updated a defect.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefectResource'
        400:
          description: Field value is invalid.
        403:
          description: User does not have permission to update defect.
        404:
          description: Defect with @defectId does not exist.
        500:
          description: Internal Server Error.
      security:
      - Authorization: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DefectResource'
        description: The Defect's updated properties
        required: true
  /api/v3/projects/{projectId}/defects/{idOrKey}/comments:
    get:
      tags:
      - defect
      summary: Gets all Comments of a Defect
      description: 'To retrieve all Comments of a Defect


        qTest Manager version: 7.5+'
      operationId: getComments
      parameters:
      - name: projectId
        in: path
        description: ID of the project
        required: true
        schema:
          type: integer
          format: int64
      - name: idOrKey
        in: path
        description: PID or ID of the Defect whose comments you want to retrieve
        required: true
        schema:
          type: string
      - name: page
        in: query
        description: By default the first page is returned but you can specify any page number to retrieve objects
        required: false
        schema:
          type: integer
          format: int64
          default: 1
      - name: pageSize
        in: query
        description: The result is paginated. By the default, the number of objects in each page is 100 if this is omitted. You can specify your custom number (up to 999) in this parameter
        required: false
        schema:
          type: integer
          format: int64
          default: 100
      responses:
        200:
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagedResourceCommentResource'
      security:
      - Authorization: []
    post:
      tags:
      - defect
      summary: Adds a Comment to a Defect
      description: 'To add a Comment to a Defect


        qTest Manager version: 7.5+'
      operationId: addComment
      parameters:
      - name: projectId
        in: path
        description: ID of the project
        required: true
        schema:
          type: integer
          format: int64
      - name: idOrKey
        in: path
        description: PID or ID of the Defect
        required: true
        schema:
          type: string
      responses:
        200:
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommentResource'
      security:
      - Authorization: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommentResource'
        description: The Comment's content
        required: true
  /api/v3/projects/{projectId}/defects/{idOrKey}/comments/{commentId}:
    get:
      tags:
      - defect
      summary: Gets a Comment of a Defect
      description: 'To retrieve a specific Comment of a Defect


        qTest Manager version: 7.5+'
      operationId: getDefectCommentById
      parameters:
      - name: projectId
        in: path
        description: ID of the project
        required: true
        schema:
          type: integer
          format: int64
      - name: idOrKey
        in: path
        description: PID or ID of the Defect whose comment you want to retrieve
        required: true
        schema:
          type: string
      - name: commentId
        in: path
        description: ID of the comment
        required: true
        schema:
          type: integer
          format: int64
      responses:
        200:
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommentResource'
      security:
      - Authorization: []
    put:
      tags:
      - defect
      summary: Updates a Comment of a Defect
      description: 'To update a specific Comment of a Defect


        qTest Manager version: 7.5+'
      operationId: updateComment
      parameters:
      - name: projectId
        in: path
        description: ID of the project
        required: true
        schema:
          type: integer
          format: int64
      - name: idOrKey
        in: path
        description: PID or ID of the defect whose comment you want to update
        required: true
        schema:
          type: string
      - name: commentId
        in: path
        description: ID of the comment
        required: true
        schema:
          type: integer
          format: int64
      responses:
        200:
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommentResource'
      security:
      - Authorization: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommentResource'
        description: Given resource to update a comment.
        required: true
    delete:
      tags:
      - defect
      summary: Deletes a Comment of a Defect
      description: 'To delete a specific Comment of a Defect


        qTest Manager version: 7.5+'
      operationId: deleteComment
      parameters:
      - name: projectId
        in: path
        description: ID of the project
        required: true
        schema:
          type: integer
          format: int64
      - name: idOrKey
        in: path
        description: PID or ID of the Defect whose Comment you want to delete
        required: true
        schema:
          type: string
      - name: commentId
        in: path
        description: ID of the comment.
        required: true
        schema:
          type: integer
          format: int64
      responses:
        200:
          description: successful operation
          content:
            application/json:
              schema:
                type: object
      security:
      - Authorization: []
components:
  schemas:
    CommentResource:
      type: object
      properties:
        created:
          type: string
          format: date-time
          description: Created date of Comment
        updated:
          type: string
          format: date-time
          description: Last updated date of Comment
        userId:
          type: integer
          format: int64
          example: 5202
          description: ID of the User who create this Comment
        links:
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/Link'
        id:
          type: integer
          format: int64
          example: 2602608
          description: ID of the Comment
        content:
          type: string
          example: The comment's content
          description: Comment text
    PropertyResource:
      type: object
      required:
      - field_id
      properties:
        field_id:
          type: integer
          format: int64
          example: 1
          description: ID of Field
        field_name:
          type: string
          example: Field Name
          description: Name of Field
        field_value:
          type: string
          example: '1'
          description: Value of Field
        field_value_name:
          type: string
          example: '1'
          description: Name Value of Field
    AttachmentResource:
      type: object
      properties:
        links:
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/Link'
        name:
          type: string
          example: Sample.docx
          description: Attachment name
        content_type:
          type: string
          example: application/vnd.openxmlformats-officedocument.wordprocessingml.document
          description: Attachment content type
        data:
          type: string
          description: Used for uploading and ignored during download
        id:
          type: integer
          format: int64
          example: 1
          description: ID of the Attachment
        web_url:
          type: string
          example: https://apitryout.qtestnet.com/p/1/portal/attachment/testcase/attachmentId/1
          description: Web URL to Attachment
          readOnly: true
        created_date:
          type: string
          format: date-time
          description: The date Attachment was created
        author:
          $ref: '#/components/schemas/AttachmentAuthor'
        artifact_id:
          type: integer
          format: int64
          example: 1
          description: Artifact ID which Attachment linked to
          readOnly: true
    DefectResource:
      type: object
      properties:
        links:
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/Link'
        properties:
          type: array
          description: Properties of the Defect
          items:
            $ref: '#/components/schemas/PropertyResource'
        attachments:
          type: array
          description: Attachments of the Defect
          items:
            $ref: '#/components/schemas/AttachmentResource'
        id:
          type: integer
          format: int64
          example: 1
          description: ID of the Defect
        pid:
          type: string
          example: DF-1
          description: PID of the Defect
        submitted_date:
          type: string
          format: date-time
          description: The date Defect was created
        last_modified_date:
          type: string
          format: date-time
          description: Last modified date
        submitter_id:
          type: integer
          format: int64
          example: 1
          description: ID of the User who create the Defect
        last_modified_user_id:
          type: integer
          format: int64
          example: 1
          description: Last ID of the User who updated the Defect
        web_url:
          type: string
          example: https://apitryout.qtestnet.com/p/1/portal/project#tab=defects&object=17&id=1
          description: Web url to the Defect
          readOnly: true
    Link:
      type: object
      properties:
        rel:
          type: string
          example: self
          description: Relationship of link to object
        href:
          type: string
          example: <link to object>
          description: URL to the resource
    PagedResourceCommentResource:
      type: object
      properties:
        links:
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/Link'
        page:
          type: integer
          format: int32
          example: 1
          description: Current page
        page_size:
          type: integer
          format: int32
          example: 25
          description: Current page size
        total:
          type: integer
          format: int64
          example: 100
          description: Total record found
        items:
          type: array
          description: Data of records
          items:
            $ref: '#/components/schemas/CommentResource'
    AttachmentAuthor:
      type: object
      properties:
        id:
          type: integer
          format: int64
          example: 1
          description: ID of the User
        email:
          type: string
          example: example.user@qtest.com
          description: Login username of the User
        first_name:
          type: string
          example: First name of the User
          description: First name of the User
        last_name:
          type: string
          example: Last name of the User
          description: Last name of the User
  securitySchemes:
    Authorization:
      type: apiKey
      name: Authorization
      in: header