NAV
shell php python java javascript ruby

Overview

Welcome to the Bugasura API! You can use our API to access Bugasura API endpoints, which can get information on various features exposed by the Bugasura product.

We have language bindings in Shell, PHP, Python, Java, JavaScript and Ruby! You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.

The base URL for every request is https://api.bugasura.io. All requests must be made over HTTPS. Messages are returned in English.

The below diagram pictorially depicts how each of the endpoint modules is connected and also summarizes the Bugasura API documentation page.

Modules

The sections of this page follow the sidebar groups below.

General

Module What it covers
Authentication API keys.
Handling errors Status codes and the error body.

User management

Module What it covers
Teams Create and manage teams.
Team Users Manage the members of a team.
Projects Create and manage projects.
Users Sign up and manage your user account.

Context

Module What it covers
Knowledge Base Upload and manage the documents of a project.
Requirements Create and manage requirements.
Requirement Comments Comment on requirements.

Manage

Module What it covers
Test Cases Create, list, update and delete test cases.
Test Case Comments Comment on test cases.
Project Folders Organize test cases, requirements and documents in folders.
Test Suites Group test cases into test suites.
Test Data Environments, variables and files used by test runs.
Sprints Create and manage sprints.
Test Runs Run test cases in sprints, now or on a schedule.
Issues Create, list, update and delete issues.
Issue Assignees Assign users to issues.
Issue Comments Comment on issues.
Issue Attachments Add and remove issue attachments.

Project settings

Module What it covers
Project Users Add and manage the members of a project.
Custom Fields Define the custom fields of a project.

Authentication

The Bugasura API authenticates every request with an API key sent in the Authorization header. All API requests must be made over HTTPS. Requests without a valid Authorization header fail with 401.

You can view your API key in your profile dashboard. You need to sign up to obtain an API key. You can get your API key from here.

Send the key in the Authorization header with the Basic scheme. The value is the raw API key, not base64 encoded, and there is no username or password.

curl "https://api.bugasura.io/teams/get?team_id=1001" \
  -H "Authorization: Basic <Your API_KEY goes here>"
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/teams/get?team_id=1001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>
import requests

response = requests.get(
    "https://api.bugasura.io/teams/get",
    params={"team_id": 1001},
    headers={"Authorization": "Basic <Your API_KEY goes here>"},
)
print(response.json())
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

    public static void main(String[] args) throws IOException {
        URL url = new URL("https://api.bugasura.io/teams/get?team_id=1001");
        HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
        httpConn.setRequestMethod("GET");

        httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>");

        InputStream responseStream = httpConn.getResponseCode() / 100 == 2
                ? httpConn.getInputStream()
                : httpConn.getErrorStream();
        Scanner s = new Scanner(responseStream).useDelimiter("\\A");
        String response = s.hasNext() ? s.next() : "";
        System.out.println(response);
    }
}
const response = await fetch("https://api.bugasura.io/teams/get?team_id=1001", {
  headers: { "Authorization": "Basic <Your API_KEY goes here>" },
});
console.log(await response.json());
require "uri"
require "net/http"

uri = URI("https://api.bugasura.io/teams/get")
uri.query = URI.encode_www_form({
  "team_id" => "1001",
})

request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Basic <Your API_KEY goes here>"

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
  http.request(request)
end

puts response.body

If authentication fails, the API returns HTTP 401 with status UNAUTHORIZED (see Handling errors) and one of these messages:

Cause Message
No Authorization header Authorization header is missing in your request.
The scheme is neither Basic nor Bearer Invalid Authorization type.Type should be like "Authorization:<type> <Your api_key>"
Bearer with a value that is not a valid OAuth access token, such as an API key Invalid or expired access token
API key empty, longer than 100 characters, or not matching any user Invalid API Key

A user lookup failure on our side returns HTTP 400 with status ERROR and the message There was an error processing your request. Please contact customer care.

Handling errors

Our API reports problems with an HTTP status code and a JSON body. We recommend writing code that gracefully handles all possible error responses, including network unavailability.

Every error body has the same shape:

Field Type Description
status string ERROR, UNAUTHORIZED or FORBIDDEN.
message string A human readable description of the problem.

For Eg: If a user is not the member of a given team, then we will get the below response with HTTP status 403:

{
    "message": "You do not have permission to perform this operation",
    "status": "FORBIDDEN"
}

The Bugasura API uses the following HTTP status codes:

Status Code status in body Meaning
400 ERROR Bad Request -- Your request could not be processed. For example, There was an error processing your request. Please contact customer care.
401 UNAUTHORIZED Unauthorized -- Your API key is missing or wrong. See Authentication.
403 FORBIDDEN Forbidden -- Your credentials are valid, but you are not a member of the requested team.
404 Not Found -- The specified API endpoint could not be found. The body is {"message": "Invalid URL."} and has no status field.
500 Internal Server Error -- A generic server failure. The body is not guaranteed to be JSON. Try again later.

USER MANAGEMENT

Teams

Endpoint prefix: teams (used by every endpoint in this section)

teams/list

curl  -H 'Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
    -H 'Accept: application/json' \
    -X GET 'https://api.bugasura.io/teams/list?get_invite_accepted_teams_only=1&start_at=0&max_results=10'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/teams/list?get_invite_accepted_teams_only=1&start_at=0&max_results=10');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'Accept': 'application/json', }

params = { 'get_invite_accepted_teams_only': '1', 'start_at': '0', 'max_results': '10', }

response = requests.get('https://api.bugasura.io/teams/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/teams/list?get_invite_accepted_teams_only=1&start_at=0&max_results=10"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/teams/list?get_invite_accepted_teams_only=1&start_at=0&max_results=10', {
    headers: {
        'Authorization': 'Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/teams/list?get_invite_accepted_teams_only=1&start_at=0&max_results=10") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXX" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Team list fetched successfully",
    "team_list": [
        {
            "team_id": 1001,
            "team_name": "My Projects",
            "owner_name": "Jane Doe",
            "owner_email_id": "jane.doe@example.com",
            "is_owner": 1,
            "is_admin": 1,
            "is_invitation_accepted": 1,
            "team_members_count": 5,
            "plan": "PRO",
            "subscription_end_date": "2031-10-25 23:59:59",
            "subscription_frequency": "YEARLY",
            "licences_allocated": "15",
            "licences_available": "6",
            "standard_status_list": "[{\"name\":\"New\",\"type\":\"new\",\"color\":\"#1ab651\",\"order\":1,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"To DO\",\"type\":\"new\",\"color\":\"#00C39E\",\"order\":2,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"In Progress\",\"color\":\"#f9af2d\",\"type\":\"in-progress\",\"order\":3,\"github_magic_words\":\"\",\"github_actions\":\"New Branch,New Pull Request,Merge Request\",\"assignee_ids\":\"\"},{\"name\":\"Fixed\",\"type\":\"in-progress\",\"color\":\"#3e60df\",\"order\":4,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"Not Fixed\",\"type\":\"in-progress\",\"color\":\"#905fec\",\"order\":5,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"Released\",\"type\":\"in-progress\",\"color\":\"#0091ff\",\"order\":6,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"In Review\",\"type\":\"in-progress\",\"color\":\"#FFC668\",\"order\":7,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"Cancelled\",\"type\":\"closed\",\"color\":\"#979797\",\"order\":8,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"Closed\",\"type\":\"closed\",\"color\":\"#2c2c2c\",\"order\":9,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"}]"
        },
        {
            "team_id": 1002,
            "team_name": "Product Team",
            "owner_name": "Alex Roe",
            "owner_email_id": "alex.roe@example.com",
            "is_owner": 0,
            "is_admin": 0,
            "is_invitation_accepted": 1,
            "team_members_count": 3,
            "plan": "PRO",
            "subscription_end_date": "2031-10-25 23:59:59",
            "subscription_frequency": "MONTHLY",
            "licences_allocated": "10",
            "licences_available": "4",
            "standard_status_list": "[{\"name\":\"New\",\"type\":\"new\",\"color\":\"#1ab651\",\"order\":1,\"github_actions\":\"New Branch,Merge Request\",\"github_magic_words\":\"New,Re-open\"},{\"name\":\"In Progress\",\"type\":\"in-progress\",\"color\":\"#f9af2d\",\"order\":2,\"github_actions\":\"\",\"github_magic_words\":\"Picked,In Progress\"},{\"name\":\"Fixed\",\"type\":\"in-progress\",\"color\":\"#3e60df\",\"order\":3,\"github_actions\":\"\",\"github_magic_words\":\"Fixed,Done\"},{\"name\":\"Not Fixed\",\"type\":\"in-progress\",\"color\":\"#905fec\",\"order\":4,\"github_actions\":\"\",\"github_magic_words\":\"Not Fixed,Not Done\"},{\"name\":\"Released\",\"type\":\"in-progress\",\"color\":\"#0091ff\",\"order\":5,\"github_actions\":\"\",\"github_magic_words\":\"Released\"},{\"name\":\"Cancelled\",\"type\":\"closed\",\"color\":\"#979797\",\"order\":6,\"github_actions\":\"\",\"github_magic_words\":\"Cancelled,Not required,Not an issue,Invalid\"},{\"name\":\"Closed\",\"type\":\"closed\",\"color\":\"#2c2c2c\",\"order\":7,\"github_actions\":\"\",\"github_magic_words\":\"Closed,Completed\"}]"
        }
    ],
    "nrows": 2,
    "total_rows": 2,
    "start_at": 0,
    "max_results": 10
}

This endpoint gets the list of team details.

HTTP Request

GET https://api.bugasura.io/teams/list

Query Parameters

Parameter Type Default Description
get_invite_accepted_teams_only Integer 1 Pass 1 to get the list of team details of which the team invitation is accepted. Else 0 to get both the accepted and invited team details.
start_at Integer 0 The index of the first item to return in a page of results.
max_results Integer 10 The maximum number of items to return per page. Values below 10 are treated as 10 and values above 100 as 100.

teams/get

curl -X GET \
    -H "Authorization: Basic <Your API_KEY goes here>" \
    -H 'Accept: application/json' \
    https://api.bugasura.io/teams/get?team_id=1001
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/teams/get?team_id=1001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', }

response = requests.get('https://api.bugasura.io/teams/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/teams/get?team_id=1001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/teams/get?team_id=1001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/teams/get?team_id=1001") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
        "status": "OK",
        "message": "Team details fetched successfully",
        "team_details": {
                "team_id": 1001,
                "team_name": "product_team",
                "owner_name": "Jane Doe",
                "owner_email_id": "jane.doe@example.com",
                "is_owner": 1,
                "is_admin": 1,
                "is_invitation_accepted": 1,
                "team_members_count": 3,
                "plan": "PRO",
                "subscription_end_date": "2031-10-25 23:59:59",
                "subscription_frequency": "YEARLY",
                "licences_allocated": "15",
                "licences_available": "11",
                "standard_status_list": "[{\"name\":\"New\",\"type\":\"new\",\"color\":\"#1ab651\",\"order\":1,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"To DO\",\"type\":\"new\",\"color\":\"#00C39E\",\"order\":2,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"In Progress\",\"color\":\"#f9af2d\",\"type\":\"in-progress\",\"order\":3,\"github_magic_words\":\"\",\"github_actions\":\"New Branch,New Pull Request,Merge Request\",\"assignee_ids\":\"\"},{\"name\":\"Fixed\",\"type\":\"in-progress\",\"color\":\"#3e60df\",\"order\":4,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"Not Fixed\",\"type\":\"in-progress\",\"color\":\"#905fec\",\"order\":5,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"Released\",\"type\":\"in-progress\",\"color\":\"#0091ff\",\"order\":6,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"In Review\",\"type\":\"in-progress\",\"color\":\"#FFC668\",\"order\":7,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"Cancelled\",\"type\":\"closed\",\"color\":\"#979797\",\"order\":8,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"},{\"name\":\"Closed\",\"type\":\"closed\",\"color\":\"#2c2c2c\",\"order\":9,\"github_actions\":\"\",\"github_magic_words\":\"\",\"assignee_ids\":\"\"}]"
        }
}

This API endpoint gets the details for the given team id.

HTTP Request

GET https://api.bugasura.io/teams/get

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team for which the details need to be obtained.

teams/add

curl -X POST \
    -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -d 'team_name=product_team' \
    https://api.bugasura.io/teams/add
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/teams/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'team_name=product_team');

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_name': 'product_team', }

response = requests.post('https://api.bugasura.io/teams/add', headers=headers, data=data)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/teams/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("team_name=product_team"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/teams/add', {
        method: 'POST',
        headers: {
                'Authorization': 'Basic <Your API_KEY goes here>',
                'Accept': 'application/json'
        },
        body: new URLSearchParams({
                'team_name': 'product_team'
        })
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/teams/add") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( "team_name" => "product_team", )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Woohoo! You have created a new team!",
    "team_id": 1001,
    "team_name": "product_team"
}

The API will allow you to create a team with the name of your choice.

HTTP Request

POST https://api.bugasura.io/teams/add

Body Parameters

Parameter Type Default Description
team_name* String Name of your team that you want to create.

teams/update

curl -X POST \
    -H "Authorization: Basic <Your API_KEY goes here>" \
    -H 'Accept: application/json' \
    -d 'team_id=1001&team_name=developer_team' \
    https://api.bugasura.io/teams/update
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/teams/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'team_id=1001&team_name=developer_team');

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': '1001', 'team_name': 'developer_team', }

response = requests.post('https://api.bugasura.io/teams/update', headers=headers, data=data)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/teams/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("team_id=1001&team_name=developer_team"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/teams/update', {
    method: 'POST',
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    },
    body: new URLSearchParams({
        'team_id': '1001',
        'team_name': 'developer_team'
    })
});
require 'net/http'
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/teams/update") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( "team_id" => "1001", "team_name" => "developer_team", )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Team details updated successfully."
}

This API endpoint will allow you to update the name of the team.

HTTP Request

POST https://api.bugasura.io/teams/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team for which the name needs to be updated.
team_name* String New name for the team.

teams/delete

curl -X POST \
    -H "Authorization: Basic <Your API_KEY goes here>" \
    -H 'Accept: application/json' \
    -d 'team_id=1001' \
    https://api.bugasura.io/teams/delete
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/teams/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'team_id=1001');

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': '1001', }

response = requests.post('https://api.bugasura.io/teams/delete', headers=headers, data=data)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/teams/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("team_id=1001"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/teams/delete', {
    method: 'POST',
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    },
    body: new URLSearchParams({
        'team_id': '1001'
    })
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/teams/delete") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( "team_id" => "1001", )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "developer_team has been removed"
}

This API endpoint will allows the team owner to delete a given team.

HTTP Request

POST https://api.bugasura.io/teams/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team which needs to be deleted.

Team Users

Endpoint prefix: teamUsers (used by every endpoint in this section)

teamUsers/get

curl -X GET \
  -H "Authorization: Basic <Your API_KEY goes here>" \
  -H 'Accept: application/json' \
  https://api.bugasura.io/teamUsers/get?team_id=1001
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/teamUsers/get?team_id=1001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', }

response = requests.get('https://api.bugasura.io/teamUsers/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/teamUsers/get?team_id=1001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/teamUsers/get?team_id=1001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/teamUsers/get?team_id=1001") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status":"OK",
    "message":"Team users details fetched successfully",
    "team_users_details":[
        {
            "user_id":3001,
            "email_id":"jane.doe@example.com",
            "name":"Jane Doe",
            "team_name":"product_team",
            "plan":"PRO",
            "is_owner":1,
            "is_admin":1,
            "account_active":1,
            "is_invitation_accepted":1
        },
        {
            "user_id":3002,
            "email_id":"alex.roe@example.com",
            "name":"Alex Roe",
            "team_name":"product_team",
            "plan":"FREE",
            "is_owner":0,
            "is_admin":0,
            "account_active":1,
            "is_invitation_accepted":0
        }
    ]
}

This API endpoint will list all the users for a given team.

HTTP Request

GET https://api.bugasura.io/teamUsers/get

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the users needs to be listed.

teamUsers/add

curl -X POST \
  -H "Authorization: Basic <Your API_KEY goes here>" \
  -H 'Accept: application/json' \
  -d 'team_id=1001&email_id=sam.lee@example.com' \
  https://api.bugasura.io/teamUsers/add
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/teamUsers/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'team_id=1001&email_id=sam.lee@example.com');

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded', }

data = 'team_id=1001&email_id=sam.lee@example.com'

response = requests.post('https://api.bugasura.io/teamUsers/add', headers=headers, data=data)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/teamUsers/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("team_id=1001&email_id=sam.lee@example.com"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/teamUsers/add', {
    method: 'POST',
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json',
        'Content-Type': 'application/x-www-form-urlencoded'
    },
    body: 'team_id=1001&email_id=sam.lee@example.com'
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/teamUsers/add") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( "email_id" => "sam.lee@example.com", "team_id" => "1001", )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Invitation has been sent.",
    "team_count_details": {
        "licences_allocated": "10",
        "licences_available": 8
    },
    "added_team_users_details": [
        {
            "user_id": 3003,
            "email_id": "sam.lee@example.com",
            "name": "Sam Lee"
        }
    ]
}

This API endpoint will invite user to given team.

HTTP Request

POST https://api.bugasura.io/teamUsers/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team for which the user needs to be invited.
email_id* String List of user's email ids to be invited. Each email id should be separated by a comma.

teamUsers/update

curl -X POST \
  -H "Authorization: Basic <Your API_KEY goes here>" \
  -H 'Accept: application/json' \
  -d 'team_id=1001&user_id=3001&is_admin=1' \
  https://api.bugasura.io/teamUsers/update
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/teamUsers/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'team_id=1001&user_id=3001&is_admin=1');

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': '1001', 'user_id': '3001', 'is_admin': '1', }

response = requests.post('https://api.bugasura.io/teamUsers/update', headers=headers, data=data)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/teamUsers/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("team_id=1001&user_id=3001&is_admin=1"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/teamUsers/update', {
    method: 'POST',
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    },
    body: new URLSearchParams({
        'team_id': '1001',
        'user_id': '3001',
        'is_admin': '1'
    })
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/teamUsers/update") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( "is_admin" => "1", "team_id" => "1001", "user_id" => "3001", )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "User type has been updated."
}

This API endpoint will allow the team admins to update the given team user as an admin or not.

HTTP Request

POST https://api.bugasura.io/teamUsers/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team for which the user needs to be updated.
user_id* Integer The ID of the user to be updated.
is_admin* Integer Pass 1 to make a user admin and 0 to make a user non-admin.

teamUsers/delete

curl -X POST \
  -H "Authorization: Basic <Your API_KEY goes here>" \
  -H 'Accept: application/json' \
  -d 'team_id=1001&user_id=3002' \
  https://api.bugasura.io/teamUsers/delete
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/teamUsers/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'team_id=1001&user_id=3002');

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': '1001', 'user_id': '3002', }

response = requests.post('https://api.bugasura.io/teamUsers/delete', headers=headers, data=data)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/teamUsers/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("team_id=1001&user_id=3002"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/teamUsers/delete', {
    method: 'POST',
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    },
    body: new URLSearchParams({
        'team_id': '1001',
        'user_id': '3002'
    })
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/teamUsers/delete") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( "team_id" => "1001", "user_id" => "3002", )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "The user has been removed.",
    "licencesAvailable": 8,
    "licencesAllocated": "10"
}

This API endpoint will allow the user to leave a team and team admin to remove the given user from a team.

HTTP Request

POST https://api.bugasura.io/teamUsers/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team from which the user needs to be removed.
user_id* Integer The ID of the user which need to be removed.

Projects

Endpoint prefix: projects (used by every endpoint in this section)

projects/list

curl -L -X GET 'https://api.bugasura.io/projects/list?team_id=1001&platform_type=Web&platform=Desktop' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projects/list?team_id=1001&platform_type=Web&platform=Desktop');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'platform_type': 'Web', 'platform': 'Desktop', }

response = requests.get('https://api.bugasura.io/projects/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projects/list?team_id=1001&platform_type=Web&platform=Desktop"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/projects/list?team_id=1001&platform_type=Web&platform=Desktop', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projects/list?team_id=1001&platform_type=Web&platform=Desktop")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Project list fetched successfully",
    "project_list": [
        {
            "project_id": 2001,
            "project_name": "My project Bugasura",
            "issue_prefix": "MYB",
            "platform_type": "Web",
            "platform": "Desktop",
            "public_link_url": null,
            "team_id": 1001,
            "team_name": "Team Bugasura",
            "status": "ACTIVE"
        },
        {
            "project_id": 2002,
            "project_name": "My project Bugasura Web",
            "issue_prefix": "MYFW",
            "platform_type": "Web",
            "platform": "Desktop",
            "public_link_url": null,
            "team_id": 1001,
            "team_name": "Team Bugasura",
            "status": "ACTIVE"
        },
        {
            "project_id": 2003,
            "project_name": "My project Bugasura App",
            "issue_prefix": "MYFA",
            "platform_type": "Web",
            "platform": "Desktop",
            "public_link_url": null,
            "team_id": 1001,
            "team_name": "Team Bugasura",
            "status": "ARCHIVE"
        }
    ],
    "nrows": 3,
    "total_rows": 3,
    "start_at": 0,
    "max_results": 10
}

This API end point will list all the projects for a given team and the query parameters.

HTTP Request

GET https://api.bugasura.io/projects/list

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the projects need to be listed.
search_text String A string to match (case-insensitive) against the project name.
start_at Integer 0 The index of the first item to return in a page of results.
max_results Integer 10 The maximum number of items to return per page. Values below 10 are treated as 10 and values above 100 as 100.
platform String Platform of the project like ('iOS','Android','Desktop','Multiple').
platform_type String Platform type of the project like ('Apps','Mobileweb','Web','Multiple').
status String Project status which can be either ACTIVE or ARCHIVE.

projects/get

curl -L -X GET 'https://api.bugasura.io/projects/get?team_id=1001&project_id=2001' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projects/get?team_id=1001&project_id=2001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'project_id': '2001', }

response = requests.get('https://api.bugasura.io/projects/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projects/get?team_id=1001&project_id=2001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/projects/get?team_id=1001&project_id=2001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projects/get?team_id=1001&project_id=2001")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Project details fetched successfully",
    "project_details": {
        "project_id": 2001,
        "project_name": "My project Bugasura",
        "issue_prefix": "MYB",
        "platform_type": "Web",
        "platform": "Desktop",
        "public_link_url": null,
        "team_id": 1001,
        "team_name": "Team Bugasura",
        "status": "ACTIVE",
        "custom_fields": [
            {
                "field_id": 5001,
                "field_name": "user name"
            }
        ]
    }
}

This API end point will get the project details for a given team and the project.

HTTP Request

GET https://api.bugasura.io/projects/get

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the project details need to be obtained.
project_id* Integer ID of the project for which the details need to be obtained.

projects/add

curl -L -X POST 'https://api.bugasura.io/projects/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'project_name=My first Project' \
-F 'team_id=1001' \
-F 'platform_type=Web' \
-F 'platform=Desktop'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projects/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'project_name' => 'My first Project',
    'team_id' => '1001',
    'platform_type' => 'Web',
    'platform' => 'Desktop',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'project_name': (None, 'My first Project'), 'team_id': (None, '1001'), 'platform_type': (None, 'Web'), 'platform': (None, 'Desktop'), }

response = requests.post('https://api.bugasura.io/projects/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projects/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("project_name=my project&team_id=1001&platform_type=Web&platform=Desktop"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('project_name', 'My first Project');
form.append('team_id', '1001');
form.append('platform_type', 'Web');
form.append('platform', 'Desktop');

fetch('https://api.bugasura.io/projects/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projects/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['project_name', 'My first Project'],['team_id', '1001'],['platform_type', 'Web'],['platform', 'Desktop']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Project created successfully",
    "team_id": "1001",
    "project_id": 2001,
    "project_name": "My first Project",
    "platform": "Desktop",
    "platform_type": "Web",
    "default_sprint": {
        "sprint_name": "My First Sprint",
        "sprint_id": 4001
    }
}

This API endpoint will create a project in a given team.

HTTP Request

POST https://api.bugasura.io/projects/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team in which the project needs to be created.
project_name* String Name of your project that you want to create.
platform String Multiple Platform of the project like ('iOS','Android','Desktop','Multiple').
platform_type String Multiple Platform type of the project like ('Apps','Mobileweb','Web','Multiple').
is_public_project Integer 0 By default project will be Private. Pass 1 to make a project Public.
is_public_issues Integer 0 By default all the issues created in a public project will be Private. Pass 1 to make all the issues in a public project Public. This parameter will not be effective for the Private project.
clean_public_project_name String Clean public project name without any special characters. This parameter is unique across Bugasura platform. This parameter will not be effective for the Private project.

projects/update

curl -L -X POST 'https://api.bugasura.io/projects/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'project_id=2001' \
-F 'issue_prefix=SDSWS' \
-F 'project_name=My project Name' \
-F 'clean_public_project_name=My_project_Name' \
-F 'is_public_project=1' \
-F 'is_public_issues=1'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projects/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'project_id' => '2001',
    'issue_prefix' => 'SDSWS',
    'project_name' => 'My project Name',
    'clean_public_project_name' => 'My_project_Name',
    'is_public_project' => '1',
    'is_public_issues' => '1',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch);?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'project_id': (None, '2001'), 'issue_prefix': (None, 'SDSWS'), 'project_name': (None, 'My project Name'), 'clean_public_project_name': (None, 'My_project_Name'), 'is_public_project': (None, '1'), 'is_public_issues': (None, '1'), }

response = requests.post('https://api.bugasura.io/projects/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projects/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("team_id=1001&project_id=2001&issue_prefix=SDSWS&project_name=My project Name&clean_public_project_name=My_project_Name&is_public_project=1&is_public_issues=1"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('project_id', '2001');
form.append('issue_prefix', 'SDSWS');
form.append('project_name', 'My project Name');
form.append('clean_public_project_name', 'My_project_Name');
form.append('is_public_project', '1');
form.append('is_public_issues', '1');

fetch('https://api.bugasura.io/projects/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projects/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['project_id', '2001'],['issue_prefix', 'SDSWS'],['project_name', 'My project Name'],['clean_public_project_name', 'ererwrwerewr'],['is_public_project', '1'],['is_public_issues', '1']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Project details updated successfully"
}

This API endpoint will allow the team admins to update the project details.

HTTP Request

POST https://api.bugasura.io/projects/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team in which the project needs to be updated.
project_id* Integer ID of the project which needs to be updated.
project_name String New name for the project.
issue_prefix String New issue prefix for the issues in the project.
is_public_project Integer Pass 0 to make a project Private. Pass 1 to make a project Public.
is_public_issues Integer Pass 0 to make all the issues created Private in a public project. Pass 1 to make all the issues created Public in a public project. This parameter will not be effective for the Private project.
clean_public_project_name String New clean public project name without any special characters. This parameter is unique across Bugasura platform. This parameter will not be effective for the Private project.

Note: All the update field parameters cannot be empty. Only include the parameters which you want to update.

projects/delete

curl -L -X POST 'https://api.bugasura.io/projects/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'project_id=2001' \
-F 'team_id=1001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projects/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'project_id' => '2001',
    'team_id' => '1001',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch);?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'project_id': (None, '2001'), 'team_id': (None, '1001'), }

response = requests.post('https://api.bugasura.io/projects/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projects/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("project_id=2001&team_id=1001"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('project_id', '2001');
form.append('team_id', '1001');

fetch('https://api.bugasura.io/projects/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projects/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['project_id', '2001'],['team_id', '1001']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Project deleted successfully."
}

This API endpoint will allow the team owner to delete the project from a team.

HTTP Request

POST https://api.bugasura.io/projects/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team from which the project needs to be deleted.
project_id* Integer The ID of the project which needs to be deleted.

projects/duplicate

curl -L -X POST 'https://api.bugasura.io/projects/duplicate' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'current_team_id=1001' \
-F 'current_project_id=2001' \
-F 'project_name=Demo Project Copy' \
-F 'project_prefix=DPC'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projects/duplicate');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'current_team_id' => '1001',
    'current_project_id' => '2001',
    'project_name' => 'Demo Project Copy',
    'project_prefix' => 'DPC',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'current_team_id': (None, '1001'), 'current_project_id': (None, '2001'), 'project_name': (None, 'Demo Project Copy'), 'project_prefix': (None, 'DPC'), }

response = requests.post('https://api.bugasura.io/projects/duplicate', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projects/duplicate"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("team_id=1001&current_team_id=1001&current_project_id=2001&project_name=Demo Project Copy&project_prefix=DPC"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('current_team_id', '1001');
form.append('current_project_id', '2001');
form.append('project_name', 'Demo Project Copy');
form.append('project_prefix', 'DPC');

fetch('https://api.bugasura.io/projects/duplicate', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projects/duplicate")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['current_team_id', '1001'],['current_project_id', '2001'],['project_name', 'Demo Project Copy'],['project_prefix', 'DPC']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Successfully project duplicated",
  "appResp": {
    "status": "OK",
    "message": "Test run created successfully",
    "app_id": 2002,
    "projectId": 2002,
    "projectName": "Demo Project Copy",
    "appName": "Demo Project Copy",
    "buildName": "Demo Project Copy",
    "report_id": 4002,
    "report_name": "My First Sprint",
    "isTestplanExist": 0,
    "clean_report_name": "my-first-sprint",
    "testrun_id": 4102,
    "platform": "Desktop",
    "platformType": "Web",
    "isPublicProject": 0,
    "publicProjectLink": "",
    "publicTeamName": "",
    "publicAppName": "Demo Project Copy"
  }
}

Create a new project from an existing one. The new project is created in the team given in team_id, which can be the same team as the source project or another team you belong to. appResp.projectId is the id of the new project.

The new project gets a copy of the platform, the platform type, the public or private setting, the project settings, the workflow statuses of issues and requirements, the priority settings, the folder structure setting and the logo of the source project. The issue prefix is the project_prefix you send. All the custom fields of the source project (issue, requirement and test case fields) are copied together with their layout. The integration connection settings of the project (field mappings, conditions, GitHub repositories and the connected tools) are copied only when the new project is in the same team as the source project. They are not copied across teams. A default test data environment is also created.

Issues, test cases, requirements, sprints, test runs and project members are not copied. The new project starts with one sprint named My First Sprint. You and the admins of the team the project is created in become the project admins, and no other team members are added. Use projectUsers/add to add them.

When a parameter is missing or invalid, the request fails with status set to ERROR and an empty message.

The admins of the team get two in-app notifications, one that a project was created and one that a project was duplicated (you are left out). People who turned off project-update notifications are skipped. No emails are sent.

HTTP Request

POST https://api.bugasura.io/projects/duplicate

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team in which the new project is created. Required. Without it the request fails with an empty message.
current_team_id* Integer The ID of the team that owns the project to duplicate. Required. Without it the request fails with an empty message.
current_project_id* Integer The ID of the project to duplicate. Required. Without it the request fails with an empty message.
project_name* String Name of the new project. 1 to 250 characters.
project_prefix* String Prefix for the issue ids of the new project. 1 to 5 characters.

Users

Endpoint prefix: users (used by every endpoint in this section)

users/signup

curl -X POST \
  -H 'Accept: application/json' \
  -d 'email=jane.doe@example.com&password=Sample@1234&first_name=Jane&last_name=Doe' \
  https://api.bugasura.io/users/signup
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/users/signup');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Accept: application/json',
  'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'email=jane.doe@example.com&password=Sample@1234&first_name=Jane&last_name=Doe');

$response = curl_exec($ch);

curl_close($ch);?>

import requests

headers = { 'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded', }

data = 'email=jane.doe@example.com&password=Sample@1234&first_name=Jane&last_name=Doe'

response = requests.post('https://api.bugasura.io/users/signup', headers=headers, data=data)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/users/signup"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("email=jane.doe@example.com&password=Sample@1234&first_name=Jane&last_name=Doe"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/users/signup', {
  method: 'POST',
  headers: {
    'Accept': 'application/json',
    'Content-Type': 'application/x-www-form-urlencoded'
  },
  body: 'email=jane.doe@example.com&password=Sample@1234&first_name=Jane&last_name=Doe'
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/users/signup") request = Net::HTTP::Post.new(uri) request["Accept"] = "application/json" request.set_form_data( "email" => "jane.doe@example.com", "first_name" => "Jane", "last_name" => "Doe", "password" => "Sample@1234", )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Signed up successfully.",
    "user_details": {
    "user_id": 3001,
        "email_id": "jane.doe@example.com",
        "first_name": "Jane",
        "last_name": "Doe",
        "api_key": "<Your API_KEY goes here>"
    }
}

Sign up to Bugasura for the given email-id and password.

HTTP Request

POST https://api.bugasura.io/users/signup

Body Parameters

Parameter Type Default Description
email* String Email-id of the user.
password* String Password for the user.
first_name String First name of the user.
last_name String Last name of the user.

users/get

curl -X GET \
  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  https://api.bugasura.io/users/get
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/users/get');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: Basic <Your API_KEY goes here>',
  'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

response = requests.get('https://api.bugasura.io/users/get', headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/users/get"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/users/get', {
  headers: {
    'Authorization': 'Basic <Your API_KEY goes here>',
    'Accept': 'application/json'
  }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/users/get") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Users retrieved successfully.",
    "user_details": {
        "user_id": 3001,
        "first_name": "Jane",
        "last_name": "Doe",
        "email_id": "jane.doe@example.com",
        "plan": "PRO",
        "created_date": "2019-03-07 12:54:54",
        "team_details": [
            {
                "team_id": 1001,
                "team_name": "My Projects",
                "owner_id": 3001,
                "owner_name": "Jane Doe",
                "owner_email_id": "jane.doe@example.com",
                "plan": "PRO",
                "subscription_end_date": "2031-10-25 23:59:59",
                "subscription_frequency": "YEARLY"
            },
            {
                "team_id": 1002,
                "team_name": "product_team",
                "owner_id": 3002,
                "owner_name": "Alex Roe",
                "owner_email_id": "alex.roe@example.com",
                "plan": "PRO",
                "subscription_end_date": "2031-10-25 23:59:59",
                "subscription_frequency": "YEARLY"
            }
        ]
    }
}

Get the user details of the authorized user. It also lists the details of the team in which the user is a member of the team.

HTTP Request

GET https://api.bugasura.io/users/get

Query Parameters

None

users/update

curl -X POST \
  -H "Authorization: Basic <Your API_KEY goes here>" \
  -H 'Accept: application/json' \
  -d  'password=Sample@1234&first_name=Jane&last_name=Doe' \
  https://api.bugasura.io/users/update
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/users/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: Basic <Your API_KEY goes here>',
  'Accept: application/json',
  'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'password=Sample@1234&first_name=Jane&last_name=Doe');

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded', }

data = 'password=Sample@1234&first_name=Jane&last_name=Doe'

response = requests.post('https://api.bugasura.io/users/update', headers=headers, data=data)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/users/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("password=Sample@1234&first_name=Jane&last_name=Doe"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/users/update', {
  method: 'POST',
  headers: {
    'Authorization': 'Basic <Your API_KEY goes here>',
    'Accept': 'application/json',
    'Content-Type': 'application/x-www-form-urlencoded'
  },
  body: 'password=Sample@1234&first_name=Jane&last_name=Doe'
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/users/update") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( "first_name" => "Jane", "last_name" => "Doe", "password" => "Sample@1234", )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "User profile updated successfully."
}

Update the profile details of the authorized user. Send at least one of password, first_name or last_name; fields you leave out keep their current values.

HTTP Request

POST https://api.bugasura.io/users/update

Body Parameters

Parameter Type Default Description
password String New password for the user. Leave it out to keep the current password.
first_name String First name of the user.
last_name String Last name of the user.

CONTEXT

Knowledge Base

Endpoint prefix: knowledgebase (used by every endpoint in this section)

A knowledge base document is a piece of reference material that belongs to a project: a requirements file, meeting notes, an API description, or a document written in Bugasura itself. Documents are kept in the knowledge base folders of the project. The folders form their own tree, separate from the test case and requirement folders; list them with projectFolders/get and folderType=KNOWLEDGE_BASE, or read them from the kbRepoFoldersDetails field of knowledgebase/getDocs. Every document sits in exactly one folder and is identified by kb_id (called kbId in requests and kbIds in the response of knowledgebase/add).

Documents belong to the project, not to a sprint. A sprint can use the documents of its project, and a document or a page that sprints still use can't be deleted through the API, see knowledgebase/delete.

There are two kinds of document you can create:

knowledgebase/list

curl -L -X GET 'https://api.bugasura.io/knowledgebase/list?team_id=1001&appId=2001' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/knowledgebase/list?team_id=1001&appId=2001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'appId': '2001', }

response = requests.get('https://api.bugasura.io/knowledgebase/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/knowledgebase/list?team_id=1001&appId=2001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/knowledgebase/list?team_id=1001&appId=2001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/knowledgebase/list?team_id=1001&appId=2001")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Knowledge base list fetched successfully.",
  "kbDetails": [
    {
      "kb_id": 9701,
      "app_id": 2001,
      "report_id": null,
      "folder_id": 9001,
      "connection_details": "{\"file_details\":{\"original_filename\":\"Demo Requirements.pdf\",\"uploaded_filename\":\"kb-Demo_Requirements_202611011000001.pdf\",\"file_size\":120456,\"kbFilePath\":\"demo/kb/9701/kb-Demo_Requirements_202611011000001.pdf\"}}",
      "page_attachments": null,
      "source_type": "DEMO_FOLDER",
      "source": "UPLOAD_FILE",
      "type": "pdf",
      "stage": "CONNECTED",
      "created_date": "2026-11-01 10:00:00",
      "last_modified_date": "2026-11-01 10:00:00",
      "created_by": 3001,
      "modified_by": 3001,
      "is_starred": 0,
      "team_id": 1001,
      "app_name": "Demo Project",
      "created_by_name": "Demo User",
      "created_by_profile_image": "3001.avatar-1.png",
      "modified_by_name": "Demo User"
    }
  ]
}

List the knowledge base documents of a project, newest first, at both project and sprint level. Each entry holds the folder, the type, the stage, the stored connection_details (a JSON string with the file details of an uploaded file, or the name and pages of a custom_doc), the creator and the star flag. The entries carry some more internal fields than shown here. For an uploaded file, connection_details also holds kbFilePath, the path of the stored file. When nothing matches, kbDetails is [[]] (a list holding one empty list). To work with the folders, use knowledgebase/getDocs instead.

HTTP Request

GET https://api.bugasura.io/knowledgebase/list

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails with Project ID cannot be empty.
kbIds String Comma-separated document IDs, for example 9701,9702. Return only these documents. Every value must be a whole number of up to 11 digits.
kbSource String Return only the documents with this source, for example UPLOAD_FILE or CUSTOM_DOC. Up to 50 characters.
kbSourceType String Return only the documents with this source type. For documents added with knowledgebase/add it is the name of the folder in capital letters, with spaces replaced by _, for example DEMO_FOLDER. Up to 50 characters.

knowledgebase/get

curl -L -X GET 'https://api.bugasura.io/knowledgebase/get?team_id=1001&appId=2001&kbId=9701' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/knowledgebase/get?team_id=1001&appId=2001&kbId=9701');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'appId': '2001', 'kbId': '9701', }

response = requests.get('https://api.bugasura.io/knowledgebase/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/knowledgebase/get?team_id=1001&appId=2001&kbId=9701"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/knowledgebase/get?team_id=1001&appId=2001&kbId=9701', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/knowledgebase/get?team_id=1001&appId=2001&kbId=9701")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Knowledge base details fetched successfully.",
  "knowledgeBaseDetails": [
    {
      "kb_id": 9701,
      "app_id": 2001,
      "report_id": null,
      "folder_id": 9001,
      "connection_details": "{\"doc_name\":\"Demo Handbook\",\"doc_icon\":\"default\",\"pages_count\":1,\"isSubpageTagHidden\":0,\"pageDetails\":[{\"page_id\":\"page_20261101100000\",\"page_name\":\"Demo Page\",\"page_icon\":\"default\",\"uploaded_file_path\":\"\",\"creator_id\":3001,\"modified_by\":3001,\"created_on\":\"2026-11-01 10:00:00\",\"modified_on\":\"2026-11-01 10:00:00\",\"parent_id\":\"\"}]}",
      "page_attachments": null,
      "source_type": "DEMO_FOLDER",
      "source": "CUSTOM_DOC",
      "type": "custom_doc",
      "stage": "PROCESSED",
      "created_date": "2026-11-01 10:00:00",
      "last_modified_date": "2026-11-01 10:00:00",
      "created_by": 3001,
      "modified_by": 3001,
      "is_starred": 0,
      "team_id": 1001,
      "app_name": "Demo Project",
      "created_by_name": "Demo User",
      "created_by_profile_image": "3001.avatar-1.png",
      "modified_by_name": "Demo User"
    }
  ]
}

Get one knowledge base document of a project. knowledgeBaseDetails holds a single entry in the same format as an entry of knowledgebase/list; the sample shows a custom_doc, and for an uploaded file connection_details holds the file details instead. The entry carries some more internal fields than shown here. A document ID that does not exist in the project fails with Knowledge Base details is not available!.

HTTP Request

GET https://api.bugasura.io/knowledgebase/get

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails with Project ID cannot be empty.
kbId* Integer The ID of the document. Required: without it the call does not return a single document, the response holds every document of the project instead.

knowledgebase/getDocs

curl -L -X GET 'https://api.bugasura.io/knowledgebase/getDocs?team_id=1001&appId=2001&folderId=9001' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/knowledgebase/getDocs?team_id=1001&appId=2001&folderId=9001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'appId': '2001', 'folderId': '9001', }

response = requests.get('https://api.bugasura.io/knowledgebase/getDocs', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/knowledgebase/getDocs?team_id=1001&appId=2001&folderId=9001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/knowledgebase/getDocs?team_id=1001&appId=2001&folderId=9001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/knowledgebase/getDocs?team_id=1001&appId=2001&folderId=9001")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Knowledge base docs fetched successfully.",
  "kbDocsDetails": [
    {
      "kb_id": 9701,
      "folder_id": 9001,
      "doc_name": "Demo Requirements.pdf",
      "source": "UPLOAD_FILE",
      "source_type": "DEMO_FOLDER",
      "type": "pdf",
      "stage": "CONNECTED",
      "no_of_issues": null,
      "file_size": 120456,
      "kbFilePath": "demo/kb/9701/kb-Demo_Requirements_202611011000001.pdf",
      "connection_details": {
        "file_details": {
          "original_filename": "Demo Requirements.pdf",
          "uploaded_filename": "kb-Demo_Requirements_202611011000001.pdf",
          "file_size": 120456
        }
      },
      "created_date": "2026-11-01 10:00:00",
      "last_modified_date": "2026-11-01 10:00:00",
      "last_modified_relative": "2 hours ago",
      "created_by_name": "Demo User",
      "created_by_profile_image": "3001.avatar-1.png",
      "modified_by_name": "Demo User",
      "is_starred": 0
    }
  ],
  "kbRepoFoldersDetails": [
    {
      "id": 9001,
      "name": "Demo Folder",
      "parent_id": null,
      "tc_count": 0,
      "kb_count": 1,
      "is_archived": 0
    }
  ],
  "kbRepoStructure": [
    {
      "id": 9001,
      "children": []
    }
  ],
  "folderName": "Demo Folder",
  "folderDetails": {
    "folder_id": 9001,
    "name": "Demo Folder",
    "parent_name": ""
  }
}

List the documents of one knowledge base folder, including the documents of its sub-folders, newest first. Send folderId=all (or leave it out) to get the documents of every knowledge base folder of the project. doc_name is the file name of an uploaded file or the name of a custom_doc. The response also holds the folder list (kbRepoFoldersDetails), the folder tree (kbRepoStructure) and the selected folder (folderDetails, with the name of its parent folder). kbDocsDetails is an empty list when the folder holds no documents.

HTTP Request

GET https://api.bugasura.io/knowledgebase/getDocs

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Without it the request runs in your default team and fails with Invalid data provided! when the project is not in that team.
appId* Integer The ID of the project. Required. Without it the request fails with Project ID cannot be empty.
folderId String all The ID of a knowledge base folder, or all. A value that is not a number fails with Folder ID should contain only digits., and an ID that is not a knowledge base folder of the project fails with Invalid folder selected. Please refresh and try again. With all, folderDetails.folder_id is "".
isStarredOnly Integer 0 Send 1 to return only the documents you starred.

knowledgebase/add

curl -L -X POST 'https://api.bugasura.io/knowledgebase/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'folderId=9001' \
-F 'kbType=upload_file' \
-F 'choose_file_0=@Demo Requirements.pdf'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/knowledgebase/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'folderId' => '9001',
    'kbType' => 'upload_file',
    'choose_file_0' => new CURLFile('Demo Requirements.pdf'),
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': '1001', 'appId': '2001', 'folderId': '9001', 'kbType': 'upload_file', }

files = { 'choose_file_0': open('Demo Requirements.pdf', 'rb'), }

response = requests.post('https://api.bugasura.io/knowledgebase/add', headers=headers, data=data, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { String boundary = "----BugasuraBoundary" + System.currentTimeMillis(); URL url = new URL("https://api.bugasura.io/knowledgebase/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); addField(out, boundary, "team_id", "1001"); addField(out, boundary, "appId", "2001"); addField(out, boundary, "folderId", "9001"); addField(out, boundary, "kbType", "upload_file"); addFile(out, boundary, "choose_file_0", Paths.get("Demo Requirements.pdf")); out.write(("--" + boundary + "--\r\n").getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); }

private static void addField(OutputStream out, String boundary, String name, String value) throws IOException { String part = "--" + boundary + "\r\n" + "Content-Disposition: form-data; name=\"" + name + "\"\r\n\r\n" + value + "\r\n"; out.write(part.getBytes(StandardCharsets.UTF_8)); }

private static void addFile(OutputStream out, String boundary, String name, Path file) throws IOException { String contentType = Files.probeContentType(file); if (contentType == null) { contentType = "application/octet-stream"; } String header = "--" + boundary + "\r\n" + "Content-Disposition: form-data; name=\"" + name + "\"; filename=\"" + file.getFileName() + "\"\r\n" + "Content-Type: " + contentType + "\r\n\r\n"; out.write(header.getBytes(StandardCharsets.UTF_8)); out.write(Files.readAllBytes(file)); out.write("\r\n".getBytes(StandardCharsets.UTF_8)); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('folderId', '9001');
form.append('kbType', 'upload_file');
form.append('choose_file_0', fileInput.files[0]);

fetch('https://api.bugasura.io/knowledgebase/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/knowledgebase/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form([ ["team_id", "1001"], ["appId", "2001"], ["folderId", "9001"], ["kbType", "upload_file"], ["choose_file_0", File.open("Demo Requirements.pdf")], ], "multipart/form-data")

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Knowledge base entry added successfully.",
  "kbIds": [
    9701
  ]
}

Add documents to a knowledge base folder. The folder must be a knowledge base folder of the project, otherwise the request fails with Invalid Folder ID provided!.

With kbType=upload_file every uploaded file becomes its own document, and kbIds lists the new IDs in upload order. The field name of each file can be anything, but every file needs its own field name (for example choose_file_0, choose_file_1). A file with another type than txt, pdf, doc, docx or md fails with Invalid file extension., and a file over 100 MB fails with Max file size allowed is 100MB. If one file fails, none of the files of the request are kept. A request without any file succeeds with an empty kbIds. The new documents get the stage CONNECTED.

With kbType=custom_doc one empty document is created, with the name from customFileDetails and one page. Send for example -F 'kbType=custom_doc' -F 'customFileDetails={"doc_name":"Demo Handbook","page_name":"Demo Page"}'. The response then also holds kbDocDetails (kb_id, folder_id and the connection_details object with the name and the generated ID of the first page, such as page_20261101100000) and the document gets the stage PROCESSED (the stage is not part of kbDocDetails; read it with knowledgebase/get). Content is not accepted here; add it with knowledgebase/update and the action edit_page_content. A missing doc_name fails with Empty doc content provided!.

The invited members of the project are notified in-app that a document was added (you are left out). An uploaded txt, pdf, doc, docx or md file is also queued for background processing, so that the project's AI features can read it; a failure to queue it is only logged and does not fail the call. The files are saved in the storage of the team.

HTTP Request

POST https://api.bugasura.io/knowledgebase/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails with Project ID cannot be empty.
folderId* Integer The ID of the knowledge base folder to add the documents to. Required. Without it the request fails with Folder ID cannot be empty.
kbType* String upload_file or custom_doc. Up to 25 characters. The letter case does not matter.
choose_file_0 File Used with upload_file. A file to upload as multipart form data. Send one field for each file, for example choose_file_0 and choose_file_1. Allowed types: txt, pdf, doc, docx, md. Up to 100 MB each; the server may reject very large uploads earlier. The extension check ignores letter case, but the stored type keeps the case as given.
customFileDetails String Used with custom_doc. Required there. A JSON string: doc_name (required, the name of the document; the characters < and > are removed and the name is cut to 250 characters) and page_name (the name of the first page, Untitled Page when empty).

knowledgebase/update

curl -L -X POST 'https://api.bugasura.io/knowledgebase/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'kbId=9701' \
-F 'kbType=custom_doc' \
-F 'customFileDetails={"action":"edit_doc_name","doc_name":"Demo Handbook"}'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/knowledgebase/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'kbId' => '9701',
    'kbType' => 'custom_doc',
    'customFileDetails' => '{"action":"edit_doc_name","doc_name":"Demo Handbook"}',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'kbId': (None, '9701'), 'kbType': (None, 'custom_doc'), 'customFileDetails': (None, '{"action": "edit_doc_name", "doc_name": "Demo Handbook"}'), }

response = requests.post('https://api.bugasura.io/knowledgebase/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/knowledgebase/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&kbId=9701&kbType=custom_doc&customFileDetails=%7B%22action%22%3A%22edit_doc_name%22%2C%22doc_name%22%3A%22Demo+Handbook%22%7D";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('kbId', '9701');
form.append('kbType', 'custom_doc');
form.append('customFileDetails', JSON.stringify({ action: 'edit_doc_name', doc_name: 'Demo Handbook' }));

fetch('https://api.bugasura.io/knowledgebase/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/knowledgebase/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['kbId', '9701'],['kbType', 'custom_doc'],['customFileDetails', '{"action":"edit_doc_name","doc_name":"Demo Handbook"}']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "isConfirmRequired": 0,
  "message": "Knowledge base entry updated successfully.",
  "knowledgeBaseDetails": [
    {
      "kb_id": 9701,
      "app_id": 2001,
      "report_id": null,
      "folder_id": 9001,
      "connection_details": "{\"doc_name\":\"Demo Handbook\",\"doc_icon\":\"default\",\"pages_count\":1,\"isSubpageTagHidden\":0,\"pageDetails\":[{\"page_id\":\"page_20261101100000\",\"page_name\":\"Demo Page\",\"page_icon\":\"default\",\"uploaded_file_path\":\"\",\"creator_id\":3001,\"modified_by\":3001,\"created_on\":\"2026-11-01 10:00:00\",\"modified_on\":\"2026-11-01 10:00:00\",\"parent_id\":\"\"}]}",
      "page_attachments": null,
      "source_type": "DEMO_FOLDER",
      "source": "CUSTOM_DOC",
      "type": "custom_doc",
      "stage": "PROCESSED",
      "created_date": "2026-11-01 10:00:00",
      "last_modified_date": "2026-11-01 10:05:00",
      "created_by": 3001,
      "modified_by": 3001,
      "is_starred": 0,
      "team_id": 1001,
      "app_name": "Demo Project",
      "created_by_name": "Demo User",
      "created_by_profile_image": "3001.avatar-1.png",
      "modified_by_name": "Demo User"
    }
  ]
}

Change a knowledge base document. The call does one of two things.

To change a custom_doc, send kbType=custom_doc and customFileDetails, a JSON string with an action. The page actions use pageDetails, a list of objects, and most of them only look at the first one:

Action What it needs What it does
edit_doc_name doc_name Renames the document (the characters < and > are removed, up to 250 characters).
edit_page_name pageDetails[0].page_id, pageDetails[0].page_name Renames a page.
edit_page_content pageDetails[0].page_id, pageDetails[0].page_content Replaces the content of a page (Markdown). Empty content clears the page. The content is also saved for the AI features of the project.
add_page pageDetails[0].page_name (optional) Adds a page at the top level.
add_subpage pageDetails[0].page_id (the parent), pageDetails[0].page_name (optional) Adds a page under the given page.
add_sibling_page pageDetails[0].page_id (the page to follow), pageDetails[0].page_name (optional) Adds a page right after the given page, under the same parent.
duplicate_page pageDetails[0].page_id, optional pageDetails[0].include_sub_pages Copies a page and, unless include_sub_pages is 0, its sub-pages. The copy is named <name> (Copy).
delete_page pageDetails[0].page_id Deletes a page with its sub-pages and their stored content.
page_reposition pageDetails: every page of the document as {"page_id", "parent_id"}, in the new order Moves pages. The list must hold exactly the pages of the document, otherwise the request fails with Invalid doc details provided!.

add_page, add_subpage, add_sibling_page and duplicate_page return the new page in pageDetails. If the content can't be processed (edit_page_content, duplicate_page), the call fails with Error uploading knowledge base custom file and the page is not changed. A page ID that is not in the document fails with Invalid doc details provided!. If sprints use the document, delete_page changes nothing and returns the confirmation response {"status": "OK", "isConfirmRequired": 1, "linkedSprints": ["Demo Sprint"]}, where linkedSprints names the sprints that use the document. Pages of a document that sprints use can't be deleted through the API.

To star or unstar a document of any kind, send isStarred (1 or 0) and leave customFileDetails out. Starred documents are returned by knowledgebase/getDocs with isStarredOnly=1. Starring or unstarring also sends the in-app "document updated" notification to the invited members of the project and the creator of the document (you are left out), except members who turned off project-update notifications.

knowledgeBaseDetails holds the document after the change. The invited members of the project and the creator of the document are notified in-app (you are left out). Actions that change page content also queue a background refresh of the project's AI features.

HTTP Request

POST https://api.bugasura.io/knowledgebase/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails with Project ID cannot be empty.
kbId* Integer The ID of the document. Required. Without it the request fails with KB ID cannot be empty. A document that is not in the project fails with Knowledge Base details is not available!.
kbType String Send custom_doc whenever you send customFileDetails; without it nothing is changed. Up to 25 characters. The letter case does not matter.
customFileDetails String A JSON string with the action and its data, see above. Without a valid action the request fails with Invalid doc details provided!.
isStarred Integer 1 to star the document, 0 to unstar it. Exactly one digit.

knowledgebase/delete

curl -L -X POST 'https://api.bugasura.io/knowledgebase/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'kbId=9701'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/knowledgebase/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'kbId' => '9701',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'kbId': (None, '9701'), }

response = requests.post('https://api.bugasura.io/knowledgebase/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/knowledgebase/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&kbId=9701";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('kbId', '9701');

fetch('https://api.bugasura.io/knowledgebase/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/knowledgebase/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['kbId', '9701']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "isConfirmRequired": 0,
  "message": "Document moved to Trash."
}

Delete a knowledge base document. The document is moved to the project's Trash, where it can be restored; its files and the content of its pages are kept. For a project-level document a background refresh of the project's AI features is queued. While the project's AI training is in progress the delete is refused with Deleting KB files not allowed at this stage.

Documents that sprints use can't be deleted through the API. For such a document nothing is deleted and the call returns the confirmation response: status is OK, isConfirmRequired is 1, linkedSprints lists the names of the sprints that use the document and kbName is the name of the document, for example {"status": "OK", "isConfirmRequired": 1, "linkedSprints": ["Demo Sprint"], "kbName": "Demo Requirements.pdf"}. A document that does not exist in the project fails with Invalid data provided. Please refresh and try again. A request from someone who is not allowed to delete fails with Sorry you do not have permission to perform this action.

HTTP Request

POST https://api.bugasura.io/knowledgebase/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required, because the admin check uses it.
kbId* Integer The ID of the document to delete. Required. Without it the request fails with Knowledge Base Id cannot be empty.

Requirements

Endpoint prefixes: requirements, requirement (each endpoint in this section uses one of these)

requirements/list

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -X GET 'https://api.bugasura.io/requirements/list?appId=2001&teamId=1001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirements/list?appId=2001&teamId=1001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'appId': '2001', 'teamId': '1001' }

response = requests.get('https://api.bugasura.io/requirements/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirements/list?appId=2001&teamId=1001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/requirements/list?appId=2001&teamId=1001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/requirements/list?appId=2001&teamId=1001") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Requirements list fetched successfully.",
  "requirementsList": {
    "parents": [],
    "others": [
      {
        "requirement_id": 7001,
        "app_id": 2001,
        "folder_id": 9001,
        "title": "Document -1",
        "details": null,
        "source": "CUSTOM",
        "priority": "HIGH",
        "tags": null,
        "creator_id": 3001,
        "created_date": "2025-06-12 10:48:01",
        "last_modified_by": 3001,
        "last_modified": "2025-06-12 10:48:01",
        "creator_name": "Demo User",
        "creator_profile_image": "3001.avatar.png",
        "tc_count": 0,
        "NROWS": 3,
        "STATUS": "OK"
      },
      {
        "requirement_id": 7002,
        "app_id": 2001,
        "folder_id": 9001,
        "title": "Document",
        "details": null,
        "source": "CUSTOM",
        "priority": "HIGH",
        "tags": null,
        "creator_id": 3001,
        "created_date": "2025-06-12 10:47:39",
        "last_modified_by": 3001,
        "last_modified": "2025-06-12 10:47:39",
        "creator_name": "Demo User",
        "creator_profile_image": "3001.avatar.png",
        "tc_count": 0
      },
      {
        "requirement_id": 7003,
        "app_id": 2001,
        "folder_id": 9002,
        "title": "Ts-1",
        "details": null,
        "source": "CUSTOM",
        "priority": "HIGH",
        "tags": null,
        "creator_id": 3001,
        "created_date": "2025-06-12 10:42:04",
        "last_modified_by": 3001,
        "last_modified": "2025-06-12 10:42:04",
        "creator_name": "Demo User",
        "creator_profile_image": "3001.avatar.png",
        "tc_count": 0
      }
    ]
  },
  "totalRequirementsCount": 3,
  "isAdminUser": 1
}

This API endpoint will get list of requirements within a specified app and team.

HTTP Request

GET https://api.bugasura.io/requirements/list

Query Parameters

Parameter Type Default Description
appId* Integer ID for the application from which the requirements need to be fetched.
team_id* Integer ID of the team whose requirements needs to be retrieved.
sprintId Integer ID of the sprint associated with the requirement. Provides additional context filtering and validation for sprint-specific requirement retrieval.
folderId Integer ID of a specific folder to filter requirements. When provided, only returns requirements organized within that folder structure.

requirement/get

curl -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X GET 'https://api.bugasura.io/requirement/get?appId=2001&teamId=1001&requirementId=7001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirement/get?appId=2001&teamId=1001&requirementId=7001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'appId': '2001', 'teamId': '1001', 'requirementId': '7001' }

response = requests.get('https://api.bugasura.io/requirement/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirement/get?appId=2001&teamId=1001&requirementId=7001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/requirement/get?appId=2001&teamId=1001&requirementId=7001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/requirement/get?appId=2001&teamId=1001&requirementId=7001") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Requirement details fetched successfully.",
  "requirementDetails": [
    {
      "requirement_id": 7001,
      "app_id": 2001,
      "folder_id": 9001,
      "folder_name": "Test Flow",
      "title": "API testings",
      "details": null,
      "source": "CUSTOM",
      "priority": "HIGH",
      "connection_details": "null",
      "files_available": "{\"files_details\":[]}",
      "tools_project_name": null,
      "tools_project_id": null,
      "assignees": null,
      "tags": null,
      "creator_id": 3001,
      "created_date": "2025-06-12 12:34:42",
      "last_modified_by": 3001,
      "last_modified": "2025-06-12 12:34:42",
      "creator_name": "Demo User",
      "tc_count": 0,
      "NROWS": 1,
      "STATUS": "OK"
    }
  ]
}

This API endpoint will get a specific requirement within the specific app based on the requirement ID.

HTTP Request

GET https://api.bugasura.io/requirement/get

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the specific requirement need to be retrieved.
app_id* Integer ID of the application containing the requirement.
requirement_id* Integer ID of the specific requirement to be retrieved.
report_id Integer ID of the sprint associated with the requirement. Provides additional context for sprint-specific requirement retrieval.

requirement/add

curl -L -X POST 'https://api.bugasura.io/requirement/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001' \
-F 'folderId=9001' \
-F 'isQuickAdd=0' \
-F 'severity=HIGH' \
-F 'priority=P2' \
-F 'source=CUSTOM' \
-F 'title=Team Management'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirement/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'folderId' => '9001',
    'isQuickAdd' => '0',
    'severity' => 'HIGH',
    'priority' => 'P2',
    'source' => 'CUSTOM',
    'title' => 'Team Management'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }

data = { 'teamId': '1001', 'appId': '2001', 'folderId': '9001', 'isQuickAdd': '0', 'severity': 'HIGH', 'priority': 'P2', 'source': 'CUSTOM', 'title': 'Team Management' }

response = requests.post('https://api.bugasura.io/requirement/add', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirement/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "teamId=1001&appId=2001&folderId=9001&isQuickAdd=0&severity=HIGH&priority=P2&source=CUSTOM&title=Team+Management";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

int responseCode = httpConn.getResponseCode(); System.out.println("Response Code: " + responseCode); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('folderId', '9001');
form.append('isQuickAdd', '0');
form.append('severity', 'HIGH');
form.append('priority', 'P2');
form.append('source', 'CUSTOM');
form.append('title', 'Team Management');

fetch('https://api.bugasura.io/requirement/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI("https://api.bugasura.io/requirement/add") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "teamId" => "1001", "appId" => "2001", "folderId" => "9001", "isQuickAdd" => "0", "severity" => "HIGH", "priority" => "P2", "source" => "CUSTOM", "title" => "Team Management" })

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Requirement added successfully.",
  "requirement_id": 7001
}

This API endpoint will add a requirement within the specific app.

HTTP Request

POST https://api.bugasura.io/requirement/add

Body Parameters

Parameter Type Default Description
app_id* Integer ID for the application where the requirement will be added.
team_id* Integer ID of the team that owns the requirement.
folder_id* Integer ID of the folder where the requirement will be organized within the project structure
isQuickAdd* Integer Send 0.
severity* String Severity of the requirement. Accepted values('CRITICAL', 'HIGH', 'MEDIUM', 'LOW')
source* String Source of the requirement. Send CUSTOM.
title* String Clear and concise title of the requirement. This will be the main identifier for the requirement
priority String Priority of the requirement. It must be one of the priorities of the project (by default P1 to P4); a missing or unknown value is set to the middle priority of the project's list.
assignees String Comma-separated user IDs of the assignees.
tags String Tags for categorizing and filtering requirements
details String Comprehensive description of the requirement including acceptance criteria, specifications, and any additional context (if any)
sprintId Integer ID of a sprint of the project. The new requirement is also linked to this sprint.

requirement/update

curl -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X POST 'https://api.bugasura.io/requirement/update' \
    -F 'teamId=1001' \
    -F 'appId=2001' \
    -F 'requirementId=7001' \
    -F 'folderId=9001' \
    -F 'title=Team Management-1'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirement/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'requirementId' => '7001',
    'folderId' => '9001',
    'title' => 'Team Management-1'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'teamId': '1001', 'appId': '2001', 'requirementId': '7001', 'folderId': '9001', 'title': 'Team Management-1' }

response = requests.post('https://api.bugasura.io/requirement/update', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirement/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "teamId=1001&appId=2001&requirementId=7001&folderId=9001&title=Team+Management-1";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

int responseCode = httpConn.getResponseCode(); System.out.println("Response Code: " + responseCode); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('requirementId', '7001');
form.append('folderId', '9001');
form.append('title', 'Team Management-1');

fetch('https://api.bugasura.io/requirement/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/requirement/update") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "teamId" => "1001", "appId" => "2001", "requirementId" => "7001", "folderId" => "9001", "title" => "Team Management-1" })

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Requirement updated successfully."
}

This API endpoint will update the specific requirement.

Send only the fields you want to change. A field you leave out keeps its current value. Send a field empty to clear it, which works for details, overview, assignees, tag, parentId and estimation. title, severity and approvalStatus cannot be cleared, so sending one of them empty also keeps its current value. Sending priority, type or status empty sets it to the first value in the project settings, so leave them out to keep them.

HTTP Request

POST https://api.bugasura.io/requirement/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
app_id* Integer ID of the application containing the requirement to be updated
requirement_id* Integer ID of the specific requirement to be updated.
folder_id* Integer ID of the folder the requirement is in, or the folder it should be moved to.
report_id Integer ID of a sprint, to update the sprint copy of the requirement.
title String Updated title of the requirement. Provide only if changing the current title
details String Updated comprehensive description including acceptance criteria and specifications. Provide only if modifying existing details
priority String Updated priority of the requirement. It must be one of the priorities of the project; any other value is set to the project's first priority.
assignees String Updated comma-separated user IDs of the assignees.
tag String Updated tag(s) for categorizing and filtering requirements.
severity String Updated severity of the requirement, one of LOW, MEDIUM, HIGH or CRITICAL. Up to 25 characters.
type String Updated type of the requirement. It must be one of the types of the project. Up to 60 characters.
status String Updated status of the requirement. It must be one of the statuses of the project. Up to 50 characters.
overview String Updated short overview of the requirement. Up to 5000 characters.
parentId Integer ID of the parent requirement.
estimation Integer Updated estimation of the requirement.
approvalStatus String Updated approval status of the requirement. Up to 20 characters.

requirement/delete

curl -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X POST 'https://api.bugasura.io/requirement/delete' \
    -F 'teamId=1001' \
    -F 'appId=2001' \
    -F 'requirementId=7001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirement/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'requirementId' => '7001'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'teamId': '1001', 'appId': '2001', 'requirementId': '7001' }

response = requests.post('https://api.bugasura.io/requirement/delete', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirement/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "teamId=1001&appId=2001&requirementId=7001";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

int responseCode = httpConn.getResponseCode(); System.out.println("Response Code: " + responseCode); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('requirementId', '7001');

fetch('https://api.bugasura.io/requirement/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/requirement/delete") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "teamId" => "1001", "appId" => "2001", "requirementId" => "7001" })

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Requirement deleted successfully."
}

This API endpoint will delete a requirement.

HTTP Request

POST https://api.bugasura.io/requirement/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
app_id* Integer ID for the application containing the requirement to be deleted.
requirement_id* Integer ID of the specific requirement to be deleted.
report_id Integer ID of the sprint containing the requirement. When sent, the requirement is only removed from that sprint and stays in the project.
folder_id Integer ID of the folder containing the requirement. Used for additional validation and to ensure proper cleanup of folder associations.

requirement/linkUnlinkRequirementTestCases

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X POST 'https://api.bugasura.io/requirement/linkUnlinkRequirementTestCases' \
    -F 'appId=2001' \
    -F 'teamId=1001' \
    -F 'requirementId=7001' \
    -F 'testCaseId=8001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirement/linkUnlinkRequirementTestCases');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'appId' => '2001',
    'teamId' => '1001',
    'requirementId' => '7001',
    'testCaseId' => '8001'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'appId': '2001', 'teamId': '1001', 'requirementId': '7001', 'testCaseId': '8001' }

response = requests.post('https://api.bugasura.io/requirement/linkUnlinkRequirementTestCases', headers=headers, data=data)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirement/linkUnlinkRequirementTestCases"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "appId=2001&teamId=1001&requirementId=7001&testCaseId=8001";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length);
}

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('appId', '2001');
form.append('teamId', '1001');
form.append('requirementId', '7001');
form.append('testCaseId', '8001');

fetch('https://api.bugasura.io/requirement/linkUnlinkRequirementTestCases', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/requirement/linkUnlinkRequirementTestCases") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "appId" => "2001", "teamId" => "1001", "requirementId" => "7001", "testCaseId" => "8001" })

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

Response when the testcase is linked with a requirement:

{
    "status": "OK",
    "message": "Test case linked successfully."
}

Response when the testcase is unlinked from a requirement:

{
    "status": "OK",
    "message": "Test case unlinked successfully."
}

This endpoint will link/unlink test cases from requirements, enabling traceability between requirements and their corresponding test cases.

HTTP Request

POST https://api.bugasura.io/requirement/linkUnlinkRequirementTestCases

Body Parameters

Parameter Type Default Description
app_id* Integer ID of the application containing the requirement. This specifies which application's requirements and test cases are being managed.
team_id* Integer ID of the team that owns the requirement. This ensures the operation is performed within the correct team context and access permissions.
testCaseId Integer ID of the test case to link. Required when linking.
requirement_id* Integer ID of the requirement to which test cases will be linked/unlinked.
sprint_id Integer ID of the sprint. Include this when linking test cases within a specific sprint context for better organization.
folder_id Integer ID of the requirement folder.
isDelete Integer 0 Pass 1 to unlink a test case. deleteTestCaseId is then required.
deleteTestCaseId Integer ID of a test case to be unlinked from the requirement. Use this parameter when removing an existing association between a requirement and test case.

curl -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X GET 'https://api.bugasura.io/requirements/sprint/link?teamId=1001&appId=2001&reportId=4001&requirementId=7001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirements/sprint/link?teamId=1001&appId=2001&reportId=4001&requirementId=7001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'teamId': '1001', 'appId': '2001', 'reportId': '4001', 'requirementId': '7001', }

response = requests.get('https://api.bugasura.io/requirements/sprint/link', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirements/sprint/link?teamId=1001&appId=2001&reportId=4001&requirementId=7001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/requirements/sprint/link?teamId=1001&appId=2001&reportId=4001&requirementId=7001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/requirements/sprint/link?teamId=1001&appId=2001&reportId=4001&requirementId=7001") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Linked the requirement successfully."
}

Link a requirement to a sprint. This is a GET request, but it changes data. Linking a requirement that is already linked to the sprint also succeeds and changes nothing. Send a requirement and a sprint of the same project. To link a requirement while creating it, send sprintId to requirement/add. To remove a requirement from a sprint, send report_id to requirement/delete; requirement/update does not unlink.

HTTP Request

GET https://api.bugasura.io/requirements/sprint/link

Query Parameters

Parameter Type Default Description
teamId* Integer The ID of the team the project belongs to. Send it as teamId or team_id. Without either the request runs in your default team and fails with Invalid data provided! when the project is not in that team.
reportId* Integer The ID of the sprint to link the requirement to. Without it the request fails with Report Id cannot be empty.
requirementId* Integer The ID of the requirement to link. Without it the request fails with Requirement Id cannot be empty.
appId* Integer The ID of the project that holds the requirement and the sprint. Required. Without it, or when you are not a member of the project, the request fails with Invalid data provided!.

requirement/addDeleteRequirementAttachments

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X POST 'https://api.bugasura.io/requirement/addDeleteRequirementAttachments' \
    -F 'teamId=1001' \
    -F 'appId=2001' \
    -F 'requirementId=7001' \
    -F 'file1=@login-flow.png' \
    -F 'file2=@notes.pdf'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirement/addDeleteRequirementAttachments');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'requirementId' => '7001',
    'file1' => new CURLFile('login-flow.png'),
    'file2' => new CURLFile('notes.pdf')
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'teamId': '1001', 'appId': '2001', 'requirementId': '7001' }

files = { 'file1': open('login-flow.png', 'rb'), 'file2': open('notes.pdf', 'rb') }

response = requests.post('https://api.bugasura.io/requirement/addDeleteRequirementAttachments', headers=headers, data=data, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { String boundary = "----BugasuraBoundary" + System.currentTimeMillis(); URL url = new URL("https://api.bugasura.io/requirement/addDeleteRequirementAttachments"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); addField(out, boundary, "teamId", "1001"); addField(out, boundary, "appId", "2001"); addField(out, boundary, "requirementId", "7001"); addFile(out, boundary, "file1", Paths.get("login-flow.png")); addFile(out, boundary, "file2", Paths.get("notes.pdf")); out.write(("--" + boundary + "--\r\n").getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); }

private static void addField(OutputStream out, String boundary, String name, String value) throws IOException { String part = "--" + boundary + "\r\n" + "Content-Disposition: form-data; name=\"" + name + "\"\r\n\r\n" + value + "\r\n"; out.write(part.getBytes(StandardCharsets.UTF_8)); }

private static void addFile(OutputStream out, String boundary, String name, Path file) throws IOException { String contentType = Files.probeContentType(file); if (contentType == null) { contentType = "application/octet-stream"; } String header = "--" + boundary + "\r\n" + "Content-Disposition: form-data; name=\"" + name + "\"; filename=\"" + file.getFileName() + "\"\r\n" + "Content-Type: " + contentType + "\r\n\r\n"; out.write(header.getBytes(StandardCharsets.UTF_8)); out.write(Files.readAllBytes(file)); out.write("\r\n".getBytes(StandardCharsets.UTF_8)); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('requirementId', '7001');
form.append('file1', File(['<data goes here>'], 'login-flow.png'));
form.append('file2', File(['<data goes here>'], 'notes.pdf'));

fetch('https://api.bugasura.io/requirement/addDeleteRequirementAttachments', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/requirement/addDeleteRequirementAttachments") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form([ ["teamId", "1001"], ["appId", "2001"], ["requirementId", "7001"], ["file1", File.open("login-flow.png")], ["file2", File.open("notes.pdf")] ], "multipart/form-data")

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "2 file(s) uploaded successfully.",
  "fileAvailableDetails": {
    "files_details": [
      {
        "original_filename": "login-flow.png",
        "uploaded_filename": "req-login-flow_202601151000001.png",
        "file_size": 20480,
        "file_ext": "png"
      },
      {
        "original_filename": "notes.pdf",
        "uploaded_filename": "req-notes_202601151000002.pdf",
        "file_size": 10240,
        "file_ext": "pdf"
      }
    ]
  },
  "requirementId": "7001"
}

Add attachments to a requirement, or remove one. To add, send the files as multipart form fields. Every file in the request is uploaded, whatever the name of its field, but send each file in a field of its own (file1, file2 and so on) and not as an array such as attachments[]. A file larger than 100 MB is skipped and reported in the message, and at most 100 files are stored per call. The response lists all the attachments of the requirement.

To remove an attachment, send isDelete=1 with deleteFileName, the original_filename of the attachment. The attachment is taken off the requirement; the uploaded file itself is not erased from storage. Removing a name that is not attached also returns success.

Each add or remove writes an activity entry to the comments of the requirement and sends an in-app notification to the other members of the project and to the assignees and creator of the requirement.

HTTP Request

POST https://api.bugasura.io/requirement/addDeleteRequirementAttachments

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project that holds the requirement. Without it the request fails with App ID cannot be empty.
requirementId* Integer The ID of the requirement. Without it the request fails with Requirement ID cannot be empty.
files File One or more files to attach, sent as multipart form fields. Required when adding: without a file the request fails with No files provided for upload.
isDelete Integer 0 Pass 1 to remove an attachment instead of adding files. deleteFileName is then required.
deleteFileName String The original_filename of the attachment to remove. Without it the request fails with No file specified for deletion.
sprintId Integer The ID of a sprint, to log the activity entry on the requirement in that sprint. The requirement must already be linked to that sprint. Omit it unless you need the sprint-level activity entry.
folderId Integer The ID of the requirement folder. It is validated as a number and has no other effect.

Requirement Comments

Endpoint prefix: requirementcomments (used by every endpoint in this section)

requirementcomments/list

curl -L -X GET 'https://api.bugasura.io/requirementcomments/list?team_id=1001&app_id=2001&requirementId=7001' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirementcomments/list?team_id=1001&app_id=2001&requirementId=7001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'app_id': '2001', 'requirementId': '7001', }

response = requests.get('https://api.bugasura.io/requirementcomments/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirementcomments/list?team_id=1001&app_id=2001&requirementId=7001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/requirementcomments/list?team_id=1001&app_id=2001&requirementId=7001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/requirementcomments/list?team_id=1001&app_id=2001&requirementId=7001")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Comments list fetched successfully.",
  "commentsList": [
    {
      "requirement_id": 7001,
      "id": "1",
      "title": "Demo password reset",
      "assignees": "",
      "severity": "MEDIUM",
      "user_creator_id": 3001,
      "comment_id": 7503,
      "comment": "<strong>Demo User</strong> has added <span>1 attachment</span>",
      "comment_template": "{\"key\":\"testResultComments.attachments_added_singular\",\"params\":{\"user\":\"<strong>Demo User</strong>\",\"count\":1}}",
      "comment_report_id": null,
      "parent_comment_id": null,
      "comment_images": null,
      "comment_attachments": null,
      "creator_id": "3001",
      "created_dt": "2026-01-15 10:00:00",
      "modified_by": null,
      "last_modified": "2026-01-15 10:00:00",
      "is_deleted": 0,
      "is_system_comment": 1,
      "comment_creator_id": 3001,
      "comment_creator_name": "Demo User",
      "name": "Demo User",
      "comment_creator_email_id": "demo.user@example.com",
      "profile_image": "3001.avatar.png",
      "comment_creator_profile_image": "3001.avatar.png",
      "comment_modified_by_id": null,
      "comment_modified_by_name": null,
      "comment_modified_by_email_id": null,
      "comment_modified_by_profile_image": null,
      "is_public": 1,
      "updated_fields": null,
      "source": "PLATFORM",
      "asura_id": null,
      "testrun_execution_run_id": null,
      "NROWS": 3,
      "STATUS": "OK"
    },
    {
      "requirement_id": 7001,
      "id": "1",
      "title": "Demo password reset",
      "assignees": "",
      "severity": "MEDIUM",
      "user_creator_id": 3001,
      "comment_id": 7502,
      "comment": "Demo reply.",
      "comment_template": null,
      "comment_report_id": null,
      "parent_comment_id": 7501,
      "comment_images": null,
      "comment_attachments": null,
      "creator_id": "3001",
      "created_dt": "2026-01-15 10:00:00",
      "modified_by": null,
      "last_modified": "2026-01-15 10:00:00",
      "is_deleted": 0,
      "is_system_comment": 0,
      "comment_creator_id": 3001,
      "comment_creator_name": "Demo User",
      "name": "Demo User",
      "comment_creator_email_id": "demo.user@example.com",
      "profile_image": "3001.avatar.png",
      "comment_creator_profile_image": "3001.avatar.png",
      "comment_modified_by_id": null,
      "comment_modified_by_name": null,
      "comment_modified_by_email_id": null,
      "comment_modified_by_profile_image": null,
      "is_public": 1,
      "updated_fields": null,
      "source": "PLATFORM",
      "asura_id": null,
      "testrun_execution_run_id": null
    },
    {
      "requirement_id": 7001,
      "id": "1",
      "title": "Demo password reset",
      "assignees": "",
      "severity": "MEDIUM",
      "user_creator_id": 3001,
      "comment_id": 7501,
      "comment": "Demo comment on the password reset requirement.",
      "comment_template": null,
      "comment_report_id": null,
      "parent_comment_id": null,
      "comment_images": null,
      "comment_attachments": null,
      "creator_id": "3001",
      "created_dt": "2026-01-15 10:00:00",
      "modified_by": null,
      "last_modified": "2026-01-15 10:00:00",
      "is_deleted": 0,
      "is_system_comment": 0,
      "comment_creator_id": 3001,
      "comment_creator_name": "Demo User",
      "name": "Demo User",
      "comment_creator_email_id": "demo.user@example.com",
      "profile_image": "3001.avatar.png",
      "comment_creator_profile_image": "3001.avatar.png",
      "comment_modified_by_id": null,
      "comment_modified_by_name": null,
      "comment_modified_by_email_id": null,
      "comment_modified_by_profile_image": null,
      "is_public": 1,
      "updated_fields": null,
      "source": "PLATFORM",
      "asura_id": null,
      "testrun_execution_run_id": null
    }
  ]
}

List the comments of a requirement, newest first. Replies are listed as separate rows with parent_comment_id set. Comments written by the system, such as attachment logs, are included with is_system_comment set to 1. The list is not paged. Without report_id, only comments that are not tied to a sprint are returned. commentsList is null when the requirement is not found in the project.

HTTP Request

GET https://api.bugasura.io/requirementcomments/list

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
app_id* Integer The ID of the project that holds the requirement. appId is also accepted.
requirementId* Integer The ID of the requirement. Without it the request fails with There was an error processing your request. Please contact support@bugasura.io
report_id Integer The ID of a sprint. Returns the comments made on the requirement in that sprint instead of the ones not tied to a sprint. reportId is also accepted.

requirementcomments/add

curl -L -X POST 'https://api.bugasura.io/requirementcomments/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'app_id=2001' \
-F 'requirementId=7001' \
-F 'comment=Demo comment on the password reset requirement.'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirementcomments/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'app_id' => '2001',
    'requirementId' => '7001',
    'comment' => 'Demo comment on the password reset requirement.',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'app_id': (None, '2001'), 'requirementId': (None, '7001'), 'comment': (None, 'Demo comment on the password reset requirement.'), }

response = requests.post('https://api.bugasura.io/requirementcomments/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirementcomments/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&app_id=2001&requirementId=7001&comment=Demo+comment+on+the+password+reset+requirement.";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('app_id', '2001');
form.append('requirementId', '7001');
form.append('comment', 'Demo comment on the password reset requirement.');

fetch('https://api.bugasura.io/requirementcomments/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/requirementcomments/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['app_id', '2001'],['requirementId', '7001'],['comment', 'Demo comment on the password reset requirement.']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Comment added successfully",
  "commentDetails": {
    "requirement_id": 7001,
    "id": "1",
    "title": "Demo password reset",
    "assignees": "",
    "severity": "MEDIUM",
    "user_creator_id": 3001,
    "comment_id": 7501,
    "comment": "Demo comment on the password reset requirement.",
    "comment_template": null,
    "comment_report_id": null,
    "parent_comment_id": null,
    "comment_images": null,
    "comment_attachments": null,
    "creator_id": "3001",
    "created_dt": "2026-01-15 10:00:00",
    "modified_by": null,
    "last_modified": "2026-01-15 10:00:00",
    "is_deleted": 0,
    "is_system_comment": 0,
    "comment_creator_id": 3001,
    "comment_creator_name": "Demo User",
    "name": "Demo User",
    "comment_creator_email_id": "demo.user@example.com",
    "profile_image": "3001.avatar.png",
    "comment_creator_profile_image": "3001.avatar.png",
    "comment_modified_by_id": null,
    "comment_modified_by_name": null,
    "comment_modified_by_email_id": null,
    "comment_modified_by_profile_image": null,
    "is_public": 1,
    "updated_fields": null,
    "source": "PLATFORM",
    "asura_id": null,
    "testrun_execution_run_id": null,
    "NROWS": 1,
    "STATUS": "OK"
  }
}

Add a comment to a requirement. To reply to a comment, send the ID of that comment in parentCommentId. The comment text can contain HTML. Mentioning a team member in the comment notifies that person, and a new comment notifies the other members of the project and the assignees and creator of the requirement.

HTTP Request

POST https://api.bugasura.io/requirementcomments/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
app_id* Integer The ID of the project that holds the requirement. appId is also accepted.
requirementId* Integer The ID of the requirement. Without it the request fails with Invalid requirement selected.
comment* String Text of the comment. 1 to 65535 characters.
parentCommentId Integer The ID of the comment you are replying to. An unknown ID fails the call.
report_id Integer The ID of a sprint, to comment on the requirement in that sprint. Without it the comment is not tied to a sprint. reportId is also accepted.

requirementcomments/get

curl -L -X GET 'https://api.bugasura.io/requirementcomments/get?team_id=1001&app_id=2001&requirementId=7001&commentId=7501' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirementcomments/get?team_id=1001&app_id=2001&requirementId=7001&commentId=7501');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'app_id': '2001', 'requirementId': '7001', 'commentId': '7501', }

response = requests.get('https://api.bugasura.io/requirementcomments/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirementcomments/get?team_id=1001&app_id=2001&requirementId=7001&commentId=7501"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/requirementcomments/get?team_id=1001&app_id=2001&requirementId=7001&commentId=7501', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/requirementcomments/get?team_id=1001&app_id=2001&requirementId=7001&commentId=7501")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Comments fetched successfully",
  "commentDetails": [
    {
      "requirement_id": 7001,
      "id": "1",
      "title": "Demo password reset",
      "assignees": "",
      "severity": "MEDIUM",
      "user_creator_id": 3001,
      "comment_id": 7501,
      "comment": "Demo comment on the password reset requirement.",
      "comment_template": null,
      "comment_report_id": null,
      "parent_comment_id": null,
      "comment_images": null,
      "comment_attachments": null,
      "creator_id": "3001",
      "created_dt": "2026-01-15 10:00:00",
      "modified_by": null,
      "last_modified": "2026-01-15 10:00:00",
      "is_deleted": 0,
      "is_system_comment": 0,
      "comment_creator_id": 3001,
      "comment_creator_name": "Demo User",
      "name": "Demo User",
      "comment_creator_email_id": "demo.user@example.com",
      "profile_image": "3001.avatar.png",
      "comment_creator_profile_image": "3001.avatar.png",
      "comment_modified_by_id": null,
      "comment_modified_by_name": null,
      "comment_modified_by_email_id": null,
      "comment_modified_by_profile_image": null,
      "is_public": 1,
      "updated_fields": null,
      "source": "PLATFORM",
      "asura_id": null,
      "testrun_execution_run_id": null,
      "NROWS": 1,
      "STATUS": "OK",
      "issue_creator_id": "3001",
      "comment_attachments_files": []
    }
  ]
}

Get one comment of a requirement, or its replies. Send commentId for one comment and parentCommentId for the replies to a comment. If you send neither, all comments of the requirement are returned. issue_creator_id is the ID of the user who created the requirement.

HTTP Request

GET https://api.bugasura.io/requirementcomments/get

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
app_id* Integer The ID of the project that holds the requirement. appId is also accepted.
requirementId* Integer The ID of the requirement. Without it the request fails with There was an error processing your request. Please contact support@bugasura.io
commentId Integer The ID of the comment to return.
parentCommentId Integer Return the replies to this comment.
reportId Integer The ID of a sprint, to read the comments made on the requirement in that sprint. Without it, only comments that are not tied to a sprint are returned.

requirementcomments/update

curl -L -X POST 'https://api.bugasura.io/requirementcomments/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'app_id=2001' \
-F 'requirementId=7001' \
-F 'comment_id=7502' \
-F 'comment=Demo reply edited.'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirementcomments/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'app_id' => '2001',
    'requirementId' => '7001',
    'comment_id' => '7502',
    'comment' => 'Demo reply edited.',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'app_id': (None, '2001'), 'requirementId': (None, '7001'), 'comment_id': (None, '7502'), 'comment': (None, 'Demo reply edited.'), }

response = requests.post('https://api.bugasura.io/requirementcomments/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirementcomments/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&app_id=2001&requirementId=7001&comment_id=7502&comment=Demo+reply+edited.";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('app_id', '2001');
form.append('requirementId', '7001');
form.append('comment_id', '7502');
form.append('comment', 'Demo reply edited.');

fetch('https://api.bugasura.io/requirementcomments/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/requirementcomments/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['app_id', '2001'],['requirementId', '7001'],['comment_id', '7502'],['comment', 'Demo reply edited.']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Comment updated successfully",
  "commentDetails": {
    "requirement_id": 7001,
    "id": "1",
    "title": "Demo password reset",
    "assignees": "",
    "severity": "MEDIUM",
    "user_creator_id": 3001,
    "comment_id": 7502,
    "comment": "Demo reply edited.",
    "comment_template": null,
    "comment_report_id": null,
    "parent_comment_id": 7501,
    "comment_images": null,
    "comment_attachments": null,
    "creator_id": "3001",
    "created_dt": "2026-01-15 10:00:00",
    "modified_by": 3001,
    "last_modified": "2026-01-15 10:05:00",
    "is_deleted": 0,
    "is_system_comment": 0,
    "comment_creator_id": 3001,
    "comment_creator_name": "Demo User",
    "name": "Demo User",
    "comment_creator_email_id": "demo.user@example.com",
    "profile_image": "3001.avatar.png",
    "comment_creator_profile_image": "3001.avatar.png",
    "comment_modified_by_id": 3001,
    "comment_modified_by_name": "Demo User",
    "comment_modified_by_email_id": "demo.user@example.com",
    "comment_modified_by_profile_image": "3001.avatar.png",
    "is_public": 1,
    "updated_fields": null,
    "source": "PLATFORM",
    "asura_id": null,
    "testrun_execution_run_id": null,
    "NROWS": 1,
    "STATUS": "OK"
  },
  "last_modified": "2026-01-15 10:05:00",
  "created_dt": "2026-01-15 10:00:00"
}

Edit the text of a comment. You can only edit your own comments, and not comments that were deleted. The assignees of the requirement, except you, get an in-app notification; if the requirement has no assignees, nobody is notified.

HTTP Request

POST https://api.bugasura.io/requirementcomments/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
app_id* Integer The ID of the project that holds the requirement. appId is also accepted.
requirementId* Integer The ID of the requirement.
comment_id* Integer The ID of the comment to edit. commentId is also accepted. Without it the request fails with Comment ID cannot be empty.
comment* String The new text of the comment. 1 to 65535 characters.
reportId Integer The ID of a sprint, if the comment was made on the requirement in that sprint.

requirementcomments/delete

curl -L -X POST 'https://api.bugasura.io/requirementcomments/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'app_id=2001' \
-F 'requirementId=7001' \
-F 'comment_id=7501'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/requirementcomments/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'app_id' => '2001',
    'requirementId' => '7001',
    'comment_id' => '7501',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'app_id': (None, '2001'), 'requirementId': (None, '7001'), 'comment_id': (None, '7501'), }

response = requests.post('https://api.bugasura.io/requirementcomments/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/requirementcomments/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&app_id=2001&requirementId=7001&comment_id=7501";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('app_id', '2001');
form.append('requirementId', '7001');
form.append('comment_id', '7501');

fetch('https://api.bugasura.io/requirementcomments/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/requirementcomments/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['app_id', '2001'],['requirementId', '7001'],['comment_id', '7501']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Comment deleted successfully",
  "commentDetails": {
    "requirement_id": 7001,
    "id": "1",
    "title": "Demo password reset",
    "assignees": "",
    "severity": "MEDIUM",
    "user_creator_id": 3001,
    "comment_id": 7501,
    "comment": "This comment is deleted by <strong>Demo User</strong>",
    "comment_template": "{\"key\":\"shared.comment_deleted_by\",\"params\":{\"user\":\"Demo User\"}}",
    "comment_report_id": null,
    "parent_comment_id": null,
    "comment_images": null,
    "comment_attachments": null,
    "creator_id": "3001",
    "created_dt": "2026-01-15 10:00:00",
    "modified_by": 3001,
    "last_modified": "2026-01-15 10:05:00",
    "is_deleted": 1,
    "is_system_comment": 0,
    "comment_creator_id": 3001,
    "comment_creator_name": "Demo User",
    "name": "Demo User",
    "comment_creator_email_id": "demo.user@example.com",
    "profile_image": "3001.avatar.png",
    "comment_creator_profile_image": "3001.avatar.png",
    "comment_modified_by_id": 3001,
    "comment_modified_by_name": "Demo User",
    "comment_modified_by_email_id": "demo.user@example.com",
    "comment_modified_by_profile_image": "3001.avatar.png",
    "is_public": 1,
    "updated_fields": null,
    "source": "PLATFORM",
    "asura_id": null,
    "testrun_execution_run_id": null,
    "NROWS": 1,
    "STATUS": "OK"
  }
}

Delete a comment. The comment stays in the list with its text replaced by a deleted notice and is_deleted set to 1. You can delete your own comments. Team admins and project admins can delete the comments of others. System comments cannot be deleted. The files attached to the comment and its inline images are erased from storage. The project participants, the assignees and creator of the requirement and the author of the comment, except you, get an in-app notification that the comment was deleted.

HTTP Request

POST https://api.bugasura.io/requirementcomments/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
app_id* Integer The ID of the project that holds the requirement. appId is also accepted.
requirementId* Integer The ID of the requirement.
comment_id* Integer The ID of the comment to delete. commentId is also accepted. Without it the request fails with Comment ID cannot be empty.
report_id Integer The ID of a sprint, if the comment was made on the requirement in that sprint. Without it, only comments that are not tied to a sprint are matched. reportId is also accepted.

MANAGE

Test Cases

Endpoint prefix: testcases (used by every endpoint in this section)

testcases/list

curl -L -X GET 'https://api.bugasura.io/testcases/list?app_id=2001&team_id=1001' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcases/list?app_id=2001&team_id=1001&suites_id=9501&folder_id=9001&sortBy=last_modified&searchText=login&groupBy=priority');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'app_id': '2001', 'team_id': '1001', }

response = requests.get('https://api.bugasura.io/testcases/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcases/list?app_id=2001&team_id=1001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/testcases/list?app_id=2001&team_id=1001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testcases/list?app_id=2001&team_id=1001")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Test cases list fetched successfully",
    "testCaseDetails": [
        {
            "app_id": 2001,
            "app_name": "Demo Project",
            "team_id": 1001,
            "test_case_id": 8001,
            "test_case_number": "TES3",
            "id": "3",
            "folder_id": 9001,
            "scenario": "API tset case",
            "testing_type": "Functional,API",
            "source": "USER",
            "priority": "MEDIUM",
            "feature_name": "Feature",
            "sub_feature_name": "Feature",
            "creator_id": 3001,
            "creator_name": "Demo User",
            "creator_profile_image": "3001.avatar.png",
            "NROWS": 3,
            "STATUS": "OK"
        },
        {
            "app_id": 2001,
            "app_name": "Demo Project",
            "team_id": 1001,
            "test_case_id": 8002,
            "test_case_number": "TES2",
            "id": "2",
            "folder_id": 9002,
            "scenario": "Test caes tsetinf",
            "testing_type": "Functional",
            "source": "USER",
            "priority": "MEDIUM",
            "feature_name": "faeture",
            "sub_feature_name": "sub feature",
            "creator_id": 3001,
            "creator_name": "Demo User",
            "creator_profile_image": "3001.avatar.png"
        },
        {
            "app_id": 2001,
            "app_name": "Demo Project",
            "team_id": 1001,
            "test_case_id": 8003,
            "test_case_number": "TES1",
            "id": "1",
            "folder_id": 9003,
            "scenario": "login page",
            "testing_type": "UI",
            "source": "USER",
            "priority": "MEDIUM",
            "feature_name": "feature",
            "sub_feature_name": "sub feature",
            "creator_id": 3001,
            "creator_name": "Demo User",
            "creator_profile_image": "3001.avatar.png"
        }
    ],
    "totalTestCasesCount": 3
}

This API endpoint gets the list of test case details.

HTTP Request

GET https://api.bugasura.io/testcases/list

Query Parameters

Parameter Type Default Description
app_id* Integer ID of the application for which test cases need to be listed.
team_id* Integer ID of the team for which the test cases need to be listed.
suites_id Integer ID of the test suite to filter test cases.
folder_id Integer ID of the folder to filter test cases from specific folder.
tag_id Integer ID of the tag to filter test cases by tag.
totalLoadedCount Integer Number of test cases already loaded (for pagination).

testcases/get

curl -L -X GET 'https://api.bugasura.io/testcases/get?app_id=2001&team_id=1001&report_id=4001&testcase_id=8001' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcases/get?app_id=2001&team_id=1001&report_id=4001&testcase_id=8001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'app_id': '2001', 'team_id': '1001', 'report_id': '4001', 'testcase_id': '8001', }

response = requests.get('https://api.bugasura.io/testcases/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcases/get?app_id=2001&team_id=1001&report_id=4001&testcase_id=8001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/testcases/get?app_id=2001&team_id=1001&report_id=4001&testcase_id=8001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testcases/get?app_id=2001&team_id=1001&report_id=4001&testcase_id=8001")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Test case details fetched successfully",
    "testCaseDetails": [
        {
            "app_id": 2001,
            "app_name": "Demo Project",
            "team_id": 1001,
            "folder_id": 9001,
            "test_case_id": 8001,
            "test_case_number": "TES3",
            "id": "3",
            "tc_prefix": null,
            "testing_type": "Functional,API",
            "source": "USER",
            "priority": "MEDIUM",
            "scenario": "API tset case",
            "feature_name": "Feature",
            "sub_feature_name": "Feature",
            "test_conditions": null,
            "test_idea": null,
            "test_data": null,
            "test_steps": null,
            "acceptance_criteria": null,
            "execution_status": "NEW",
            "test_case_status": "PENDING",
            "assignee": null,
            "device_details": "[]",
            "is_api_test_case": 1,
            "api_request_method": "GET",
            "api_end_point_url": "example.com",
            "request_code": null,
            "advanced_testcase_details": null,
            "created_date": "2025-03-27 18:51:55",
            "last_modified": "2025-03-27 18:51:55",
            "creator_id": 3001,
            "last_modified_by": 3001,
            "approval_status": null,
            "approved_by": null,
            "approved_on": null,
            "approved_by_name": null,
            "total_pass_count": "0",
            "total_fail_count": "0",
            "creator_name": "Demo User",
            "creator_email_id": "demo.user@example.com",
            "creator_profile_image": "3001.avatar.png",
            "custom_tags": null,
            "sprint_ids": null,
            "NROWS": 1,
            "STATUS": "OK",
            "flows": "{\"scenarios\":[{\"name\":\"API tset case\",\"request_method\":\"GET\",\"api_end_point_url\":\"example.com\",\"request_code\":null,\"required_params\":null,\"required_flow_response\":-1,\"expected_output\":null}]}"
        }
    ]
}

This API endpoint gets all the details related to a specific testcase.

HTTP Request

GET https://api.bugasura.io/testcases/get

Query Parameters

Parameter Type Default Description
app_id* Integer ID of the application for which test case need to be obtained.
testcase_id* Integer TestCase ID of the specific testcase for which the details need to be obtained.
team_id* Integer ID of the team for which the testcase details need to be obtained. Without it the request returns status OK with an empty test case row.
report_id Integer ID of the report associated with the test case.

testcases/add

curl -L -X POST 'https://api.bugasura.io/testcases/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'app_id=2001' \
-F 'isAIGenerated=0' \
-F 'testCaseDetails=[{"feature_name":"TEST","sub_feature_name":"API","test_case_scenario":"Feature 1","testing_type":"Functional","severity":"low","test_conditions":"","test_steps":"","test_idea":"","test_data":"","acceptance_criteria":"","assignee":"","custom_tags":"","is_api_test_case":"0"}]'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcases/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => 1001,
    'app_id' => 2001,
    'isAIGenerated' => 0,
    'testCaseDetails' => '[{"feature_name":"TEST","sub_feature_name":"API","test_case_scenario":"Feature 1","testing_type":"Functional","severity":"low","test_conditions":"","test_steps":"","test_idea":"","test_data":"","acceptance_criteria":"","assignee":"","custom_tags":"","is_api_test_case":"0"}]'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': 1001, 'app_id': 2001, 'isAIGenerated': 0, 'testCaseDetails': '[{"feature_name":"TEST","sub_feature_name":"API","test_case_scenario":"Feature 1","testing_type":"Functional","severity":"low","test_conditions":"","test_steps":"","test_idea":"","test_data":"","acceptance_criteria":"","assignee":"","custom_tags":"","is_api_test_case":"0"}]' }

response = requests.post('https://api.bugasura.io/testcases/add', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcases/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "team_id=1001&app_id=2001&isAIGenerated=0&testCaseDetails=" + URLEncoder.encode("[{\"feature_name\":\"TEST\",\"sub_feature_name\":\"API\",\"test_case_scenario\":\"Feature 1\",\"testing_type\":\"Functional\",\"severity\":\"low\",\"test_conditions\":\"\",\"test_steps\":\"\",\"test_idea\":\"\",\"test_data\":\"\",\"acceptance_criteria\":\"\",\"assignee\":\"\",\"custom_tags\":\"\",\"is_api_test_case\":\"0\"}]", "UTF-8");

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

int responseCode = httpConn.getResponseCode(); System.out.println("Response Code: " + responseCode); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('app_id', '2001');
form.append('isAIGenerated', '0');
form.append('testCaseDetails', '[{"feature_name":"TEST","sub_feature_name":"API","test_case_scenario":"Feature 1","testing_type":"Functional","severity":"low","test_conditions":"","test_steps":"","test_idea":"","test_data":"","acceptance_criteria":"","assignee":"","custom_tags":"","is_api_test_case":"0"}]');

fetch('https://api.bugasura.io/testcases/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testcases/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data({ "team_id" => "1001", "app_id" => "2001", "isAIGenerated" => "0", "testCaseDetails" => '[{"feature_name":"TEST","sub_feature_name":"API","test_case_scenario":"Feature 1","testing_type":"Functional","severity":"low","test_conditions":"","test_steps":"","test_idea":"","test_data":"","acceptance_criteria":"","assignee":"","custom_tags":"","is_api_test_case":"0"}]' })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Test case added successfully",
    "testCaseDetails": [
        {
            "feature_name": "TEST",
            "sub_feature_name": "API",
            "test_case_scenario": "Feature 1",
            "testing_type": "Functional",
            "severity": "LOW",
            "test_conditions": "",
            "test_steps": "",
            "test_idea": "",
            "test_data": "",
            "acceptance_criteria": "",
            "assignee": "",
            "custom_tags": "",
            "is_api_test_case": "0",
            "device_system_details": "[]",
            "test_case_id": 8001,
            "id": 5,
            "source": "USER",
            "creator_id": 3001,
            "last_modified_by": 3001,
            "created_date": "2025-06-11 19:39:45",
            "last_modified": "2025-06-11 19:39:45",
            "tc_prefix": "TES",
            "app_name": "Demo Project"
        }
    ]
}

This API endpoint adds a testcase to the specified application and team.

HTTP Request

POST https://api.bugasura.io/testcases/add

Body Parameters

Parameter Type Default Description
app_id* Integer ID of the application where the test case will be added.
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
testCaseDetails* String Pass the testCaseDetails values in JSON string format to add testcase. The value of each testCaseDetails should be valid for the field.
isAIGenerated* Integer 1 Send 0 to add the test cases from testCaseDetails. With the default 1 the call expects an uploaded JSON file in a testcase field.
folder_id Integer ID of the folder to which the testcase need to be added.

testcases/update

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X POST 'https://api.bugasura.io/testcases/update' \
    -F 'team_id=1001' \
    -F 'app_id=2001' \
    -F 'testcase_id=8001' \
    -F 'executionStatus=NEW'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcases/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$data = [ 'team_id' => 1001, 'app_id' => 2001, 'testcase_id' => 8001, 'executionStatus' => 'NEW' ];

curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': 1001, 'app_id': 2001, 'testcase_id': 8001, 'executionStatus': 'NEW' }

response = requests.post('https://api.bugasura.io/testcases/update', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcases/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "team_id=1001&app_id=2001&testcase_id=8001&executionStatus=NEW";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length);
}

Scanner s = new Scanner(httpConn.getInputStream()).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('app_id', '2001');
form.append('testcase_id', '8001');
form.append('executionStatus', 'NEW');

fetch('https://api.bugasura.io/testcases/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/testcases/update") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "team_id" => "1001", "app_id" => "2001", "testcase_id" => "8001", "executionStatus" => "NEW" })

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Test case details updated successfully",
    "testCaseDetails": {
        "app_id": 2001,
        "app_name": "Demo Project",
        "team_id": 1001,
        "folder_id": 9001,
        "test_case_id": 8001,
        "test_case_number": "TES3",
        "id": "3",
        "tc_prefix": null,
        "testing_type": "Functional,API",
        "source": "USER",
        "priority": "MEDIUM",
        "scenario": "API tset case",
        "feature_name": "Feature",
        "sub_feature_name": "Feature",
        "test_conditions": null,
        "test_idea": null,
        "test_data": null,
        "test_steps": null,
        "acceptance_criteria": null,
        "execution_status": "NEW",
        "test_case_status": "PENDING",
        "assignee": null,
        "device_details": "[]",
        "is_api_test_case": 1,
        "api_request_method": "GET",
        "api_end_point_url": "example.com",
        "request_code": null,
        "advanced_testcase_details": null,
        "created_date": "2025-03-27 18:51:55",
        "last_modified": "2025-06-11 15:49:17",
        "creator_id": 3001,
        "last_modified_by": 3001,
        "approval_status": null,
        "approved_by": null,
        "approved_on": null,
        "approved_by_name": null,
        "total_pass_count": "0",
        "total_fail_count": "0",
        "creator_name": "Demo User",
        "creator_email_id": "demo.user@example.com",
        "creator_profile_image": "3001.avatar.png",
        "custom_tags": null,
        "sprint_ids": null,
        "NROWS": 1,
        "STATUS": "OK",
        "flows": "{\"scenarios\":[{\"name\":\"API tset case\",\"request_method\":\"GET\",\"api_end_point_url\":\"example.com\",\"request_code\":null,\"required_params\":null,\"required_flow_response\":-1,\"expected_output\":null}]}"
    }
}

This API endpoint will allow user to update the testcase details. Send only what you want to change. A field you leave out keeps its current value. There are two ways to call it:

HTTP Request

POST https://api.bugasura.io/testcases/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team for which the testcase details need to be updated
app_id* Integer The ID of the application in which the test cases are available
testcase_id* Integer The ID of the specific test case that needs to be updated
testCaseDetails String A JSON array holding one test case object, sent as a string. Include only the keys you want to change. Send it, or one of the single-field parameters below.
executionStatus String Execution status of the testcase and it takes either 'NEW', 'IN_PROGRESS', 'CANCELLED', 'COMPLETED' or 'BLOCKED'
testCaseStatus String Status of the test cases. Accepted values are 'PASS', 'FAIL'
testCaseSeverity String Severity level of the test case
folderId Integer ID of the folder containing the test case

testcases/delete

curl -L -X POST 'https://api.bugasura.io/testcases/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'app_id=2001' \
-F 'testcaseids=8001,8002,8003' \
-F 'isDeleteTestCases=1'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcases/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => 1001,
    'app_id' => 2001,
    'testcaseids' => '8001,8002,8003',
    'isDeleteTestCases' => 1
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': 1001, 'app_id': 2001, 'testcaseids': '8001,8002,8003', 'isDeleteTestCases': 1 }

response = requests.post('https://api.bugasura.io/testcases/delete', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcases/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "team_id=1001&app_id=2001&testcaseids=8001,8002,8003&isDeleteTestCases=1";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

int responseCode = httpConn.getResponseCode(); System.out.println("Response Code: " + responseCode); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('app_id', '2001');
form.append('testcaseids', '8001,8002,8003');
form.append('isDeleteTestCases', '1');

fetch('https://api.bugasura.io/testcases/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testcases/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data({ "team_id" => "1001", "app_id" => "2001", "testcaseids" => "8001,8002,8003", "isDeleteTestCases" => "1" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Successfully deleted the test case"
}

This API endpoint deletes a specific testcase based on the testcase ID.

HTTP Request

POST https://api.bugasura.io/testcases/delete

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team that owns the test cases.
app_id* Integer ID of the application containing the test cases to be deleted.
testcaseids* String Comma-separated IDs of the testcases to be deleted.
isDeleteTestCases Integer 0 Pass 1 to delete the test cases from the project. Otherwise they are only removed from the sprint.
sprintId Integer ID of the sprint to remove the test cases from. Required when isDeleteTestCases is not 1.

testcases/addRemoveSprintTestCases

curl -L -X POST 'https://api.bugasura.io/testcases/addRemoveSprintTestCases' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'sprintId=4001' \
-F 'testCaseId=8001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcases/addRemoveSprintTestCases');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => 1001,
    'appId' => 2001,
    'sprintId' => 4001,
    'testCaseId' => 8001
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': 1001, 'appId': 2001, 'sprintId': 4001, 'testCaseId': 8001 }

response = requests.post('https://api.bugasura.io/testcases/addRemoveSprintTestCases', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcases/addRemoveSprintTestCases"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "team_id=1001&appId=2001&sprintId=4001&testCaseId=8001";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

int responseCode = httpConn.getResponseCode(); System.out.println("Response Code: " + responseCode); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('sprintId', '4001');
form.append('testCaseId', '8001');

fetch('https://api.bugasura.io/testcases/addRemoveSprintTestCases', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testcases/addRemoveSprintTestCases")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data({ "team_id" => "1001", "appId" => "2001", "sprintId" => "4001", "testCaseId" => "8001" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test case added successfully"
}

Add test cases to a sprint, remove one from a sprint, or copy or move test cases to another sprint of the same project.

Removing or moving a test case out of a sprint discards its execution status and assignment in that sprint. Each added test case gets an activity entry (and so does a plain remove).

HTTP Request

POST https://api.bugasura.io/testcases/addRemoveSprintTestCases

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project that holds the sprint and the test cases. Without it the request fails with App ID cannot be empty.
sprintId* Integer The ID of the sprint. It must belong to the project. Without it the request fails with Sprint ID cannot be empty.
testCaseId Integer The ID of the test case to add, or a comma-separated list of IDs. Used when you add.
isDelete Integer 0 Pass 1 to remove a test case from the sprint. deleteTestCaseId is then required.
deleteTestCaseId Integer The ID of the test case to remove from the sprint.
actionType String Send COPY or MOVE to copy or move test cases to another sprint. Any other value is treated as an add, or as a remove when isDelete is 1.
destinationSprintId Integer The ID of the sprint to copy or move the test cases to. Required with actionType.
testCaseIds String Comma-separated IDs of the test cases to copy or move. Required with actionType.

Test Case Comments

Endpoint prefix: testcasecomments (used by every endpoint in this section)

testcasecomments/list

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -X GET 'https://api.bugasura.io/testcasecomments/list?team_id=1001&app_id=2001&testCaseId=8001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcasecomments/list?team_id=1001&app_id=2001&testCaseId=8001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: Basic <Your API_KEY goes here>',
  'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'app_id': '2001', 'testCaseId': '8001', }

response = requests.get('https://api.bugasura.io/testcasecomments/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcasecomments/list?team_id=1001&app_id=2001&testCaseId=8001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/testcasecomments/list?team_id=1001&app_id=2001&testCaseId=8001', {
  headers: {
    'Authorization': 'Basic <Your API_KEY goes here>',
    'Accept': 'application/json'
  }
});
require 'net/http'
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/testcasecomments/list?team_id=1001&app_id=2001&testCaseId=8001") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Comments list fetched successfully.",
  "commentsList": [
    {
      "test_case_id": 8001,
      "id": "1",
      "scenario": "Submitting a form with required fields left empty in Demo Project.",
      "comment_id": 42,
      "comment": "comment 2 from test case sprint",
      "comment_report_id": 4001,
      "parent_comment_id": null,
      "comment_images": null,
      "comment_attachments": null,
      "creator_id": 3001,
      "created_dt": "2025-06-17 11:36:28",
      "modified_by": null,
      "last_modified": "2025-06-17 11:36:28",
      "is_deleted": 0,
      "comment_creator_id": 3001,
      "comment_creator_name": "Demo User",
      "comment_creator_email_id": "demo.user@example.com",
      "profile_image": "3001.avatar.png",
      "comment_creator_profile_image": "3001.avatar.png",
      "comment_modified_by_id": null,
      "comment_modified_by_name": null,
      "comment_modified_by_email_id": null,
      "comment_modified_by_profile_image": null,
      "NROWS": 4,
      "STATUS": "OK"
    },
    {
      "test_case_id": 8001,
      "id": "1",
      "scenario": "Submitting a form with required fields left empty in Demo Project.",
      "comment_id": 41,
      "comment": "comment1 from test case sprint",
      "comment_report_id": 4001,
      "parent_comment_id": null,
      "comment_images": null,
      "comment_attachments": null,
      "creator_id": 3001,
      "created_dt": "2025-06-17 11:34:59",
      "modified_by": null,
      "last_modified": "2025-06-17 11:34:59",
      "is_deleted": 0,
      "comment_creator_id": 3001,
      "comment_creator_name": "Demo User",
      "comment_creator_email_id": "demo.user@example.com",
      "profile_image": "3001.avatar.png",
      "comment_creator_profile_image": "3001.avatar.png",
      "comment_modified_by_id": null,
      "comment_modified_by_name": null,
      "comment_modified_by_email_id": null,
      "comment_modified_by_profile_image": null
    },
    {
      "test_case_id": 8001,
      "id": "1",
      "scenario": "Submitting a form with required fields left empty in Demo Project.",
      "comment_id": 40,
      "comment": "comment2",
      "comment_report_id": 4002,
      "parent_comment_id": null,
      "comment_images": null,
      "comment_attachments": null,
      "creator_id": 3001,
      "created_dt": "2025-06-17 11:19:53",
      "modified_by": null,
      "last_modified": "2025-06-17 11:19:53",
      "is_deleted": 0,
      "comment_creator_id": 3001,
      "comment_creator_name": "Demo User",
      "comment_creator_email_id": "demo.user@example.com",
      "profile_image": "3001.avatar.png",
      "comment_creator_profile_image": "3001.avatar.png",
      "comment_modified_by_id": null,
      "comment_modified_by_name": null,
      "comment_modified_by_email_id": null,
      "comment_modified_by_profile_image": null
    },
    {
      "test_case_id": 8001,
      "id": "1",
      "scenario": "Submitting a form with required fields left empty in Demo Project.",
      "comment_id": 39,
      "comment": "comment1",
      "comment_report_id": 4002,
      "parent_comment_id": null,
      "comment_images": null,
      "comment_attachments": null,
      "creator_id": 3001,
      "created_dt": "2025-06-17 11:19:47",
      "modified_by": null,
      "last_modified": "2025-06-17 11:19:47",
      "is_deleted": 0,
      "comment_creator_id": 3001,
      "comment_creator_name": "Demo User",
      "comment_creator_email_id": "demo.user@example.com",
      "profile_image": "3001.avatar.png",
      "comment_creator_profile_image": "3001.avatar.png",
      "comment_modified_by_id": null,
      "comment_modified_by_name": null,
      "comment_modified_by_email_id": null,
      "comment_modified_by_profile_image": null
    }
  ]
}

This API endpoint lists the comments of a test case.

HTTP Request

GET https://api.bugasura.io/testcasecomments/list

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the testcase comments need to be listed.
app_id* Integer ID of the application for which the testcase comments need to be listed.
testCaseId* Integer ID of the test case for which the comments need to be listed.
report_id Integer ID of the report to filter comments by specific report.

testcasecomments/add

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X POST 'https://api.bugasura.io/testcasecomments/add' \
    -F 'team_id=1001' \
    -F 'app_id=2001' \
    -F 'testCaseId=8001' \
    -F 'comment=This is a test comment'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcasecomments/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => 1001,
    'app_id' => 2001,
    'testCaseId' => 8001,
    'comment' => 'This is a test comment'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': 1001, 'app_id': 2001, 'testCaseId': 8001, 'comment': 'This is a test comment' }

response = requests.post('https://api.bugasura.io/testcasecomments/add', headers=headers, data=data)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcasecomments/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "team_id=1001&app_id=2001&testCaseId=8001&comment=This+is+a+test+comment";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('app_id', '2001');
form.append('testCaseId', '8001');
form.append('comment', 'This is a test comment');

fetch('https://api.bugasura.io/testcasecomments/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/testcasecomments/add") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "team_id" => "1001", "app_id" => "2001", "testCaseId" => "8001", "comment" => "This is a test comment" })

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Comment added successfully",
    "commentDetails": {
        "test_case_id": 8001,
        "id": "3",
        "testing_type": "Functional,API",
        "source": "USER",
        "priority": "MEDIUM",
        "scenario": "API test case",
        "comment_id": 1,
        "comment": "Completed",
        "comment_report_id": null,
        "parent_comment_id": null,
        "comment_images": null,
        "comment_attachments": null,
        "creator_id": 3001,
        "created_dt": "2025-06-12 15:18:03",
        "modified_by": null,
        "last_modified": "2025-06-12 15:18:03",
        "is_deleted": 0,
        "comment_creator_id": 3001,
        "comment_creator_name": "Demo User",
        "comment_creator_email_id": "demo.user@example.com",
        "profile_image": "3001.avatar.png",
        "comment_creator_profile_image": "3001.avatar.png",
        "comment_modified_by_id": null,
        "comment_modified_by_name": null,
        "comment_modified_by_email_id": null,
        "comment_modified_by_profile_image": null,
        "NROWS": 1,
        "STATUS": "OK"
    }
}

This endpoint adds both system and user comments to a test case.

HTTP Request

POST https://api.bugasura.io/testcasecomments/add

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team to which the test case belongs. This associates the comment with the specific team.
app_id* Integer ID of the application containing the testcase. This links the comment to the specific application being tested.
testCaseId* Integer ID of the test case to which the comment is being added.
comment* String The actual comment text content that will be stored and displayed. This can include feedback, notes, observations, or any relevant information about the test case.
report_id Integer ID of the sprint. Provides additional context for sprint-specific addition of comments under testcase.
parentCommentId Integer ID of a parent comment when creating threaded/nested comments. Include this to create a reply to an existing comment.

testcasecomments/get

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X GET 'https://api.bugasura.io/testcasecomments/get?team_id=1001&app_id=2001&testCaseId=8001&commentId=5&parentCommentId=5'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcasecomments/get?team_id=1001&app_id=2001&testCaseId=8001&commentId=5&parentCommentId=5');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'app_id': '2001', 'testCaseId': '8001', 'commentId': '5', 'parentCommentId': '5', }

response = requests.get('https://api.bugasura.io/testcasecomments/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcasecomments/get?team_id=1001&app_id=2001&testCaseId=8001&commentId=5&parentCommentId=5"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/testcasecomments/get?team_id=1001&app_id=2001&testCaseId=8001&commentId=5&parentCommentId=5', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/testcasecomments/get?team_id=1001&app_id=2001&testCaseId=8001&commentId=5&parentCommentId=5") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Comments fetched successfully",
    "commentDetails": [
        {
            "test_case_id": 8001,
            "id": "7",
            "testing_type": "Functional",
            "source": "USER",
            "priority": "MEDIUM",
            "scenario": "Feature 1",
            "comment_id": 5,
            "comment": "This is parent comment edited",
            "comment_report_id": null,
            "parent_comment_id": 5,
            "comment_images": null,
            "comment_attachments": null,
            "creator_id": 3001,
            "created_dt": "2025-06-13 00:00:50",
            "modified_by": 3001,
            "last_modified": "2025-06-13 08:31:30",
            "is_deleted": 0,
            "comment_creator_id": 3001,
            "comment_creator_name": "Demo User",
            "comment_creator_email_id": "demo.user@example.com",
            "profile_image": "3001.avatar.png",
            "comment_creator_profile_image": "3001.avatar.png",
            "comment_modified_by_id": 3001,
            "comment_modified_by_name": "Demo User",
            "comment_modified_by_email_id": "demo.user@example.com",
            "comment_modified_by_profile_image": "3001.avatar.png",
            "NROWS": 1,
            "STATUS": "OK"
        }
    ]
}

This endpoint gets the details of a test case comment with comprehensive information about comments, their creators, and associated test case metadata.

HTTP Request

GET https://api.bugasura.io/testcasecomments/get

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team that owns the testcase. This ensures access to comments within the correct team context and validates user permissions for the team.
app_id* Integer ID of the application that contains testcase. This helps filter comments to those associated with a specific application and provides additional context for comment organization.
testCaseId* Integer ID of the specific test case whose comments need to be retrieved. Include this to get all comments associated with a particular test case.
commentId Integer ID of a specific comment to retrieve. Use this parameter when you need to fetch details of a specific comment.
parentCommentId Integer Identifier of the parent comment in a threaded conversation. Use this to retrieve replies or child comments that belong to a specific parent comment thread.

testcasecomments/update

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -X POST 'https://api.bugasura.io/testcasecomments/update' \
  -F 'team_id=1001' \
  -F 'app_id=2001' \
  -F 'testCaseId=8001' \
  -F 'comment_id=33' \
  -F 'comment=Sample comment added'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcasecomments/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: Basic <Your API_KEY goes here>',
  'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
  'team_id' => 1001,
  'app_id' => 2001,
  'testCaseId' => 8001,
  'comment_id' => '33',
  'comment' => 'Sample comment added'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': 1001, 'app_id': 2001, 'testCaseId': 8001, 'comment_id': '33', 'comment': 'Sample comment added' }

response = requests.post('https://api.bugasura.io/testcasecomments/update', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcasecomments/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "team_id=1001&app_id=2001&testCaseId=8001&comment_id=33&comment=Sample+comment+added";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

int responseCode = httpConn.getResponseCode(); System.out.println("Response Code: " + responseCode); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('app_id', '2001');
form.append('testCaseId', '8001');
form.append('comment_id', '33');
form.append('comment', 'Sample comment added');

fetch('https://api.bugasura.io/testcasecomments/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/testcasecomments/update") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "team_id" => "1001", "app_id" => "2001", "testCaseId" => "8001", "comment_id" => "33", "comment" => "Sample comment added" })

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Comment updated successfully",
  "commentDetails": {
    "test_case_id": 8001,
    "id": "4",
    "scenario": "TestCase Sample Scenario",
    "comment_id": 33,
    "comment": "Sample comment added",
    "comment_report_id": null,
    "parent_comment_id": null,
    "comment_images": null,
    "comment_attachments": null,
    "creator_id": 3001,
    "created_dt": "2025-06-16 10:25:40",
    "modified_by": 3001,
    "last_modified": "2025-06-16 10:32:10",
    "is_deleted": 0,
    "comment_creator_id": 3001,
    "comment_creator_name": "Demo User",
    "comment_creator_email_id": "demo.user@example.com",
    "profile_image": "3001.avatar.png",
    "comment_creator_profile_image": "3001.avatar.png",
    "comment_modified_by_id": 3001,
    "comment_modified_by_name": "Demo User",
    "comment_modified_by_email_id": "demo.user@example.com",
    "comment_modified_by_profile_image": "3001.avatar.png",
    "NROWS": 1,
    "STATUS": "OK"
  }
}

This endpoint updates a test case comment.

HTTP Request

POST https://api.bugasura.io/testcasecomments/update

Body Parameters

Parameter Type Default Description
testCaseId* Integer ID of the test case for which the comment needs to be updated.
comment_id* Integer ID of the comment that needs to be updated.
team_id* Integer ID of the team for which the comment needs to be updated.
app_id* Integer ID of the application for which the comment needs to be updated.
comment* String The updated comment text.
commentAttachments Array Array of comment attachments (if any).

testcasecomments/delete

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -X POST 'https://api.bugasura.io/testcasecomments/delete' \
  -F 'team_id=1001' \
  -F 'app_id=2001' \
  -F 'testCaseId=8001' \
  -F 'comment_id=33'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testcasecomments/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: Basic <Your API_KEY goes here>',
  'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
  'team_id' => 1001,
  'app_id' => 2001,
  'testCaseId' => 8001,
  'comment_id' => '33'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': 1001, 'app_id': 2001, 'testCaseId': 8001, 'comment_id': '33' }

response = requests.post('https://api.bugasura.io/testcasecomments/delete', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testcasecomments/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

String formData = "team_id=1001&app_id=2001&testCaseId=8001&comment_id=33";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

int responseCode = httpConn.getResponseCode(); System.out.println("Response Code: " + responseCode); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('app_id', '2001');
form.append('testCaseId', '8001');
form.append('comment_id', '33');

fetch('https://api.bugasura.io/testcasecomments/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/testcasecomments/delete") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "team_id" => "1001", "app_id" => "2001", "testCaseId" => "8001", "comment_id" => "33" })

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Comment deleted successfully",
  "commentDetails": {
    "test_case_id": 8001,
    "id": "4",
    "scenario": "TestCase Sample Scenario",
    "comment_id": 34,
    "comment": "This comment is deleted by <strong>Demo User</strong>",
    "comment_report_id": null,
    "parent_comment_id": null,
    "comment_images": null,
    "comment_attachments": null,
    "creator_id": 3001,
    "created_dt": "2025-06-16 10:49:04",
    "modified_by": 3001,
    "last_modified": "2025-06-16 11:04:38",
    "is_deleted": 1,
    "comment_creator_id": 3001,
    "comment_creator_name": "Demo User",
    "comment_creator_email_id": "demo.user@example.com",
    "profile_image": "3001.avatar.png",
    "comment_creator_profile_image": "3001.avatar.png",
    "comment_modified_by_id": 3001,
    "comment_modified_by_name": "Demo User",
    "comment_modified_by_email_id": "demo.user@example.com",
    "comment_modified_by_profile_image": "3001.avatar.png",
    "NROWS": 1,
    "STATUS": "OK"
  }
}

This endpoint deletes a test case comment.

HTTP Request

POST https://api.bugasura.io/testcasecomments/delete

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the comment needs to be deleted.
app_id* Integer ID of the application for which the comment needs to be deleted.
comment_id* Integer ID of the comment that needs to be deleted.
testCaseId* Integer ID of the test case for which the comment needs to be deleted.
report_id Integer ID of the report (if applicable).

Project Folders

Endpoint prefix: projectFolders (used by every endpoint in this section)

Project folders are the folders shown under Test Repo in the web app.

projectFolders/get

curl -L -X GET 'https://api.bugasura.io/projectFolders/get?appId=2001&team_id=1001&folderId=9002&parentFolderId=9001&folderType=TESTCASES' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectFolders/get?appId=2001&team_id=1001&folderId=9002&parentFolderId=9001&folderType=TESTCASES');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'appId': '2001', 'team_id': '1001', 'folderId': '9002', 'parentFolderId': '9001', 'folderType': 'TESTCASES', }

response = requests.get('https://api.bugasura.io/projectFolders/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectFolders/get?appId=2001&team_id=1001&folderId=9002&parentFolderId=9001&folderType=TESTCASES"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/projectFolders/get?appId=2001&team_id=1001&folderId=9002&parentFolderId=9001&folderType=TESTCASES', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectFolders/get?appId=2001&team_id=1001&folderId=9002&parentFolderId=9001&folderType=TESTCASES")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Test Repo folder details fetched successfully.",
    "folderStructure": {
        "id": 9002,
        "name": "f2",
        "parent_id": 9001,
        "tc_count": 1,
        "total_tc_count": 1,
        "children": []
    },
    "folderDetails": {
        "app_id": 2001,
        "app_name": "Demo Project",
        "tc_repo_structure": "[{\"id\":2446,\"name\":\"f1\",\"parent_id\":null,\"tc_count\":0,\"total_tc_count\":1,\"children\":[{\"id\":2447,\"name\":\"f2\",\"parent_id\":2446,\"tc_count\":1,\"total_tc_count\":1,\"children\":[]}]}]",
        "folder_id": 9002,
        "folder_name": "f2",
        "parent_folder_id": 9001,
        "disp_order": 100,
        "tc_count": 1
    },
    "tcRepoStructure": [
        {
            "id": 9001,
            "name": "f1",
            "parent_id": null,
            "tc_count": 0,
            "total_tc_count": 1,
            "children": [
                {
                    "id": 9002,
                    "name": "f2",
                    "parent_id": 9001,
                    "tc_count": 1,
                    "total_tc_count": 1,
                    "children": []
                }
            ]
        }
    ]
}

This API endpoint gets the project folder details for the given project.

HTTP Request

GET https://api.bugasura.io/projectFolders/get

Query Parameters

Parameter Type Default Description
appId* Integer ID of the application for which the project folder details need to be fetched.
team_id* Integer ID of the team for which the project folder details need to be fetched.
folderId Integer ID of the folder for which the details need to be fetched. folderStructure is filled only when folderId or parentFolderId is sent; the whole tree is always in tcRepoStructure.
parentFolderId Integer ID of the parent folder.
folderType* String Type of folder tree. One of TESTCASES, REQUIREMENTS or KNOWLEDGE_BASE. A project keeps a separate folder tree for each type, so always send it. Without it the response holds no folders.

projectFolders/add

curl -L -X POST 'https://api.bugasura.io/projectFolders/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'appId=2001' \
-F 'teamId=1001' \
-F 'parentFolderId=9001' \
-F 'folderName=Sample Folder -1' \
-F 'folderType=TESTCASES'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectFolders/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'appId' => '2001',
    'teamId' => '1001',
    'parentFolderId' => '9001',
    'folderName' => 'Sample Folder -1',
    'folderType' => 'TESTCASES'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'appId': '2001', 'teamId': '1001', 'parentFolderId': '9001', 'folderName': 'Sample Folder -1', 'folderType': 'TESTCASES' }

response = requests.post('https://api.bugasura.io/projectFolders/add', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectFolders/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

httpConn.setDoOutput(true); String formData = "appId=2001&teamId=1001&parentFolderId=9001&folderName=Sample+Folder+-1&folderType=TESTCASES";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length);
}

System.out.println(httpConn.getResponseCode()); } }

const form = new FormData();
form.append('appId', '2001');
form.append('teamId', '1001');
form.append('parentFolderId', '9001');
form.append('folderName', 'Sample Folder -1');
form.append('folderType', 'TESTCASES');

fetch('https://api.bugasura.io/projectFolders/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectFolders/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "appId" => "2001", "teamId" => "1001", "parentFolderId" => "9001", "folderName" => "Sample Folder -1", "folderType" => "TESTCASES" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Folder added successfully.",
    "folderDetails": {
        "id": 9004,
        "name": "Sample Folder -1",
        "parent_id": "9001",
        "tc_count": 0,
        "total_tc_count": 0,
        "children": []
    },
    "tcRepoStructure": [
        {
            "id": 9001,
            "name": "f1",
            "parent_id": null,
            "tc_count": 0,
            "total_tc_count": 1,
            "children": [
                {
                    "id": 9002,
                    "name": "f2",
                    "parent_id": 9001,
                    "tc_count": 1,
                    "total_tc_count": 1,
                    "children": []
                },
                {
                    "id": 9003,
                    "name": "Folder 3",
                    "parent_id": 9001,
                    "tc_count": 0,
                    "total_tc_count": 0,
                    "children": []
                },
                {
                    "id": 9004,
                    "name": "Sample Folder -1",
                    "parent_id": "9001",
                    "tc_count": 0,
                    "total_tc_count": 0,
                    "children": []
                }
            ]
        }
    ]
}

This API endpoint will add folder into project folders for the given project.

HTTP Request

POST https://api.bugasura.io/projectFolders/add

Body Parameters

Parameter Type Default Description
appId* Integer ID of the application for which the project folder needs to be added.
team_id* Integer ID of the team for which the project folder needs to be added.
folderName* String Name of the folder that need to be added.
parentFolderId Integer Parent folder ID. Required unless isRootFolder is 1.
isRootFolder Boolean Flag to indicate if this is a root folder.
folderType* String Type of folder tree. One of TESTCASES, REQUIREMENTS or KNOWLEDGE_BASE. A project keeps a separate folder tree for each type, so always send it. Without it the call fails.

projectFolders/update

curl -L -X POST 'https://api.bugasura.io/projectFolders/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'appId=2001' \
-F 'teamId=1001' \
-F 'parentFolderId=9001' \
-F 'folderId=9002' \
-F 'folderName=Sample Folder - Updated' \
-F 'updateType=NAME_UPDATE' \
-F 'folderType=TESTCASES'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectFolders/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'appId' => '2001',
    'teamId' => '1001',
    'parentFolderId' => '9001',
    'folderId' => '9002',
    'folderName' => 'Sample Folder - Updated',
    'updateType' => 'NAME_UPDATE',
    'folderType' => 'TESTCASES'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'appId': '2001', 'teamId': '1001', 'parentFolderId': '9001', 'folderId': '9002', 'folderName': 'Sample Folder - Updated', 'updateType': 'NAME_UPDATE', 'folderType': 'TESTCASES' }

response = requests.post('https://api.bugasura.io/projectFolders/update', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectFolders/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

httpConn.setDoOutput(true); String formData = "appId=2001&teamId=1001&parentFolderId=9001&folderId=9002&folderName=Sample+Folder+-+Updated&updateType=NAME_UPDATE&folderType=TESTCASES";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length);
}

System.out.println(httpConn.getResponseCode()); } }

const form = new FormData();
form.append('appId', '2001');
form.append('teamId', '1001');
form.append('parentFolderId', '9001');
form.append('folderId', '9002');
form.append('folderName', 'Sample Folder - Updated');
form.append('updateType', 'NAME_UPDATE');
form.append('folderType', 'TESTCASES');

fetch('https://api.bugasura.io/projectFolders/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectFolders/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "appId" => "2001", "teamId" => "1001", "parentFolderId" => "9001", "folderId" => "9002", "folderName" => "Sample Folder - Updated", "updateType" => "NAME_UPDATE", "folderType" => "TESTCASES" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Folder updated successfully.",
    "folderDetails": {
        "app_id": 2001,
        "app_name": "Demo Project",
        "tc_repo_structure": "[{\"id\":2446,\"name\":\"f1\",\"parent_id\":null,\"tc_count\":0,\"total_tc_count\":1,\"children\":[{\"id\":2447,\"name\":\"Sample Folder - Update\",\"parent_id\":\"9001\",\"tc_count\":1,\"total_tc_count\":1,\"children\":[]},{\"id\":2449,\"name\":\"Folder 3\",\"parent_id\":2446,\"tc_count\":0,\"total_tc_count\":0,\"children\":[]},{\"id\":2450,\"name\":\"Sample Folder -1\",\"parent_id\":2446,\"tc_count\":0,\"total_tc_count\":0,\"children\":[]}]}]",
        "folder_id": 9002,
        "folder_name": "Sample Folder - Updated",
        "parent_folder_id": "9001",
        "disp_order": 100,
        "tc_count": 1
    },
    "tcRepoStructure": [
        {
            "id": 9001,
            "name": "f1",
            "parent_id": null,
            "tc_count": 0,
            "total_tc_count": 1,
            "children": [
                {
                    "id": 9002,
                    "name": "Sample Folder - Updated",
                    "parent_id": "9001",
                    "tc_count": 1,
                    "total_tc_count": 1,
                    "children": []
                },
                {
                    "id": 9003,
                    "name": "Folder 3",
                    "parent_id": 9001,
                    "tc_count": 0,
                    "total_tc_count": 0,
                    "children": []
                },
                {
                    "id": 9004,
                    "name": "Sample Folder -1",
                    "parent_id": 9001,
                    "tc_count": 0,
                    "total_tc_count": 0,
                    "children": []
                }
            ]
        }
    ]
}

This API endpoint will update folder name/position in the project folders for the given project.

HTTP Request

POST https://api.bugasura.io/projectFolders/update

Body Parameters

Parameter Type Default Description
appId* Integer ID for the application where the project folder needs to be updated.
team_id* Integer ID of the team for which the project folder needs to be updated.
folderId* Integer ID of the folder to be updated.
folder_name* String New name of the folder that needs to be updated. For the other update types, send the current name.
parentFolderId Integer For NAME_UPDATE, the folder's current parent folder ID (leave it empty for a top-level folder); any other value fails with Invalid folder provided. Please refresh and try again. For MOVE_FOLDER, the new parent folder ID; leave it empty to move the folder to the top level. Not used by the other update types.
updateType* String Type of update operation. Accepted values are 'NAME_UPDATE', 'MOVE_FOLDER', 'MOVE_POSITION', 'ARCHIVE', 'UNARCHIVE'. ARCHIVE and UNARCHIVE return only Folder archived successfully or Folder unarchived successfully, without the folder details.
tcRepoStructure String The complete new folder tree as a JSON string. Required for MOVE_POSITION.
folderType* String Type of folder tree. One of TESTCASES, REQUIREMENTS or KNOWLEDGE_BASE. A project keeps a separate folder tree for each type, so always send it.

projectFolders/delete

curl -L -X POST 'https://api.bugasura.io/projectFolders/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'appId=2001' \
-F 'teamId=1001' \
-F 'folderId=9002' \
-F 'folderType=TESTCASES'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectFolders/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'appId' => '2001',
    'teamId' => '1001',
    'folderId' => '9002',
    'folderType' => 'TESTCASES'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'appId': '2001', 'teamId': '1001', 'folderId': '9002', 'folderType': 'TESTCASES' }

response = requests.post('https://api.bugasura.io/projectFolders/delete', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectFolders/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

httpConn.setDoOutput(true); String formData = "appId=2001&teamId=1001&folderId=9002&folderType=TESTCASES";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length);
}

System.out.println(httpConn.getResponseCode()); } }

const form = new FormData();
form.append('appId', '2001');
form.append('teamId', '1001');
form.append('folderId', '9002');
form.append('folderType', 'TESTCASES');

fetch('https://api.bugasura.io/projectFolders/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectFolders/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "appId" => "2001", "teamId" => "1001", "folderId" => "9002", "folderType" => "TESTCASES" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Folder deleted successfully.",
    "folderDetails": {
        "app_id": 2001,
        "app_name": "Demo Project",
        "tc_repo_structure": "[{\"id\":2446,\"name\":\"f1\",\"parent_id\":null,\"tc_count\":0,\"total_tc_count\":1,\"children\":[{\"id\":2447,\"name\":\"Sample Folder - Updated\",\"parent_id\":\"9001\",\"tc_count\":1,\"total_tc_count\":1,\"children\":[]},{\"id\":2449,\"name\":\"Folder 3\",\"parent_id\":2446,\"tc_count\":0,\"total_tc_count\":0,\"children\":[]},{\"id\":2450,\"name\":\"Sample Folder -1\",\"parent_id\":2446,\"tc_count\":0,\"total_tc_count\":0,\"children\":[]}]}]",
        "folder_id": 9002,
        "folder_name": "Sample Folder - Updated",
        "parent_folder_id": 9001,
        "disp_order": 100,
        "tc_count": 1
    },
    "deletingFolderStructure": [
        {
            "id": 9002,
            "name": "Sample Folder - Updated",
            "parent_id": 9001,
            "tc_count": 1,
            "total_tc_count": 1,
            "children": []
        }
    ],
    "tcRepoStructure": [
        {
            "id": 9001,
            "name": "f1",
            "parent_id": null,
            "tc_count": 0,
            "total_tc_count": 0,
            "children": [
                {
                    "id": 9003,
                    "name": "Folder 3",
                    "parent_id": 9001,
                    "tc_count": 0,
                    "total_tc_count": 0,
                    "children": []
                },
                {
                    "id": 9004,
                    "name": "Sample Folder -1",
                    "parent_id": 9001,
                    "tc_count": 0,
                    "total_tc_count": 0,
                    "children": []
                }
            ]
        }
    ]
}

This API endpoint moves a folder of the given project, with everything in it, to the project's Trash, where it can be restored. A knowledge base folder whose documents are linked to sprints can't be deleted through the API: nothing is deleted and the call returns OK with isConfirmRequired set to 1 and the sprint names in linkedSprints.

HTTP Request

POST https://api.bugasura.io/projectFolders/delete

Body Parameters

Parameter Type Default Description
appId* Integer ID for the application where the project folder needs to be deleted.
team_id* Integer ID of the team for which the project folder needs to be deleted.
folder_id* Integer ID of the folder to be deleted.
folderType* String Type of folder tree. One of TESTCASES, REQUIREMENTS or KNOWLEDGE_BASE. A project keeps a separate folder tree for each type, so always send it.

projectFolders/getTestCases

curl -L -X GET 'https://api.bugasura.io/projectFolders/getTestCases?appId=2001&teamId=1001&folderId=9004&folderType=TESTCASES' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectFolders/getTestCases?appId=2001&teamId=1001&folderId=9004&folderType=TESTCASES');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'appId': '2001', 'teamId': '1001', 'folderId': '9004', 'folderType': 'TESTCASES', }

response = requests.get('https://api.bugasura.io/projectFolders/getTestCases', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectFolders/getTestCases?appId=2001&teamId=1001&folderId=9004&folderType=TESTCASES"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/projectFolders/getTestCases?appId=2001&teamId=1001&folderId=9004&folderType=TESTCASES', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectFolders/getTestCases?appId=2001&teamId=1001&folderId=9004&folderType=TESTCASES")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Repo folder's test cases list fetched successfully.",
    "testRepoFoldersDetails": [
        {
            "id": 9001,
            "name": "f1",
            "parent_id": null,
            "tc_count": 1
        },
        {
            "id": 9003,
            "name": "Folder 3",
            "parent_id": 9001,
            "tc_count": 1
        },
        {
            "id": 9004,
            "name": "Sample Folder -1",
            "parent_id": 9001,
            "tc_count": 1
        }
    ],
    "tcRepoStructure": [
        {
            "id": 9001,
            "name": "f1",
            "parent_id": null,
            "tc_count": 1,
            "total_tc_count": 3,
            "children": [
                {
                    "id": 9003,
                    "name": "Folder 3",
                    "parent_id": 9001,
                    "tc_count": 1,
                    "total_tc_count": 1,
                    "children": []
                },
                {
                    "id": 9004,
                    "name": "Sample Folder -1",
                    "parent_id": 9001,
                    "tc_count": 1,
                    "total_tc_count": 1,
                    "children": []
                }
            ]
        }
    ],
    "testCaseDetails": {
        "testCaseDetails": [
            {
                "app_id": 2001,
                "app_name": "Demo Project",
                "team_id": 1001,
                "test_case_id": 8001,
                "test_case_number": "TES5",
                "id": "5",
                "folder_id": 9004,
                "scenario": "Scenario 3",
                "testing_type": "Functional",
                "source": "USER",
                "priority": "MEDIUM",
                "feature_name": "Login",
                "sub_feature_name": "Validate Credentials",
                "creator_id": 3001,
                "creator_name": "Demo User",
                "creator_profile_image": "3001.avatar.png",
                "NROWS": 1,
                "STATUS": "OK"
            }
        ],
        "totalTestCasesCount": 1
    },
    "folderId": "9004",
    "folderName": "Sample Folder -1"
}

This API endpoint will get the project folders test cases details list.

HTTP Request

GET https://api.bugasura.io/projectFolders/getTestCases

Query Parameters

Parameter Type Default Description
appId* Integer ID for the application where the testcases will be fetched.
team_id* Integer ID of the team for which the test cases need to be fetched.
folder_id* Integer ID of the folder from which test cases need to be retrieved.
folderType String Type of folder tree. One of TESTCASES, REQUIREMENTS or KNOWLEDGE_BASE. A project keeps a separate folder tree for each type, so always send it.
totalLoadedCount Integer Number of test cases already loaded for pagination.

projectFolders/addFeatureFolder

curl -L -X POST 'https://api.bugasura.io/projectFolders/addFeatureFolder' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'appId=2001' \
-F 'teamId=1001' \
-F 'featureName=Create Project' \
-F 'subFeatureName=Validate the user actions'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectFolders/addFeatureFolder');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'appId' => '2001',
    'teamId' => '1001',
    'featureName' => 'Create Project',
    'subFeatureName' => 'Validate the user actions'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'appId': '2001', 'teamId': '1001', 'featureName': 'Create Project', 'subFeatureName': 'Validate the user actions' }

response = requests.post('https://api.bugasura.io/projectFolders/addFeatureFolder', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectFolders/addFeatureFolder"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

httpConn.setDoOutput(true);

String formData = "appId=2001&teamId=1001&featureName=Create+Project&subFeatureName=Validate+the+user+actions";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

Scanner s = new Scanner(httpConn.getInputStream()).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('appId', '2001');
form.append('teamId', '1001');
form.append('featureName', 'Create Project');
form.append('subFeatureName', 'Validate the user actions');

fetch('https://api.bugasura.io/projectFolders/addFeatureFolder', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectFolders/addFeatureFolder")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "appId" => "2001", "teamId" => "1001", "featureName" => "Create Project", "subFeatureName" => "Validate the user actions" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Test case's feature folder created successfully.",
    "tcRepoStructure": [
        {
            "id": 9001,
            "name": "f1",
            "parent_id": null,
            "tc_count": 1,
            "total_tc_count": 3,
            "children": [
                {
                    "id": 9003,
                    "name": "Folder 3",
                    "parent_id": 9001,
                    "tc_count": 1,
                    "total_tc_count": 1,
                    "children": []
                },
                {
                    "id": 9004,
                    "name": "Sample Folder -1",
                    "parent_id": 9001,
                    "tc_count": 1,
                    "total_tc_count": 1,
                    "children": []
                }
            ]
        },
        {
            "id": 9005,
            "name": "Create Project",
            "parent_id": null,
            "tc_count": 0,
            "total_tc_count": 0,
            "children": [
                {
                    "id": 9006,
                    "name": "Validate the user actions",
                    "parent_id": 9005,
                    "tc_count": 0,
                    "total_tc_count": 0,
                    "children": []
                }
            ]
        }
    ],
    "featureFolderId": 9005,
    "featureFolderDetails": {
        "app_id": 2001,
        "app_name": "Demo Project",
        "tc_repo_structure": "[{\"id\":2446,\"name\":\"f1\",\"parent_id\":null,\"tc_count\":1,\"total_tc_count\":3,\"children\":[{\"id\":2449,\"name\":\"Folder 3\",\"parent_id\":2446,\"tc_count\":1,\"total_tc_count\":1,\"children\":[]},{\"id\":2450,\"name\":\"Sample Folder -1\",\"parent_id\":2446,\"tc_count\":1,\"total_tc_count\":1,\"children\":[]}]},{\"id\":2459,\"name\":\"Create Project\",\"parent_id\":\"\",\"tc_count\":0,\"total_tc_count\":0,\"children\":[{\"id\":2460,\"name\":\"Validate the user actions\",\"parent_id\":2459,\"tc_count\":0,\"total_tc_count\":0,\"children\":[]}]}]",
        "folder_id": 9005,
        "folder_name": "Create Project",
        "parent_folder_id": null,
        "disp_order": 100,
        "tc_count": 0
    },
    "subFeatureFolderId": 9006,
    "subFeatureFolderDetails": {
        "app_id": 2001,
        "app_name": "Demo Project",
        "tc_repo_structure": "[{\"id\":2446,\"name\":\"f1\",\"parent_id\":null,\"tc_count\":1,\"total_tc_count\":3,\"children\":[{\"id\":2449,\"name\":\"Folder 3\",\"parent_id\":2446,\"tc_count\":1,\"total_tc_count\":1,\"children\":[]},{\"id\":2450,\"name\":\"Sample Folder -1\",\"parent_id\":2446,\"tc_count\":1,\"total_tc_count\":1,\"children\":[]}]},{\"id\":2459,\"name\":\"Create Project\",\"parent_id\":\"\",\"tc_count\":0,\"total_tc_count\":0,\"children\":[{\"id\":2460,\"name\":\"Validate the user actions\",\"parent_id\":2459,\"tc_count\":0,\"total_tc_count\":0,\"children\":[]}]}]",
        "folder_id": 9006,
        "folder_name": "Validate the user actions",
        "parent_folder_id": 9005,
        "disp_order": 100,
        "tc_count": 0
    }
}

This API endpoint will add a test case feature and sub-feature folders to the project folders for the given project.

HTTP Request

POST https://api.bugasura.io/projectFolders/addFeatureFolder

Body Parameters

Parameter Type Default Description
appId* Integer ID of the application for which the feature folder needs to be added.
team_id* Integer ID of the team for which the feature folder needs to be created.
featureName* String Name of the feature folder to be created.
subFeatureName* String Name of the sub-feature folder to be created under the feature folder.
isAIGenerated Boolean Flag to indicate if the folder is AI generated.

Test Suites

Endpoint prefix: testSuites (used by every endpoint in this section)

testSuites/list

curl -L -X GET 'https://api.bugasura.io/testSuites/list?teamId=1001&appId=2001' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testSuites/list?teamId=1001&appId=2001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'teamId': '1001', 'appId': '2001', }

response = requests.get('https://api.bugasura.io/testSuites/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testSuites/list?teamId=1001&appId=2001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/testSuites/list?teamId=1001&appId=2001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testSuites/list?teamId=1001&appId=2001")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Successfully fetched testsuite list details.",
    "testSuiteListDetails": {
        "9510": [
            {
                "app_id": 2001,
                "app_name": "Demo Project",
                "suite_id": 9510,
                "suite_name": "Sprints",
                "suite_type": "SPRINT",
                "tag_id": 9610,
                "tag_name": "Demo Sprint",
                "tag_type": "SPRINT",
                "report_id": 4001,
                "assignee_id": null,
                "requirement_id": null,
                "tc_count": 0,
                "NROWS": 15,
                "STATUS": "OK",
                "total_tc_count": 0
            }
        ],
        "9511": [
            {
                "app_id": 2001,
                "app_name": "Demo Project",
                "suite_id": 9511,
                "suite_name": "Features",
                "suite_type": "FEATURE",
                "tag_id": 9612,
                "tag_name": "Login",
                "tag_type": "FEATURE",
                "report_id": null,
                "assignee_id": null,
                "requirement_id": null,
                "tc_count": 3,
                "total_tc_count": 3
            },
            {
                "app_id": 2001,
                "app_name": "Demo Project",
                "suite_id": 9511,
                "suite_name": "Features",
                "suite_type": "FEATURE",
                "tag_id": 9611,
                "tag_name": "Repo SampleF--1 Folder",
                "tag_type": "FEATURE",
                "report_id": null,
                "assignee_id": null,
                "requirement_id": null,
                "tc_count": 0,
                "total_tc_count": 3
            }
        ],
        "9512": [
            {
                "app_id": 2001,
                "app_name": "Demo Project",
                "suite_id": 9512,
                "suite_name": "Sub Features",
                "suite_type": "SUB_FEATURE",
                "tag_id": 9613,
                "tag_name": "validate credentials",
                "tag_type": "SUB_FEATURE",
                "report_id": null,
                "assignee_id": null,
                "requirement_id": null,
                "tc_count": 3,
                "total_tc_count": 3
            }
        ]
    },
    "isTestSuiteExists": 1,
    "totalTestCasesCount": null
}

This endpoint will list all testsuites available for a project.

HTTP Request

GET https://api.bugasura.io/testSuites/list

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the testsuites need to be listed.
appId* Integer ID of the application for which the testsuites need to be listed.

testSuites/get

curl -L -X GET 'https://api.bugasura.io/testSuites/get?team_id=1001&appId=2001&suiteId=9513&suiteType=TESTING_TYPE' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testSuites/get?team_id=1001&appId=2001&suiteId=9513&suiteType=TESTING_TYPE');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'appId': '2001', 'suiteId': '9513', 'suiteType': 'TESTING_TYPE', }

response = requests.get('https://api.bugasura.io/testSuites/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testSuites/get?team_id=1001&appId=2001&suiteId=9513&suiteType=TESTING_TYPE"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/testSuites/get?team_id=1001&appId=2001&suiteId=9513&suiteType=TESTING_TYPE', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testSuites/get?team_id=1001&appId=2001&suiteId=9513&suiteType=TESTING_TYPE")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Successfully fetched testsuite details.",
    "testSuiteDetails": [
        {
            "app_id": 2001,
            "app_name": "Demo Project",
            "suite_id": 9513,
            "suite_name": "Testing Types",
            "suite_type": "TESTING_TYPE",
            "NROWS": 1,
            "STATUS": "OK"
        }
    ]
}

This endpoint will get a testsuite details.

HTTP Request

GET https://api.bugasura.io/testSuites/get

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the testsuite details needs to be fetched.
appId* Integer ID of the application for which the testsuite details needs to be fetched.
suiteId* Integer ID of the testsuite for which the details needs to be fetched.
suiteType String Type of the testsuite to be fetched.

testSuites/add

curl -L -X POST 'https://api.bugasura.io/testSuites/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001' \
-F 'suiteName=SPRINT'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testSuites/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'suiteName' => 'SPRINT'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'teamId': '1001', 'appId': '2001', 'suiteName': 'SPRINT' }

response = requests.post('https://api.bugasura.io/testSuites/add', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testSuites/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

httpConn.setDoOutput(true);

String formData = "teamId=1001&appId=2001&suiteName=SPRINT";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

Scanner s = new Scanner(httpConn.getInputStream()).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('suiteName', 'SPRINT');

fetch('https://api.bugasura.io/testSuites/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testSuites/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "teamId" => "1001", "appId" => "2001", "suiteName" => "SPRINT" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Successfully added new testsuite.",
    "suiteId": 9501,
    "suiteType": "CUSTOM"
}

This endpoint will add a new testsuite.

HTTP Request

POST https://api.bugasura.io/testSuites/add

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the testsuite needs to be created.
appId* Integer ID of the application for which the testsuite needs to be created.
suiteName* String Name of the testsuite that needs to be added.
suiteType String CUSTOM Type of the testsuite to be created. Accepted suite types are 'SPRINT', 'FEATURE', 'SUB_FEATURE', 'TESTING_TYPE', 'SEVERITY', 'PRIORITY', 'STATUS', 'ASSIGNEE', 'SOURCE', 'REQUIREMENT', 'CUSTOM', 'OTHER'.

testSuites/update

curl -L -X POST 'https://api.bugasura.io/testSuites/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001' \
-F 'suiteName=PRIORITY' \
-F 'suiteId=9501'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testSuites/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'suiteName' => 'PRIORITY',
    'suiteId' => '9501'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'teamId': '1001', 'appId': '2001', 'suiteName': 'PRIORITY', 'suiteId': '9501' }

response = requests.post('https://api.bugasura.io/testSuites/update', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testSuites/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

httpConn.setDoOutput(true); String formData = "teamId=1001&appId=2001&suiteName=PRIORITY&suiteId=9501";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

System.out.println(httpConn.getResponseCode()); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('suiteName', 'PRIORITY');
form.append('suiteId', '9501');

fetch('https://api.bugasura.io/testSuites/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testSuites/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data({ "teamId" => "1001", "appId" => "2001", "suiteName" => "PRIORITY", "suiteId" => "9501" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Successfully updated testsuite."
}

This endpoint will update a testsuite.

HTTP Request

POST https://api.bugasura.io/testSuites/update

Body Parameters

Parameter Type Default Description
teamId* Integer ID of the team for which the testsuite needs to be updated.
appId* Integer ID of the application for which the testsuite needs to be updated.
suiteId* Integer ID of the testsuite to be updated.
suiteName String Name of the testsuite to be updated.
suiteType String Type of the testsuite to be updated.

testSuites/delete

curl -L -X POST 'https://api.bugasura.io/testSuites/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001' \
-F 'suiteId=9501'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testSuites/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'suiteId' => '9501'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'teamId': '1001', 'appId': '2001', 'suiteId': '9501' }

response = requests.post('https://api.bugasura.io/testSuites/delete', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testSuites/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

httpConn.setDoOutput(true); String formData = "teamId=1001&appId=2001&suiteId=9501";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

System.out.println(httpConn.getResponseCode()); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('suiteId', '9501');

fetch('https://api.bugasura.io/testSuites/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testSuites/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data({ "teamId" => "1001", "appId" => "2001", "suiteId" => "9501" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Successfully deleted test suite."
}

This endpoint will delete a testsuite.

HTTP Request

POST https://api.bugasura.io/testSuites/delete

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the testsuite needs to be deleted.
appId* Integer ID of the application for which the testsuite needs to be deleted.
suite_id* Integer ID of the testsuite to be deleted.

testSuites/tag/add

curl -L -X POST 'https://api.bugasura.io/testSuites/tag/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001' \
-F 'suiteId=9501' \
-F 'tagName=NEW'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testSuites/tag/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'suiteId' => '9501',
    'tagName' => 'NEW'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'teamId': '1001', 'appId': '2001', 'suiteId': '9501', 'tagName': 'NEW' }

response = requests.post('https://api.bugasura.io/testSuites/tag/add', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testSuites/tag/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

httpConn.setDoOutput(true); String formData = "teamId=1001&appId=2001&suiteId=9501&tagName=NEW";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

System.out.println(httpConn.getResponseCode()); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('suiteId', '9501');
form.append('tagName', 'NEW');

fetch('https://api.bugasura.io/testSuites/tag/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testSuites/tag/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data({ "teamId" => "1001", "appId" => "2001", "suiteId" => "9501", "tagName" => "NEW" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Successfully created a new tag.",
    "tagId": 9601,
    "tagType": "OTHER"
}

This endpoint will add a tag to testsuite. Tags can only be added to suites of the type CUSTOM or OTHER.

HTTP Request

POST https://api.bugasura.io/testSuites/tag/add

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the tag needs to be added. Without it the request fails with Invalid data provided. Please refresh and try again.
appId* Integer ID of the application for which the tag needs to be added.
suite_id* Integer ID of the testsuite to which the tag needs to be added.
tag_name* String Name of the tag to be added to the testsuite.

testSuites/tag/update

curl -L -X POST 'https://api.bugasura.io/testSuites/tag/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001' \
-F 'suiteId=9501' \
-F 'tagName=PRIORITY' \
-F 'tagId=9601'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testSuites/tag/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'suiteId' => '9501',
    'tagName' => 'PRIORITY',
    'tagId' => '9601'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'teamId': '1001', 'appId': '2001', 'suiteId': '9501', 'tagName': 'PRIORITY', 'tagId': '9601' }

response = requests.post('https://api.bugasura.io/testSuites/tag/update', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testSuites/tag/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

httpConn.setDoOutput(true); String formData = "teamId=1001&appId=2001&suiteId=9501&tagName=PRIORITY&tagId=9601";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

System.out.println(httpConn.getResponseCode()); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('suiteId', '9501');
form.append('tagName', 'PRIORITY');
form.append('tagId', '9601');

fetch('https://api.bugasura.io/testSuites/tag/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testSuites/tag/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "teamId" => "1001", "appId" => "2001", "suiteId" => "9501", "tagName" => "PRIORITY", "tagId" => "9601" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Successfully updated tag."
}

This endpoint will update a tag name of a testsuite. Only tags of type OTHER, which are the tags you add yourself, can be renamed.

HTTP Request

POST https://api.bugasura.io/testSuites/tag/update

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the tag needs to be updated in the testsuite.
appId* Integer ID of the application for which the tag needs to be updated in the testsuite.
suite_id* Integer ID of the testsuite for which the tag needs to be updated.
tag_id* Integer ID of the tag to be updated.
tag_name* String New name of the tag to be updated.

testSuites/tag/delete

curl -L -X POST 'https://api.bugasura.io/testSuites/tag/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001' \
-F 'suiteId=9501' \
-F 'tagId=9601'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testSuites/tag/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'suiteId' => '9501',
    'tagId' => '9601'
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'teamId': '1001', 'appId': '2001', 'suiteId': '9501', 'tagId': '9601' }

response = requests.post('https://api.bugasura.io/testSuites/tag/delete', headers=headers, data=data)

import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testSuites/tag/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

httpConn.setDoOutput(true); String formData = "teamId=1001&appId=2001&suiteId=9501&tagId=9601";

try (OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes(StandardCharsets.UTF_8); os.write(input, 0, input.length); }

System.out.println(httpConn.getResponseCode()); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('suiteId', '9501');
form.append('tagId', '9601');

fetch('https://api.bugasura.io/testSuites/tag/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testSuites/tag/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

request.set_form_data({ "teamId" => "1001", "appId" => "2001", "suiteId" => "9501", "tagId" => "9601" })

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Successfully deleted tag from testsuite."
}

This endpoint will delete a tag name of a testsuite. Only tags of type OTHER, which are the tags you add yourself, can be deleted.

HTTP Request

POST https://api.bugasura.io/testSuites/tag/delete

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the tag needs to be deleted from the testsuite.
appId* Integer ID of the application for which the tag needs to be deleted from the testsuite.
suite_id* Integer ID of the testsuite from which the tag needs to be deleted.
tag_id* Integer ID of the tag to be deleted.

Test Data

Endpoint prefixes: projectTestDataEnvironments, projectTestDataEnvironmentsDetails, projectTestData, projectTestDataFiles (each endpoint in this section uses one of these)

Test data is the set of values a project's tests run against. It lives in four related pieces.

Deleting or duplicating an environment affects its variables and files together: deleting an environment permanently deletes its variables and files, and duplicating one copies them.

All the endpoints in this module take the project as appId and the team as team_id. Variable values and file contents are readable by every member of the project, so do not store real secrets.

projectTestDataEnvironments/get

curl -L -X GET 'https://api.bugasura.io/projectTestDataEnvironments/get?team_id=1001&appId=2001' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestDataEnvironments/get?team_id=1001&appId=2001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'appId': '2001', }

response = requests.get('https://api.bugasura.io/projectTestDataEnvironments/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestDataEnvironments/get?team_id=1001&appId=2001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/projectTestDataEnvironments/get?team_id=1001&appId=2001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestDataEnvironments/get?team_id=1001&appId=2001")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Environments details retrieved successfully",
  "environmentDetails": [
    {
      "proj_test_data_env_id": 9101,
      "app_id": 2001,
      "environment_name": "Demo Staging",
      "created_date": "2026-11-01 10:00:00",
      "last_modified": "2026-11-01 10:00:00",
      "creator_id": 3001,
      "last_modified_by": 3001,
      "creator_name": "Demo User",
      "last_modified_by_name": "Demo User",
      "api_base_url": "https://api.example.com",
      "base_url": "https://www.example.com",
      "api_base_url_id": 9202,
      "base_url_id": 9203,
      "NROWS": 1,
      "STATUS": "OK"
    }
  ]
}

List the environments of the given project, newest first. Each environment includes the values and IDs of its baseUrl and apiBaseUrl variables. Send environmentId to get a single environment. An unknown ID returns OK with an empty environmentDetails list.

HTTP Request

GET https://api.bugasura.io/projectTestDataEnvironments/get

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
environmentId Integer Return only the environment with this ID.

projectTestDataEnvironments/add

curl -L -X POST 'https://api.bugasura.io/projectTestDataEnvironments/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'environmentName=Demo Staging'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestDataEnvironments/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'environmentName' => 'Demo Staging',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'environmentName': (None, 'Demo Staging'), }

response = requests.post('https://api.bugasura.io/projectTestDataEnvironments/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestDataEnvironments/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&environmentName=Demo+Staging";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('environmentName', 'Demo Staging');

fetch('https://api.bugasura.io/projectTestDataEnvironments/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestDataEnvironments/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['environmentName', 'Demo Staging']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Environment created successfully",
  "environmentDetails": {
    "proj_test_data_env_id": 9101,
    "app_id": "2001",
    "environment_name": "Demo Staging",
    "creator_id": 3001,
    "last_modified_by": 3001,
    "created_date": "2026-11-01 10:00:00",
    "last_modified": "2026-11-01 10:00:00"
  }
}

Create a new environment in the given project. The environment is created with two empty default variables, baseUrl and apiBaseUrl, which you can then fill in with projectTestData/update. The name must be unique in the project (case-insensitive) and cannot be Globals, otherwise the request fails with Environment name already exists or Environment name cannot be Globals.

HTTP Request

POST https://api.bugasura.io/projectTestDataEnvironments/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
environmentName* String Name of the new environment. Required. Up to 250 characters.

projectTestDataEnvironments/update

curl -L -X POST 'https://api.bugasura.io/projectTestDataEnvironments/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'environmentId=9101' \
-F 'environmentName=Demo QA'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestDataEnvironments/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'environmentId' => '9101',
    'environmentName' => 'Demo QA',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'environmentId': (None, '9101'), 'environmentName': (None, 'Demo QA'), }

response = requests.post('https://api.bugasura.io/projectTestDataEnvironments/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestDataEnvironments/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&environmentId=9101&environmentName=Demo+QA";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('environmentId', '9101');
form.append('environmentName', 'Demo QA');

fetch('https://api.bugasura.io/projectTestDataEnvironments/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestDataEnvironments/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['environmentId', '9101'],['environmentName', 'Demo QA']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Environment updated successfully",
  "environmentDetails": {
    "proj_test_data_env_id": 9101,
    "app_id": 2001,
    "environment_name": "Demo Staging",
    "created_date": "2026-11-01 10:00:00",
    "last_modified": "2026-11-01 10:00:00",
    "creator_id": 3001,
    "last_modified_by": 3001,
    "creator_name": "Demo User",
    "last_modified_by_name": "Demo User",
    "api_base_url": "https://api.example.com",
    "base_url": "https://www.example.com",
    "api_base_url_id": 9202,
    "base_url_id": 9203
  }
}

Rename an environment. The returned environmentDetails shows the environment as it was before the rename, so read it again with projectTestDataEnvironments/get to see the new name. Sending the current name (ignoring case) changes nothing and returns No changes detected.. A name that another environment of the project already uses fails with Environment name already exists. An environmentId that does not belong to the project fails with a generic processing error.

HTTP Request

POST https://api.bugasura.io/projectTestDataEnvironments/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
environmentId* Integer The ID of the environment to rename. Required.
environmentName* String The new name. Required. Up to 250 characters.

projectTestDataEnvironments/delete

curl -L -X POST 'https://api.bugasura.io/projectTestDataEnvironments/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'environmentId=9101'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestDataEnvironments/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'environmentId' => '9101',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'environmentId': (None, '9101'), }

response = requests.post('https://api.bugasura.io/projectTestDataEnvironments/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestDataEnvironments/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&environmentId=9101";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('environmentId', '9101');

fetch('https://api.bugasura.io/projectTestDataEnvironments/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestDataEnvironments/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['environmentId', '9101']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Environment deleted successfully"
}

This permanently deletes the environment together with all of its variables and all of its uploaded files. There is no trash and it cannot be undone. Global variables and global files of the project are not touched. An unknown environmentId fails with Environment not found.

HTTP Request

POST https://api.bugasura.io/projectTestDataEnvironments/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
environmentId* Integer The ID of the environment to delete. Required.

projectTestDataEnvironments/duplicate

curl -L -X POST 'https://api.bugasura.io/projectTestDataEnvironments/duplicate' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'sourceEnvironmentId=9101' \
-F 'newEnvironmentName=Demo QA Copy'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestDataEnvironments/duplicate');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'sourceEnvironmentId' => '9101',
    'newEnvironmentName' => 'Demo QA Copy',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'sourceEnvironmentId': (None, '9101'), 'newEnvironmentName': (None, 'Demo QA Copy'), }

response = requests.post('https://api.bugasura.io/projectTestDataEnvironments/duplicate', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestDataEnvironments/duplicate"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&sourceEnvironmentId=9101&newEnvironmentName=Demo+QA+Copy";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('sourceEnvironmentId', '9101');
form.append('newEnvironmentName', 'Demo QA Copy');

fetch('https://api.bugasura.io/projectTestDataEnvironments/duplicate', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestDataEnvironments/duplicate")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['sourceEnvironmentId', '9101'],['newEnvironmentName', 'Demo QA Copy']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Environment duplicated successfully",
  "environmentDetails": {
    "proj_test_data_env_id": 9102,
    "app_id": "2001",
    "environment_name": "Demo QA Copy",
    "creator_id": 3001,
    "created_date": "2026-11-01 10:10:00",
    "last_modified": "2026-11-01 10:10:00",
    "last_modified_by": 3001
  }
}

Create a new environment that is a copy of an existing one. The copy gets every variable's key, value and description (every copied variable is active) and every uploaded file of the source environment, so it also carries any values you stored. The source environment is not changed. The new name must be unique in the project (case-insensitive), otherwise the request fails with Environment name already exists. Only an existing environment of the project can be copied, so sourceEnvironmentId is always required.

HTTP Request

POST https://api.bugasura.io/projectTestDataEnvironments/duplicate

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
sourceEnvironmentId* Integer The ID of the environment to copy. Required.
newEnvironmentName* String Name of the new environment. Required. Up to 250 characters.

projectTestDataEnvironmentsDetails/get

curl -L -X GET 'https://api.bugasura.io/projectTestDataEnvironmentsDetails/get?team_id=1001&appId=2001&environmentId=9101' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestDataEnvironmentsDetails/get?team_id=1001&appId=2001&environmentId=9101');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'appId': '2001', 'environmentId': '9101', }

response = requests.get('https://api.bugasura.io/projectTestDataEnvironmentsDetails/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestDataEnvironmentsDetails/get?team_id=1001&appId=2001&environmentId=9101"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/projectTestDataEnvironmentsDetails/get?team_id=1001&appId=2001&environmentId=9101', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestDataEnvironmentsDetails/get?team_id=1001&appId=2001&environmentId=9101")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Environment test data details retrieved successfully",
  "testDataVariableDetails": [
    {
      "proj_test_data_id": 9201,
      "app_id": 2001,
      "proj_test_data_env_id": 9101,
      "is_global": 0,
      "description": "Demo login password",
      "variable": "demo_password",
      "value": "demo-password",
      "created_date": "2026-11-01 10:05:00",
      "last_modified": "2026-11-01 10:05:00",
      "creator_id": 3001,
      "is_active": 1,
      "is_default_variable": 0,
      "creator_name": "Demo User",
      "last_modified_by": 3001,
      "last_modified_by_name": "Demo User",
      "environment_name": "Demo Staging",
      "NROWS": 1,
      "STATUS": "OK"
    }
  ],
  "testDataFilesDetails": [
    {
      "proj_test_data_file_id": 9401,
      "app_id": 2001,
      "proj_test_data_env_id": 9101,
      "is_global": 0,
      "description": "Demo users",
      "category": "Demo Fixtures",
      "file_name": "demo_users.csv",
      "file_url": "1001/2001/testData/env_9101/20261101100500_demo.csv",
      "file_type": "csv",
      "file_size": "0.06",
      "creator_id": 3001,
      "created_date": "2026-11-01 10:05:00",
      "last_modified": "2026-11-01 10:05:00",
      "profile_image": "3001.avatar-1.png",
      "creator_name": "Demo User",
      "last_modified_by": 3001,
      "last_modified_by_name": "Demo User",
      "environment_name": "Demo Staging",
      "json_file_path": "https://cdn.example.com/1001/2001/testData/env_9101/20261101100500_demo.csv"
    }
  ]
}

Get everything stored for an environment in one call: its variables in testDataVariableDetails and its files in testDataFilesDetails. Inactive variables are left out. To read the project's global variables and files instead, or together with an environment, send isGetGlobalTestData=1; environmentId is then optional. Without environmentId and without isGetGlobalTestData the request fails with Environment Id must be provided when isGetGlobalTestData is 0.

HTTP Request

GET https://api.bugasura.io/projectTestDataEnvironmentsDetails/get

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
environmentId Integer The ID of the environment. Required unless isGetGlobalTestData is 1.
isGetGlobalTestData Integer 0 Send 1 to include the global variables and files (only the globals when environmentId is not sent).

projectTestData/get

curl -L -X GET 'https://api.bugasura.io/projectTestData/get?team_id=1001&appId=2001&environmentId=9101' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestData/get?team_id=1001&appId=2001&environmentId=9101');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'appId': '2001', 'environmentId': '9101', }

response = requests.get('https://api.bugasura.io/projectTestData/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestData/get?team_id=1001&appId=2001&environmentId=9101"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/projectTestData/get?team_id=1001&appId=2001&environmentId=9101', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestData/get?team_id=1001&appId=2001&environmentId=9101")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test data details retrieved successfully",
  "testDataDetails": [
    {
      "proj_test_data_id": 9201,
      "app_id": 2001,
      "proj_test_data_env_id": 9101,
      "is_global": 0,
      "description": "Demo login password",
      "variable": "demo_password",
      "value": "demo-password",
      "created_date": "2026-11-01 10:05:00",
      "last_modified": "2026-11-01 10:05:00",
      "creator_id": 3001,
      "is_active": 1,
      "is_default_variable": 0,
      "creator_name": "Demo User",
      "last_modified_by": 3001,
      "last_modified_by_name": "Demo User",
      "environment_name": "Demo Staging",
      "NROWS": 1,
      "STATUS": "OK"
    }
  ]
}

List the variables of an environment, newest first, including inactive ones (is_active is 0). is_default_variable is 1 for the baseUrl and apiBaseUrl variables that every environment is created with. Values are returned in clear text. Send isGetGlobalTestData=1 to read the project's global variables (together with the environment's when environmentId is also sent). With neither environmentId nor isGetGlobalTestData the request fails with an error asking for an environment ID.

HTTP Request

GET https://api.bugasura.io/projectTestData/get

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
environmentId Integer The ID of the environment. Required unless isGetGlobalTestData is 1.
isGetGlobalTestData Integer 0 Send 1 to read the global variables of the project. 0 or 1.

projectTestData/add

curl -L -X POST 'https://api.bugasura.io/projectTestData/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'environmentId=9101' \
-F 'variableKey=demo_password' \
-F 'variableValue=demo-password' \
-F 'description=Demo login password'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestData/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'environmentId' => '9101',
    'variableKey' => 'demo_password',
    'variableValue' => 'demo-password',
    'description' => 'Demo login password',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'environmentId': (None, '9101'), 'variableKey': (None, 'demo_password'), 'variableValue': (None, 'demo-password'), 'description': (None, 'Demo login password'), }

response = requests.post('https://api.bugasura.io/projectTestData/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestData/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&environmentId=9101&variableKey=demo_password&variableValue=demo-password&description=Demo+login+password";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('environmentId', '9101');
form.append('variableKey', 'demo_password');
form.append('variableValue', 'demo-password');
form.append('description', 'Demo login password');

fetch('https://api.bugasura.io/projectTestData/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestData/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['environmentId', '9101'],['variableKey', 'demo_password'],['variableValue', 'demo-password'],['description', 'Demo login password']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test data created successfully",
  "testDataDetails": {
    "proj_test_data_id": 9201,
    "app_id": "2001",
    "proj_test_data_env_id": "9101",
    "is_global": 0,
    "description": "Demo login password",
    "variable": "demo_password",
    "value": "demo-password",
    "created_date": "2026-11-01 10:05:00",
    "last_modified": "2026-11-01 10:05:00",
    "creator_id": 3001,
    "last_modified_by": 3001,
    "is_active": 1
  }
}

Add a variable to an environment, or send isGlobal=1 to add a project-wide global variable. The key may contain only letters, numbers, underscores and dashes (letters of any language are allowed) and must be unique in the environment, or among the globals, otherwise the request fails with Variable key already exists.

HTTP Request

POST https://api.bugasura.io/projectTestData/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
variableKey* String Key of the variable. Required. Up to 250 characters; letters, numbers, _ and - only.
environmentId Integer The ID of the environment the variable belongs to. Required unless isGlobal is 1. Always send it: the request is not rejected without it, but it creates a stray variable that belongs to no environment.
variableValue String The value. Up to 5000 characters.
description String A note about the variable. Up to 500 characters.
isGlobal Integer 0 Send 1 to create a global variable; environmentId is then ignored.

projectTestData/update

curl -L -X POST 'https://api.bugasura.io/projectTestData/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'environmentId=9101' \
-F 'testDataId=9201' \
-F 'variableKey=demo_password' \
-F 'variableValue=demo-password-2' \
-F 'description=Demo login password'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestData/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'environmentId' => '9101',
    'testDataId' => '9201',
    'variableKey' => 'demo_password',
    'variableValue' => 'demo-password-2',
    'description' => 'Demo login password',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'environmentId': (None, '9101'), 'testDataId': (None, '9201'), 'variableKey': (None, 'demo_password'), 'variableValue': (None, 'demo-password-2'), 'description': (None, 'Demo login password'), }

response = requests.post('https://api.bugasura.io/projectTestData/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestData/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&environmentId=9101&testDataId=9201&variableKey=demo_password&variableValue=demo-password-2&description=Demo+login+password";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('environmentId', '9101');
form.append('testDataId', '9201');
form.append('variableKey', 'demo_password');
form.append('variableValue', 'demo-password-2');
form.append('description', 'Demo login password');

fetch('https://api.bugasura.io/projectTestData/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestData/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['environmentId', '9101'],['testDataId', '9201'],['variableKey', 'demo_password'],['variableValue', 'demo-password-2'],['description', 'Demo login password']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test data updated successfully",
  "testDataDetails": {
    "proj_test_data_id": 9201,
    "app_id": 2001,
    "proj_test_data_env_id": 9101,
    "is_global": 0,
    "description": "Demo login password",
    "variable": "demo_password",
    "value": "demo-password-2",
    "created_date": "2026-11-01 10:05:00",
    "last_modified": "2026-11-01 10:05:00",
    "creator_id": 3001,
    "is_active": 1,
    "is_default_variable": 0,
    "creator_name": "Demo User",
    "last_modified_by": 3001,
    "last_modified_by_name": "Demo User",
    "environment_name": "Demo Staging"
  }
}

Update a variable. Send the full set of fields every time, because omitted fields are not left alone. variableKey is always required and is written as sent, so it renames the variable. description is overwritten, and omitting it clears it. isActive is overwritten, and omitting it sets the variable back to active. An empty or missing variableValue keeps the stored value, so a value cannot be cleared with this endpoint. is_active in the returned testDataDetails is the value from before the update. The new key must not be used by another variable in the same environment, otherwise the request fails with Variable with the same name already exists in this environment.

HTTP Request

POST https://api.bugasura.io/projectTestData/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
testDataId* Integer The ID of the variable to update. Required.
variableKey* String Key of the variable. Required. Up to 250 characters; letters, numbers, _ and - only.
environmentId Integer The ID of the environment the variable belongs to. Required unless isGlobal is 1. Without it the request fails with Environment ID cannot be empty.
variableValue String The new value. Up to 5000 characters. Empty keeps the stored value.
description String Up to 500 characters. Empty clears the description.
isGlobal Integer 0 Send 1 when the variable is a global variable.
isActive Integer 1 1 for active, 0 to deactivate the variable. Omitting it activates the variable.

projectTestData/delete

curl -L -X POST 'https://api.bugasura.io/projectTestData/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'testDataId=9201'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestData/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'testDataId' => '9201',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'testDataId': (None, '9201'), }

response = requests.post('https://api.bugasura.io/projectTestData/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestData/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&testDataId=9201";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('testDataId', '9201');

fetch('https://api.bugasura.io/projectTestData/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestData/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['testDataId', '9201']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test data deleted successfully"
}

This permanently deletes the variable. There is no trash and it cannot be undone. Send isGlobal=1 together with testDataId to delete a global variable.

HTTP Request

POST https://api.bugasura.io/projectTestData/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
testDataId* Integer The ID of the variable to delete. Required.
isGlobal Integer 0 Send 1 when the variable is a global variable.

projectTestDataFiles/get

curl -L -X GET 'https://api.bugasura.io/projectTestDataFiles/get?team_id=1001&appId=2001&environmentId=9101' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestDataFiles/get?team_id=1001&appId=2001&environmentId=9101');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'appId': '2001', 'environmentId': '9101', }

response = requests.get('https://api.bugasura.io/projectTestDataFiles/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestDataFiles/get?team_id=1001&appId=2001&environmentId=9101"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/projectTestDataFiles/get?team_id=1001&appId=2001&environmentId=9101', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestDataFiles/get?team_id=1001&appId=2001&environmentId=9101")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test data details retrieved successfully",
  "testDataFileDetails": [
    {
      "proj_test_data_file_id": 9401,
      "app_id": 2001,
      "proj_test_data_env_id": 9101,
      "is_global": 0,
      "description": "Demo users",
      "category": "Demo Fixtures",
      "file_name": "demo_users.csv",
      "file_url": "1001/2001/testData/env_9101/20261101100500_demo.csv",
      "file_type": "csv",
      "file_size": "0.06",
      "creator_id": 3001,
      "created_date": "2026-11-01 10:05:00",
      "last_modified": "2026-11-01 10:05:00",
      "profile_image": "3001.avatar-1.png",
      "creator_name": "Demo User",
      "last_modified_by": 3001,
      "last_modified_by_name": "Demo User",
      "environment_name": "Demo Staging",
      "json_file_path": "https://cdn.example.com/1001/2001/testData/env_9101/20261101100500_demo.csv",
      "NROWS": 1,
      "STATUS": "OK"
    }
  ],
  "customTestDataCategory": "[{\"categoryName\":\"Demo Fixtures\",\"categoryDescription\":\"Demo fixture files\"}]"
}

List the files of an environment, newest first. json_file_path is the download URL of the file. customTestDataCategory is a JSON-encoded string with the categories added to the project through projectTestDataFiles/addCategory, and is an empty string when there are none. Send isGetGlobalTestData=1 to read the project's global files (together with the environment's when environmentId is also sent). Send testDataFileId to get a single file. With no environmentId, no testDataFileId and no isGetGlobalTestData the request fails with Either environmentId or testDataFileId must be provided.

HTTP Request

GET https://api.bugasura.io/projectTestDataFiles/get

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
environmentId Integer The ID of the environment. Required unless testDataFileId or isGetGlobalTestData is sent.
testDataFileId Integer Return only the file with this ID.
isGetGlobalTestData Integer 0 Send 1 to read the global files of the project. 0 or 1.

projectTestDataFiles/add

curl -L -X POST 'https://api.bugasura.io/projectTestDataFiles/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'environmentId=9101' \
-F 'testData[]=@demo_users.csv' \
-F 'testData[]=@demo_pixel.png' \
-F 'categoryDetails=[{"category":"Demo Fixtures","description":"Demo users"},{"category":"Images"}]'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestDataFiles/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'environmentId' => '9101',
    'testData[0]' => new CURLFile('demo_users.csv'),
    'testData[1]' => new CURLFile('demo_pixel.png'),
    'categoryDetails' => '[{"category":"Demo Fixtures","description":"Demo users"},{"category":"Images"}]',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

data = { 'team_id': '1001', 'appId': '2001', 'environmentId': '9101', 'categoryDetails': '[{"category": "Demo Fixtures", "description": "Demo users"}, {"category": "Images"}]', }

files = [ ('testData[]', ('demo_users.csv', open('demo_users.csv', 'rb'), 'text/csv')), ('testData[]', ('demo_pixel.png', open('demo_pixel.png', 'rb'), 'image/png')), ]

response = requests.post('https://api.bugasura.io/projectTestDataFiles/add', headers=headers, data=data, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { String boundary = "----BugasuraBoundary" + System.currentTimeMillis(); URL url = new URL("https://api.bugasura.io/projectTestDataFiles/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); addField(out, boundary, "team_id", "1001"); addField(out, boundary, "appId", "2001"); addField(out, boundary, "environmentId", "9101"); addFile(out, boundary, "testData[]", Paths.get("demo_users.csv")); addFile(out, boundary, "testData[]", Paths.get("demo_pixel.png")); addField(out, boundary, "categoryDetails", "[{\"category\":\"Demo Fixtures\",\"description\":\"Demo users\"},{\"category\":\"Images\"}]"); out.write(("--" + boundary + "--\r\n").getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); }

private static void addField(OutputStream out, String boundary, String name, String value) throws IOException { String part = "--" + boundary + "\r\n" + "Content-Disposition: form-data; name=\"" + name + "\"\r\n\r\n" + value + "\r\n"; out.write(part.getBytes(StandardCharsets.UTF_8)); }

private static void addFile(OutputStream out, String boundary, String name, Path file) throws IOException { String contentType = Files.probeContentType(file); if (contentType == null) { contentType = "application/octet-stream"; } String header = "--" + boundary + "\r\n" + "Content-Disposition: form-data; name=\"" + name + "\"; filename=\"" + file.getFileName() + "\"\r\n" + "Content-Type: " + contentType + "\r\n\r\n"; out.write(header.getBytes(StandardCharsets.UTF_8)); out.write(Files.readAllBytes(file)); out.write("\r\n".getBytes(StandardCharsets.UTF_8)); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('environmentId', '9101');
form.append('testData[]', new Blob(['name,email\nDemo User,demo@example.com\n'], { type: 'text/csv' }), 'demo_users.csv');
form.append('testData[]', pixelFile, 'demo_pixel.png'); // a File or Blob you already have
form.append('categoryDetails', JSON.stringify([
    { category: 'Demo Fixtures', description: 'Demo users' },
    { category: 'Images' },
]));

fetch('https://api.bugasura.io/projectTestDataFiles/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestDataFiles/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form([ ["team_id", "1001"], ["appId", "2001"], ["environmentId", "9101"], ["testData[]", File.open("demo_users.csv")], ["testData[]", File.open("demo_pixel.png")], ["categoryDetails", '[{"category":"Demo Fixtures","description":"Demo users"},{"category":"Images"}]'], ], "multipart/form-data")

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test data file uploaded successfully.",
  "testDataFilesDetails": [
    {
      "test_data_file_id": 9401,
      "file_name": "demo_users.csv",
      "unique_file_name": "20261101100500_demo1.csv",
      "file_extension": "csv",
      "file_size": 0.06,
      "file_path": "https://cdn.example.com/1001/2001/testData/env_9101/20261101100500_demo1.csv",
      "category": "Demo Fixtures",
      "description": "Demo users",
      "created_date": "2026-11-01 10:05:00"
    },
    {
      "test_data_file_id": 9402,
      "file_name": "demo_pixel.png",
      "unique_file_name": "20261101100500_demo2.png",
      "file_extension": "png",
      "file_size": 0.07,
      "file_path": "https://cdn.example.com/1001/2001/testData/env_9101/20261101100500_demo2.png",
      "category": "Images",
      "description": "",
      "created_date": "2026-11-01 10:05:00"
    }
  ]
}

Upload one or more files to an environment (or to the project's globals). Send the request as multipart/form-data with each file in the testData[] field, and describe the files in categoryDetails: a JSON-encoded array with one object per file, in the same order as the files. Each object needs a category (up to 250 characters) and can have a description (up to 500 characters). The number of files must equal the number of objects, otherwise the request fails with Number of files must match number of categories.. A file whose name and category (ignoring case) already exist in the same environment (or among the global files) is rejected with Test data file '<name>' with category '<category>' already exists in environment ID [<id>]. (for global files the message ends in global scope.), and then no file of the request is stored. The file size is returned in KB. The category is free text; it does not have to be added with projectTestDataFiles/addCategory first.

HTTP Request

POST https://api.bugasura.io/projectTestDataFiles/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
testData[]* File The files to upload, one multipart part per file, each with its file name. Required.
categoryDetails* String JSON array with one {"category": "...", "description": "..."} object per file, in the same order as testData[]. Required.
environmentId Integer The ID of the environment the files belong to. Required unless isGlobal is 1. Without it the request fails with Environment ID cannot be empty.
isGlobal Integer 0 Send 1 to store the files as global files of the project.

projectTestDataFiles/delete

curl -L -X POST 'https://api.bugasura.io/projectTestDataFiles/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'testDataFileId=9401'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestDataFiles/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'testDataFileId' => '9401',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'testDataFileId': (None, '9401'), }

response = requests.post('https://api.bugasura.io/projectTestDataFiles/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestDataFiles/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&testDataFileId=9401";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('testDataFileId', '9401');

fetch('https://api.bugasura.io/projectTestDataFiles/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestDataFiles/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['testDataFileId', '9401']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test data file(s) deleted successfully.",
  "deletedCount": 1
}

This permanently deletes the file from the project and from storage. There is no trash and it cannot be undone. deletedCount is the number of files deleted. An unknown testDataFileId fails with Test data file not found..

HTTP Request

POST https://api.bugasura.io/projectTestDataFiles/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
testDataFileId* Integer The ID of the file to delete. Required.

projectTestDataFiles/addCategory

curl -L -X POST 'https://api.bugasura.io/projectTestDataFiles/addCategory' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'categoryName=Demo Fixtures' \
-F 'categoryDescription=Demo fixture files'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectTestDataFiles/addCategory');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'categoryName' => 'Demo Fixtures',
    'categoryDescription' => 'Demo fixture files',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'categoryName': (None, 'Demo Fixtures'), 'categoryDescription': (None, 'Demo fixture files'), }

response = requests.post('https://api.bugasura.io/projectTestDataFiles/addCategory', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectTestDataFiles/addCategory"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&categoryName=Demo+Fixtures&categoryDescription=Demo+fixture+files";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('categoryName', 'Demo Fixtures');
form.append('categoryDescription', 'Demo fixture files');

fetch('https://api.bugasura.io/projectTestDataFiles/addCategory', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectTestDataFiles/addCategory")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['categoryName', 'Demo Fixtures'],['categoryDescription', 'Demo fixture files']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test data file category added successfully.",
  "customCategory": {
    "categoryName": "Demo Fixtures",
    "categoryDescription": "Demo fixture files"
  }
}

Add a custom file category to the project. The category is stored on the project and appears in customTestDataCategory of projectTestDataFiles/get; the ID of a category is not returned, because files refer to a category by its name. A name that already exists (ignoring case) fails with Category already exists (case-insensitive check).. There is no endpoint to rename or remove a category.

HTTP Request

POST https://api.bugasura.io/projectTestDataFiles/addCategory

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team, and fails with Invalid data provided! if the project is not in that team.
appId* Integer The ID of the project. Required. Without a project you can access the request fails with Invalid data provided!.
categoryName* String Name of the category. Required. Up to 250 characters.
categoryDescription* String A short description of the category. Required. Up to 250 characters.

Sprints

Endpoint prefix: sprints (used by every endpoint in this section)

sprints/list

curl -L -X GET 'https://api.bugasura.io/sprints/list?project_id=2001&team_id=1001&search_text=&start_at=&max_results=' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/sprints/list?project_id=2001&team_id=1001&search_text=&start_at=&max_results=');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'project_id': '2001', 'team_id': '1001', 'search_text': '', 'start_at': '', 'max_results': '', }

response = requests.get('https://api.bugasura.io/sprints/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/sprints/list?project_id=2001&team_id=1001&search_text=&start_at=&max_results="); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/sprints/list?project_id=2001&team_id=1001&search_text=&start_at=&max_results=', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/sprints/list?project_id=2001&team_id=1001&search_text=&start_at=&max_results=")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Sprint list fetched successfully",
    "sprintsList": [
        {
            "project_id": 2001,
            "project_name": "My Bugasura Project",
            "team_id": 1001,
            "platform": "Desktop",
            "platform_type": "Web",
            "sprint_id": 4001,
            "sprint_name": "My First sprint",
            "sprint_created": "2022-02-20 16:46:23",
            "start_date": "2022-02-20",
            "end_date": "2022-03-20",
            "sprint_status": "SCHEDULED"
        },
        {
            "project_id": 2001,
            "project_name": "My Bugasura Project",
            "team_id": 1001,
            "platform": "Desktop",
            "platform_type": "Web",
            "sprint_id": 4002,
            "sprint_name": "project test Sprint 15th Jun 6:33 pm",
            "sprint_created": "2022-06-10 16:46:23",
            "start_date": "2022-06-10",
            "end_date": "2022-06-20",
            "sprint_status": "SCHEDULED"
        }
    ],
    "nrows": 2,
    "total_rows": 2,
    "start_at": 0,
    "max_results": 10
}

This API end point will list all the sprints for a given team, project and the query parameters.

HTTP Request

GET https://api.bugasura.io/sprints/list

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the sprints needs to be listed.
project_id* Integer ID of the project for which the sprints needs to be listed.
search_text String A string to match (case-insensitive) against the sprint name.
start_at Integer 0 The index of the first item to return in a page of results.
max_results Integer 10 The maximum number of items to return per page. Values below 10 are treated as 10 and values above 100 as 100.

sprints/get

curl -L -X GET 'https://api.bugasura.io/sprints/get?project_id=2001&team_id=1001&sprint_id=4001' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/sprints/get?project_id=2001&team_id=1001&sprint_id=4001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'project_id': '2001', 'team_id': '1001', 'sprint_id': '4001', }

response = requests.get('https://api.bugasura.io/sprints/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/sprints/get?project_id=2001&team_id=1001&sprint_id=4001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/sprints/get?project_id=2001&team_id=1001&sprint_id=4001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/sprints/get?project_id=2001&team_id=1001&sprint_id=4001")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Sprint details fetched successfully",
    "sprintDetails": [
        {
            "project_id": 2001,
            "project_name": "MyProject",
            "team_id": 1001,
            "platform": "Desktop",
            "platform_type": "Web",
            "sprint_id": 4001,
            "sprint_name": "My First Sprint",
            "start_date": null,
            "end_date": null,
            "sprint_status": "SCHEDULED"
        }
    ]
}

This API end point will get the sprint details for a given team, project and the sprint.

HTTP Request

GET https://api.bugasura.io/sprints/get

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the sprint details need to be obtained.
project_id* Integer ID of the project for which the sprint details need to be obtained.
sprint_id* Integer ID of the sprint for which the details need to be obtained..

sprints/add

curl -L -X POST 'https://api.bugasura.io/sprints/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'project_id=2001' \
-F 'team_id=1001' \
-F 'sprint_name=My Sprint 189' \
-F 'start_date=2022-02-15' \
-F 'end_date=2022-06-20' \
-F 'sprint_status=' \
-F 'duration=0'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/sprints/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'project_id' => '2001',
    'team_id' => '1001',
    'sprint_name' => 'My First Sprint',
    'start_date' => '2022-02-15',
    'end_date' => '2022-06-20',
    'sprint_status' => '',
    'duration' => '0',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'project_id': (None, '2001'), 'team_id': (None, '1001'), 'sprint_name': (None, 'My First Sprint'), 'start_date': (None, '2022-02-15'), 'end_date': (None, '2022-06-20'), 'sprint_status': (None, ''), 'duration': (None, '0'), }

response = requests.post('https://api.bugasura.io/sprints/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/sprints/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("project_id=2001&team_id=1001&sprint_name=My First Sprint&start_date=2022-02-15&end_date=2022-06-20&sprint_status=&duration=0"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('project_id', '2001');
form.append('team_id', '1001');
form.append('sprint_name', 'My First Sprint');
form.append('start_date', '2022-02-15');
form.append('end_date', '2022-06-20');
form.append('sprint_status', '');
form.append('duration', '0');

fetch('https://api.bugasura.io/sprints/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/sprints/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['project_id', '2001'],['team_id', '1001'],['sprint_name', 'My Sprint 189'],['start_date', '2022-02-15'],['end_date', '2022-06-20'],['sprint_status', ''],['duration', '0']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Sprint created successfully",
    "project_id": "2001",
    "sprint_id": 4002,
    "platform": "Desktop",
    "platform_type": "Web",
    "project_name": null,
    "sprint_name": "my-sprint-name"
}

This API endpoint will create a sprint in a given team and project.

HTTP Request

POST https://api.bugasura.io/sprints/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team in which the sprint needs to be created.
project_id* Integer The ID of the project in which the sprint needs to be created.
sprint_name* String Name of your sprint that you want to create. 5 to 250 characters.
start_date String Date on which sprint is scheduled to start or the date on which it started (In YYYY-MM-DD format).
end_date String Date on which sprint is scheduled to end or the date on which it ended (In YYYY-MM-DD format).
duration Integer Duration of the sprint in days.
sprint_status String SCHEDULED Status of the sprint like ('SCHEDULED','IN PROGRESS','CANCELLED','COMPLETED').

sprints/update

curl -L -X POST 'https://api.bugasura.io/sprints/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'sprint_id=4001' \
-F 'sprint_name=my sprint name update' \
-F 'start_date=2022-06-08' \
-F 'end_date=2022-06-11' \
-F 'duration=0' \
-F 'sprint_status=SCHEDULED' \
-F 'team_id=1001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/sprints/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'sprint_id' => '4001',
    'sprint_name' => 'my sprint name update',
    'start_date' => '2022-06-08',
    'end_date' => '2022-06-11',
    'duration' => '0',
    'sprint_status' => 'SCHEDULED',
    'team_id' => '1001',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch);?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'sprint_id': (None, '4001'), 'sprint_name': (None, 'my sprint name update'), 'start_date': (None, '2022-06-08'), 'end_date': (None, '2022-06-11'), 'duration': (None, '0'), 'sprint_status': (None, 'SCHEDULED'), 'team_id': (None, '1001'), }

response = requests.post('https://api.bugasura.io/sprints/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/sprints/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("sprint_id=4001&sprint_name=my sprint name update&start_date=2022-06-08&end_date=2022-06-11&duration=0&sprint_status=SCHEDULED&team_id=1001"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('sprint_id', '4001');
form.append('sprint_name', 'my sprint name update');
form.append('start_date', '2022-06-08');
form.append('end_date', '2022-06-11');
form.append('duration', '0');
form.append('sprint_status', 'SCHEDULED');
form.append('team_id', '1001');

fetch('https://api.bugasura.io/sprints/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/sprints/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['sprint_id', '4001'],['sprint_name', 'my sprint name update'],['start_date', '2022-06-08'],['end_date', '2022-06-11'],['duration', '0'],['sprint_status', 'SCHEDULED'],['team_id', '1001']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Sprint successfully updated",
    "sprint_id": 4001,
    "sprint_name": "my sprint name",
    "start_date": "2022-06-08",
    "end_date": "2022-06-11",
    "duration": 0,
    "sprint_status": "SCHEDULED",
    "days_remaining": "0 days remaining"
}

This API endpoint will allow the team users to update the sprint details.

HTTP Request

POST https://api.bugasura.io/sprints/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team in which the sprint needs to be updated.
sprint_id* Integer The ID of the sprint in which the sprint needs to be updated.
sprint_name String New name for the sprint.
start_date String Date on which sprint is scheduled to start or the date on which it started (In YYYY-MM-DD format).
end_date String Date on which sprint is scheduled to end or the date on which it ended (In YYYY-MM-DD format).
duration Integer Duration of the sprint in days.
sprint_status String Status of the sprint like ('SCHEDULED','IN PROGRESS','CANCELLED','COMPLETED').

Note: All the update field parameters cannot be empty. Only include the parameters which you want to update.

sprints/delete

curl -L -X POST 'https://api.bugasura.io/sprints/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'sprint_id=4002' \
-F 'project_id=2001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/sprints/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'sprint_id' => '4002',
    'project_id' => '2001',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch);?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'sprint_id': (None, '4002'), 'project_id': (None, '2001'), }

response = requests.post('https://api.bugasura.io/sprints/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/sprints/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

httpConn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream()); writer.write("team_id=1001&sprint_id=4002&project_id=2001"); writer.flush(); writer.close(); httpConn.getOutputStream().close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('sprint_id', '4002');
form.append('project_id', '2001');

fetch('https://api.bugasura.io/sprints/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/sprints/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['sprint_id', '4002'],['project_id', '2001']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Sprint successfully deleted"
}

This API endpoint will allow a team users to delete the sprint from a project.

HTTP Request

POST https://api.bugasura.io/sprints/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team from which the sprint needs to be deleted.
project_id* Integer The ID of the project from which the sprint needs to be deleted.
sprint_id* Integer The ID of the sprint which needs to be deleted.

Test Runs

Endpoint prefix: testrunsExecution (used by every endpoint in this section)

A test run is one execution of a set of test cases inside a sprint. When a run is created, the test cases linked to the sprint (or just the test cases you pick) are copied into it, so every run has its own results and its own test case list. Every run belongs to a schedule, a group record that holds the name, the mode and, for recurring work, the frequency. In the API the group is called a scheduler and is identified by schedulerId; the run itself is identified by testRunsExecutionRunId (or run_id in responses).

There are two modes:

The frequency of a scheduled run is ONCE, DAILY, WEEKLY or CUSTOM. A CUSTOM schedule repeats every repeat_value hours, days or weeks, set in frequency_settings (see testrunsExecution/add).

The execution_status of a run is free text of up to 50 characters. The app uses SCHEDULED (created, not started), IN_PROGRESS and COMPLETED. Setting COMPLETED also records the completion time.

New runs started by a person (the default executionSource of HUMAN) send an in-app notification to the admins of the team (you are left out). Moving a single run to the trash sends one to the invited members of the project instead.

testrunsExecution/getList

curl -L -X GET 'https://api.bugasura.io/testrunsExecution/getList?team_id=1001&appId=2001&reportId=4001' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testrunsExecution/getList?team_id=1001&appId=2001&reportId=4001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'appId': '2001', 'reportId': '4001', }

response = requests.get('https://api.bugasura.io/testrunsExecution/getList', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testrunsExecution/getList?team_id=1001&appId=2001&reportId=4001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/testrunsExecution/getList?team_id=1001&appId=2001&reportId=4001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testrunsExecution/getList?team_id=1001&appId=2001&reportId=4001")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test Runs fetched Successfully",
  "projectReportList": [
    {
      "report_id": 4001,
      "report_name": "Demo Sprint",
      "NROWS": 1,
      "STATUS": "OK"
    }
  ],
  "schedulerDetails": {
    "test_runs": [
      {
        "run_id": 4101,
        "run_name": "Demo Smoke Run",
        "report_id": 4001,
        "scheduler_id": 4201,
        "source": "HUMAN",
        "execution_status": "IN_PROGRESS",
        "start_time": null,
        "end_time": null,
        "duration": null,
        "created_date": "2026-11-01 10:00:00",
        "last_modified": "2026-11-01 10:05:00",
        "is_archived": 0,
        "proj_test_data_env_id": null,
        "execution_config": null,
        "creator_name": "Demo User",
        "creator_email": "demo.user@example.com",
        "profile_image": "3001.avatar-1.png",
        "modifier_name": "Demo User",
        "scheduler_name": "Demo Smoke Run",
        "scheduler_frequency": null,
        "total_test_case": 2,
        "in_progress_test_case": 0,
        "completed_test_case": 0,
        "total_testresults": 0,
        "NROWS": 1,
        "STATUS": "OK",
        "agents": []
      }
    ],
    "scheduler": [
      {
        "testrun_execution_run_schedule_id": 4201,
        "scheduler_name": "Demo Smoke Run",
        "app_id": 2001,
        "report_id": 4001,
        "frequency": null,
        "mode": "SINGLE",
        "frequency_settings": null,
        "schedule_time": null,
        "next_scheduled_time": null,
        "status": "COMPLETED",
        "is_archived": 0,
        "notification_settings": null,
        "created_date": "2026-11-01 10:00:00",
        "last_modified": "2026-11-01 10:00:00",
        "created_by": 3001,
        "last_modified_by": null,
        "testrun_name": "Demo Sprint",
        "app_name": "Demo Project",
        "creator_name": "Demo User",
        "profile_image": "3001.avatar-1.png",
        "creator_email": "demo.user@example.com",
        "team_id": 1001,
        "proj_test_data_env_id": null,
        "execution_config": null,
        "NROWS": 1,
        "STATUS": "OK"
      }
    ]
  }
}

List the test runs and schedules of a sprint. schedulerDetails.test_runs has one entry per run, with the test case counts and the enabled agents, and schedulerDetails.scheduler has one entry per schedule. When the sprint has none, each list holds a single placeholder entry with NROWS set to 0 and no other fields. projectReportList lists the active sprints of the project. Archived runs and schedules are left out unless you send fetchOnlyArchivedRuns or fetchActiveAndArchivedRuns. The list is not paged.

To get the details of one schedule, also send its schedulerId: the response is then {"status", "message", "testrunsDetails": [...]} with the schedule row (testrunsDetails is empty when it does not match). If you send both schedulerId and testRunsExecutionRunId, testrunsDetails holds the matching run row instead. In this mode only active, non-archived rows are searched, so an archived schedule or run gives an empty list. Sending testRunsExecutionRunId without schedulerId fails with Scheduler ID cannot be empty. A request without reportId fails with Report Id cannot be empty (Report ID cannot be empty when schedulerId is sent).

HTTP Request

GET https://api.bugasura.io/testrunsExecution/getList

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails.
reportId* Integer The ID of the sprint the test run belongs to. Required. Without it the request fails with Report Id cannot be empty.
schedulerId Integer Return the details of this schedule only. See the description above.
testRunsExecutionRunId Integer Used together with schedulerId, see above. Without schedulerId it makes the request fail.
searchByText String Return only the runs whose name contains this text. It does not filter the schedules.
sortBy String last_modified Sort order. last_modified (newest first) or created_date (oldest first). Any other value sorts by last_modified.
fetchOnlyArchivedRuns Integer 0 Send 1 to return only archived runs and schedules.
fetchActiveAndArchivedRuns Integer 0 Send 1 to return archived and active runs and schedules together. Ignored when fetchOnlyArchivedRuns is 1.

testrunsExecution/add

curl -L -X POST 'https://api.bugasura.io/testrunsExecution/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'reportId=4001' \
-F 'name=Demo Smoke Run' \
-F 'executionMode=single' \
-F 'executionStatus=SCHEDULED'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testrunsExecution/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'reportId' => '4001',
    'name' => 'Demo Smoke Run',
    'executionMode' => 'single',
    'executionStatus' => 'SCHEDULED',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'reportId': (None, '4001'), 'name': (None, 'Demo Smoke Run'), 'executionMode': (None, 'single'), 'executionStatus': (None, 'SCHEDULED'), }

response = requests.post('https://api.bugasura.io/testrunsExecution/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testrunsExecution/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&reportId=4001&name=Demo+Smoke+Run&executionMode=single&executionStatus=SCHEDULED";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('reportId', '4001');
form.append('name', 'Demo Smoke Run');
form.append('executionMode', 'single');
form.append('executionStatus', 'SCHEDULED');

fetch('https://api.bugasura.io/testrunsExecution/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testrunsExecution/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['reportId', '4001'],['name', 'Demo Smoke Run'],['executionMode', 'single'],['executionStatus', 'SCHEDULED']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test Run created successfully.",
  "executionData": {
    "STATUS": "OK",
    "EXECUTE_STATUS": true,
    "NROWS": 1,
    "INSERT_ID": 4101
  }
}

Create a test run, or a recurring schedule, in a sprint. In single mode a schedule and one run are created at once and executionData.INSERT_ID is the ID of the new run. By default the run gets every test case linked to the sprint; send isCreateRunForSelectedTestCases=1 with testCaseIds to pick some. In scheduled mode only a schedule is created, executionData is null and the message is Test Run scheduled successfully. The response does not return the schedule ID, so read it with testrunsExecution/getList. To create a recurring schedule, send frequency, scheduleDate, scheduleTime and frequency_settings, for example -F 'frequency=DAILY' -F 'scheduleDate=2030-01-01' -F 'scheduleTime=10:00' -F 'frequency_settings={"recurrence_end_date":"2030-03-01"}'.

frequency_settings is a JSON string. All keys are optional, but the string itself is required in scheduled mode (send {} for none): recurrence_end_date (YYYY-MM-DD, the schedule ends after this day), recurrence_count (the schedule ends after this many runs), and for CUSTOM frequency repeat_unit (hours, days or weeks), repeat_value (a number) and, for weeks, selected_days (a JSON array of lower-case or capitalized English day names, as a string, for example ["monday","friday"]).

The name must be unique among the schedules of the sprint (case-insensitive), otherwise the request fails with Test Run Scheduler with this name already exists.

When executionSource is HUMAN (the default), the admins of the team are notified in-app (you are left out). Creating a run also creates a test case tag named after the run, and every test case added to the run gets a system comment <user> added this Test Case.

HTTP Request

POST https://api.bugasura.io/testrunsExecution/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails with Invalid data provided!.
reportId* Integer The ID of the sprint the test run belongs to. Required. Without it the request fails with Report ID cannot be empty.
name* String Name of the run or schedule. 2 to 250 characters.
executionMode* String single to create one run now, or scheduled to create a schedule.
executionStatus String Status of the new run in single mode, for example SCHEDULED. Up to 50 characters.
executionSource String HUMAN Who runs the test cases, up to 50 characters. Runs with the source HUMAN notify the team admins in-app.
isCreateRunForSelectedTestCases Integer 0 Send 1 together with testCaseIds to put only those test cases in the run. Without it, testCaseIds is ignored and the run gets every test case in the sprint.
testCaseIds String Comma-separated test case IDs, for example 8001,8002. Values that are not numbers are dropped. Used when isCreateRunForSelectedTestCases is 1. Also stored with a schedule for the runs it creates.
environmentId Integer The ID of a test data environment of the project to attach to the run.
executionConfig String JSON string with the environment and agent settings of the run, up to 65535 characters. A value that is not valid JSON fails with Invalid execution config JSON is provided.
frequency String Required in scheduled mode. ONCE, DAILY, WEEKLY or CUSTOM. Up to 50 characters.
scheduleDate String Date of the first run, YYYY-MM-DD. Send it in scheduled mode: it is not validated, and an empty date gives a broken next run time.
scheduleTime String Required in scheduled mode. Time of day of the runs, for example 10:00. Up to 18 characters.
frequency_settings String Required in scheduled mode. JSON string, see above. Up to 2000 characters.

testrunsExecution/copy

curl -L -X POST 'https://api.bugasura.io/testrunsExecution/copy' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'reportId=4001' \
-F 'testExecutionRunId=4101' \
-F 'testCaseIds=8001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testrunsExecution/copy');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'reportId' => '4001',
    'testExecutionRunId' => '4101',
    'testCaseIds' => '8001',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'reportId': (None, '4001'), 'testExecutionRunId': (None, '4101'), 'testCaseIds': (None, '8001'), }

response = requests.post('https://api.bugasura.io/testrunsExecution/copy', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testrunsExecution/copy"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&reportId=4001&testExecutionRunId=4101&testCaseIds=8001";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('reportId', '4001');
form.append('testExecutionRunId', '4101');
form.append('testCaseIds', '8001');

fetch('https://api.bugasura.io/testrunsExecution/copy', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testrunsExecution/copy")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['reportId', '4001'],['testExecutionRunId', '4101'],['testCaseIds', '8001']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test run execution copied successfully."
}

Add a test case of the sprint to an existing run. The test case must be linked to the sprint and must not be in the run already, otherwise the request fails with Test Case is already present in selected Execution Run. Send one test case ID per call: a comma-separated list such as 8001,8002 is rejected with Test Case ID cannot be empty. The test case is added to the run's test case tag, and gets a system comment <user> added this Test Case.

HTTP Request

POST https://api.bugasura.io/testrunsExecution/copy

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project.
reportId* Integer The ID of the sprint the test run belongs to.
testExecutionRunId* Integer The ID of the run to add the test case to.
testCaseIds* Integer The ID of one test case to add. Despite the plural name, only a single ID per call is accepted.

testrunsExecution/rerun

curl -L -X POST 'https://api.bugasura.io/testrunsExecution/rerun' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'reportId=4001' \
-F 'schedulerId=4201' \
-F 'isAddRerun=1'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testrunsExecution/rerun');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'reportId' => '4001',
    'schedulerId' => '4201',
    'isAddRerun' => '1',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'reportId': (None, '4001'), 'schedulerId': (None, '4201'), 'isAddRerun': (None, '1'), }

response = requests.post('https://api.bugasura.io/testrunsExecution/rerun', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testrunsExecution/rerun"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&reportId=4001&schedulerId=4201&isAddRerun=1";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('reportId', '4001');
form.append('schedulerId', '4201');
form.append('isAddRerun', '1');

fetch('https://api.bugasura.io/testrunsExecution/rerun', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testrunsExecution/rerun")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['reportId', '4001'],['schedulerId', '4201'],['isAddRerun', '1']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Testrun execution rerun added successfully.",
  "testrunExecutionRunId": 4102
}

Add a new run to an existing schedule. The new run is named after the schedule followed by the current date and time, for example Demo Smoke Run 01 November 2026 10:30:00, and has the status SCHEDULED. It keeps the environment and execution config of the schedule. Send isAddRerun=1: the new run gets a copy of the test cases of the schedule's latest run. The new run is always created with the source HUMAN, so the admins of the team are always notified in-app (you are left out). A test case tag named after the run is created, and every test case added to the run gets a system comment <user> added this Test Case.

HTTP Request

POST https://api.bugasura.io/testrunsExecution/rerun

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails with App ID cannot be empty.
reportId* Integer The ID of the sprint the test run belongs to. Required. Without it the request fails with Report ID cannot be empty.
schedulerId* Integer The ID of the schedule to add the run to. Required. Without it the request fails with Scheduler ID cannot be empty.
isAddRerun* Integer Send 1. The new run gets a copy of the test cases of the schedule's latest run.

testrunsExecution/testruns/update

curl -L -X POST 'https://api.bugasura.io/testrunsExecution/testruns/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'testRunsExecutionRunId=4101' \
-F 'runName=Demo Smoke Run Renamed' \
-F 'executionStatus=IN_PROGRESS'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testrunsExecution/testruns/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'testRunsExecutionRunId' => '4101',
    'runName' => 'Demo Smoke Run Renamed',
    'executionStatus' => 'IN_PROGRESS',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'testRunsExecutionRunId': (None, '4101'), 'runName': (None, 'Demo Smoke Run Renamed'), 'executionStatus': (None, 'IN_PROGRESS'), }

response = requests.post('https://api.bugasura.io/testrunsExecution/testruns/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testrunsExecution/testruns/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&testRunsExecutionRunId=4101&runName=Demo+Smoke+Run+Renamed&executionStatus=IN_PROGRESS";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('testRunsExecutionRunId', '4101');
form.append('runName', 'Demo Smoke Run Renamed');
form.append('executionStatus', 'IN_PROGRESS');

fetch('https://api.bugasura.io/testrunsExecution/testruns/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testrunsExecution/testruns/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['testRunsExecutionRunId', '4101'],['runName', 'Demo Smoke Run Renamed'],['executionStatus', 'IN_PROGRESS']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Testrun execution updated successfully.",
  "executionData": {
    "testrun_execution_run_id": "4101",
    "name": "Demo Smoke Run Renamed",
    "execution_status": "IN_PROGRESS",
    "start_time": null,
    "end_time": null,
    "duration": null,
    "last_modified": "2026-11-01 10:30:00"
  }
}

Rename a run, change its status or its environment. Fields you leave out are not changed (the response shows an empty name or execution_status for a field you did not send). Setting executionStatus to COMPLETED records the completion time. A run name that is already used is rejected with Execution with this name already exists for this testrun. start_time, end_time and duration in the response are always null.

Send isArchived=1 to archive the run, or isArchived=0 to restore it. Archiving needs a team admin or an admin of the project. When the archive state actually changes, the run creator and the invited members of the project (you are left out) are notified in-app.

HTTP Request

POST https://api.bugasura.io/testrunsExecution/testruns/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
testRunsExecutionRunId* Integer The ID of the run to update. Required. Without it the request fails with Test Run Execution ID cannot be empty.
runName String The new name of the run. Up to 250 characters.
executionStatus String The new status, for example IN_PROGRESS or COMPLETED. Up to 50 characters.
environmentId Integer The ID of a test data environment of the project to attach to the run.
executionConfig String JSON string with the environment and agent settings of the run, up to 65535 characters. A value that is not valid JSON fails with Invalid execution config JSON is provided.
isArchived Integer 1 to archive the run, 0 to restore it. Leave it out for a normal update.
appId* Integer The ID of the project. Required. Used to check that you have access to the project. Without it the request fails with Invalid data provided!.

testrunsExecution/scheduler/update

curl -L -X POST 'https://api.bugasura.io/testrunsExecution/scheduler/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'reportId=4001' \
-F 'schedulerId=4202' \
-F 'schedulerName=Demo Nightly Schedule' \
-F 'executionMode=scheduled' \
-F 'frequency=WEEKLY' \
-F 'nextScheduledTime=2030-02-01 11:00:00' \
-F 'status=PAUSED'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testrunsExecution/scheduler/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'reportId' => '4001',
    'schedulerId' => '4202',
    'schedulerName' => 'Demo Nightly Schedule',
    'executionMode' => 'scheduled',
    'frequency' => 'WEEKLY',
    'nextScheduledTime' => '2030-02-01 11:00:00',
    'status' => 'PAUSED',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'reportId': (None, '4001'), 'schedulerId': (None, '4202'), 'schedulerName': (None, 'Demo Nightly Schedule'), 'executionMode': (None, 'scheduled'), 'frequency': (None, 'WEEKLY'), 'nextScheduledTime': (None, '2030-02-01 11:00:00'), 'status': (None, 'PAUSED'), }

response = requests.post('https://api.bugasura.io/testrunsExecution/scheduler/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testrunsExecution/scheduler/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&reportId=4001&schedulerId=4202&schedulerName=Demo+Nightly+Schedule&executionMode=scheduled&frequency=WEEKLY&nextScheduledTime=2030-02-01+11%3A00%3A00&status=PAUSED";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('reportId', '4001');
form.append('schedulerId', '4202');
form.append('schedulerName', 'Demo Nightly Schedule');
form.append('executionMode', 'scheduled');
form.append('frequency', 'WEEKLY');
form.append('nextScheduledTime', '2030-02-01 11:00:00');
form.append('status', 'PAUSED');

fetch('https://api.bugasura.io/testrunsExecution/scheduler/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testrunsExecution/scheduler/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['reportId', '4001'],['schedulerId', '4202'],['schedulerName', 'Demo Nightly Schedule'],['executionMode', 'scheduled'],['frequency', 'WEEKLY'],['nextScheduledTime', '2030-02-01 11:00:00'],['status', 'PAUSED']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Testrun scheduler updated successfully.",
  "schedulerData": {
    "scheduler_id": "4202",
    "name": "Demo Nightly Schedule",
    "frequency": "WEEKLY",
    "schedule_time": "11:00",
    "executionStatus": "PAUSED",
    "next_scheduled_time": "2030-02-01 11:00:00",
    "last_modified": "2026-11-01 10:30:00"
  }
}

Update a schedule. Send executionMode=scheduled to change a recurring schedule: pass the frequency, time and next time you want to change (a field you leave out keeps its value), and set status to PAUSED to stop it or ACTIVE to start it again. Send executionMode=single to rename a single-run schedule. Sending it for a recurring schedule turns the schedule into a single-run schedule and creates one run in it. Names must be unique among the schedules of the sprint, otherwise the request fails with Test Run Scheduler with this name already exists. The fields in schedulerData that you did not send are null or empty.

Send isArchived=1 to archive the schedule, or isArchived=0 to restore it. This is a stand-alone action that ignores the other fields and needs an admin. schedulerData then holds only scheduler_id, is_archived and last_modified. When the archive state actually changes, the schedule creator and the invited members of the project (you are left out) are notified in-app.

HTTP Request

POST https://api.bugasura.io/testrunsExecution/scheduler/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
schedulerId* Integer The ID of the schedule. Required. Without it the request fails with Scheduler ID cannot be empty.
appId* Integer The ID of the project. Required. Used to check that you have access to the project. Without it the request fails with Invalid data provided!.
reportId Integer The ID of the sprint the test run belongs to. Used to check for duplicate names.
schedulerName String The new name. Up to 250 characters.
executionMode* String Required. scheduled or single, see above and the warning. Up to 20 characters.
frequency String ONCE, DAILY, WEEKLY or CUSTOM.
frequency_settings String JSON string, as described for testrunsExecution/add. Up to 2000 characters.
nextScheduledTime String When the schedule runs next, YYYY-MM-DD HH:MM:SS.
status String ACTIVE, PAUSED or COMPLETED. Up to 50 characters.
environmentId Integer The ID of a test data environment of the project.
executionConfig String JSON string with the environment and agent settings of the run, up to 65535 characters. A value that is not valid JSON fails with Invalid execution config JSON is provided.
isArchived Integer 1 to archive the schedule, 0 to restore it. Leave it out for a normal update.

testrunsExecution/deleteTestRunsExecution

curl -L -X POST 'https://api.bugasura.io/testrunsExecution/deleteTestRunsExecution' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'reportId=4001' \
-F 'testRunExecutionRunIds=4101'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testrunsExecution/deleteTestRunsExecution');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'reportId' => '4001',
    'testRunExecutionRunIds' => '4101',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'reportId': (None, '4001'), 'testRunExecutionRunIds': (None, '4101'), }

response = requests.post('https://api.bugasura.io/testrunsExecution/deleteTestRunsExecution', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testrunsExecution/deleteTestRunsExecution"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&reportId=4001&testRunExecutionRunIds=4101";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('reportId', '4001');
form.append('testRunExecutionRunIds', '4101');

fetch('https://api.bugasura.io/testrunsExecution/deleteTestRunsExecution', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testrunsExecution/deleteTestRunsExecution")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['reportId', '4001'],['testRunExecutionRunIds', '4101']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test Run moved to trash successfully."
}

Delete one or more runs. The runs are moved to the trash (the message is Test Run moved to trash successfully.) and a single run sends an in-app notification to the invited members of the project (you are left out). A run moved to the trash is renamed to <name>-deleted-on-<date and time>. The schedule the run belongs to is not deleted; use testrunsExecution/deleteScheduler for that. If one run in the list cannot be deleted, none is. A run that is not in the sprint, or is already in the trash, fails with Error while Deleting the Scheduler Execution Details.

HTTP Request

POST https://api.bugasura.io/testrunsExecution/deleteTestRunsExecution

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required, because the admin check uses it.
reportId* Integer The ID of the sprint the test run belongs to.
testRunExecutionRunIds* String The ID of the run, a comma-separated list of IDs (4101,4102) or a JSON array ([4101,4102]). Up to 256 characters.

testrunsExecution/deleteScheduler

curl -L -X POST 'https://api.bugasura.io/testrunsExecution/deleteScheduler' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'reportId=4001' \
-F 'schedulerId=4202'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/testrunsExecution/deleteScheduler');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'reportId' => '4001',
    'schedulerId' => '4202',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'reportId': (None, '4001'), 'schedulerId': (None, '4202'), }

response = requests.post('https://api.bugasura.io/testrunsExecution/deleteScheduler', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/testrunsExecution/deleteScheduler"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&reportId=4001&schedulerId=4202";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('reportId', '4001');
form.append('schedulerId', '4202');

fetch('https://api.bugasura.io/testrunsExecution/deleteScheduler', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/testrunsExecution/deleteScheduler")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['reportId', '4001'],['schedulerId', '4202']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Test Run Scheduler moved to trash successfully."
}

Delete a schedule. It is moved to the trash (the message is Test Run Scheduler moved to trash successfully.). A schedule moved to the trash is renamed to <name>-deleted-on-<date and time>. The runs of the schedule are left alone; delete them with testrunsExecution/deleteTestRunsExecution. A request without appId fails with Sorry you do not have permission to perform this action.

HTTP Request

POST https://api.bugasura.io/testrunsExecution/deleteScheduler

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required, because the admin check uses it.
reportId* Integer The ID of the sprint the test run belongs to.
schedulerId* Integer The ID of the schedule.

Issues

Endpoint prefix: issues (used by every endpoint in this section)

issues/list

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -X GET 'https://api.bugasura.io/issues/list?team_id=1001&project_id=2001&sprint_id=4001&start_at=0&max_results=10&sort_by=issue_id&search_by_text=BUG2'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/list?team_id=1001&project_id=2001&sprint_id=4001&start_at=0&max_results=10&sort_by=issue_id&search_by_text=BUG2');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: Basic <Your API_KEY goes here>',
  'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'project_id': '2001', 'sprint_id': '4001', 'start_at': '0', 'max_results': '10', 'sort_by': 'issue_id', 'search_by_text': 'BUG2', }

response = requests.get('https://api.bugasura.io/issues/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/list?team_id=1001&project_id=2001&sprint_id=4001&start_at=0&max_results=10&sort_by=issue_id&search_by_text=BUG2"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/issues/list?team_id=1001&project_id=2001&sprint_id=4001&start_at=0&max_results=10&sort_by=issue_id&search_by_text=BUG2', {
  headers: {
    'Authorization': 'Basic <Your API_KEY goes here>',
    'Accept': 'application/json'
  }
});
require 'net/http'
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/list?team_id=1001&project_id=2001&sprint_id=4001&start_at=0&max_results=10&sort_by=issue_id&search_by_text=BUG2") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Issue list fetched successfully",
    "issue_list": [
    {
        "issue_key": 6001,
        "issue_id": "BUG20",
        "summary": "Search Button is not responding.",
        "description": "The search button is not responding when more than 25 characters are typed in the search box.",
        "status": "New",
        "issue_type": "BUG",
        "tags": "Functional,UI,UX",
        "severity": "MEDIUM",
        "device_name": "MacBook Pro",
        "os_name": "macOs",
        "os_version": "Monterey",
        "resolution": "1399 x 769",
        "network_name": "Wifi",
        "browser_name": "Chrome",
        "browser_version": "69",
        "platform_type": "Web",
        "platform": "Desktop",
        "is_public": 0,
        "creator_id": 3001,
        "creator_name": "Demo User",
        "created_date": "2022-06-09 19:06:55",
        "last_modified_by": 3001,
        "last_modified_date": "2022-06-09 19:06:56",
        "sprint_id": 4001,
        "sprint_name": "My First Sprint",
        "project_id": 2001,
        "project_name": "Demo Project",
        "is_public_project": 0,
        "public_link_url": null
    },
    {
        "issue_key": 6002,
        "issue_id": "BUG21",
        "summary": "Add Button alignment issue",
        "description": "Add Button alignement is wrong compare to the Design. Please check the screenshots provided.",
        "status": "New",
        "issue_type": "BUG",
        "tags": "UI,UX",
        "severity": "MEDIUM",
        "device_name": "MacBook Pro",
        "os_name": "macOs",
        "os_version": "Monterey",
        "resolution": "1399 x 769",
        "network_name": "Wifi",
        "browser_name": "Chrome",
        "browser_version": "69",
        "platform_type": "Web",
        "platform": "Desktop",
        "is_public": 0,
        "creator_id": 3001,
        "creator_name": "Demo User",
        "created_date": "2022-06-09 19:07:53",
        "last_modified_by": 3001,
        "last_modified_date": "2022-06-09 19:07:53",
        "sprint_id": 4001,
        "sprint_name": "My First Sprint",
        "project_id": 2001,
        "project_name": "Demo Project",
        "is_public_project": 0,
        "public_link_url": null
    }
    ],
    "nrows": 2,
    "total_rows": 2,
    "start_at": 0,
    "max_results": 10
}

This API endpoint gets the list of issue details.

HTTP Request

GET https://api.bugasura.io/issues/list

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the issues needs to be listed.
project_id* Integer ID of the project for which the issues needs to be listed.
sprint_id Integer ID of the sprint for which the issues needs to be listed. Pass this parameter to get the list of issues of a particular sprint.
start_at Integer 0 The index of the first item to return in a page of results.
max_results Integer 10 The maximum number of items to return per page. Max value is 100.
sort_by String Sort the results by a field. Valid values are: 'severity', 'sprints', 'browser', 'device', 'status', 'created_date', 'issue_type' and 'issue_id'.
search_by_text String A string to match (case-insensitive) against text fields in the issue such as Summary, Description, Issue Type, Tags, Severity, Status, Sprint Name, Device Name, Browser Name or Issue ID.

issues/get

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -X GET 'https://api.bugasura.io/issues/get?team_id=1001&project_id=2001&issue_key=6001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/get?team_id=1001&project_id=2001&issue_key=6001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: Basic <Your API_KEY goes here>',
  'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'project_id': '2001', 'issue_key': '6001', }

response = requests.get('https://api.bugasura.io/issues/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/get?team_id=1001&project_id=2001&issue_key=6001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/issues/get?team_id=1001&project_id=2001&issue_key=6001', {
  headers: {
    'Authorization': 'Basic <Your API_KEY goes here>',
    'Accept': 'application/json'
  }
});
require 'net/http'
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/get?team_id=1001&project_id=2001&issue_key=6001") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Issue Details fetched successfully",
    "issue_details": {
        "issue_key": 6001,
        "issue_id": "BUG31",
        "summary": "Github card design issue.",
        "description": "Github card in the Configure page is not as the Approved Design. Please check the screenshots shared.",
        "status": "New",
        "issue_type": "BUG",
        "tags": "UI,UX",
        "severity": "MEDIUM",
        "device_name": "macOS",
        "os_name": "macOS",
        "os_version": "Monterey",
        "resolution": "1369 x 769",
        "network_name": "WiFi",
        "browser_name": "Chrome",
        "browser_version": "60",
        "platform_type": "Web",
        "platform": "Desktop",
        "is_public": 0,
        "creator_id": 3001,
        "creator_name": "Demo User",
        "created_date": "2022-06-13 23:27:27",
        "last_modified_by": 3001,
        "last_modified_date": "2022-06-17 12:59:56",
        "sprint_id": 4001,
        "sprint_name": "My First Sprint",
        "project_id": 2001,
        "project_name": "Demo Project",
        "is_public_project": 0,
        "public_link_url": null,
        "assignees": [
            {
                "name": "Second User",
                "email_id": "second.user@example.com",
                "user_id": 3002,
                "profile_image": "https://example.com/userProfileImages/3002.png",
                "is_invited_user": 0
            },
            {
                "name": "Third User",
                "email_id": "third.user@example.com",
                "user_id": 3003,
                "profile_image": "",
                "is_invited_user": 1
            }
        ],
        "custom_fields": [
            {
                "field_id": 8002,
                "field_name": "Server Type",
                "field_value": "Stage Server"
            },
            {
                "field_id": 8001,
                "field_name": "Impact",
                "field_value": "Bad user expirence"
            }
        ],
        "attachments": [
            {
                "name": "1_design_screenshot.png",
                "url": "https://example.com/uploads/1001/2001/6001/1_design_screenshot.png",
                "added_by": "Demo User",
                "added_date": "2022-06-17 12:59:54"
            },
            {
                "name": "card_screenshot.png",
                "url": "https://example.com/uploads/1001/2001/6001/card_screenshot.png",
                "added_by": "Demo User",
                "added_date": "2022-06-17 12:59:54"
            }
        ]
    }
}

This API endpoint gets all the details of an issue.

HTTP Request

GET https://api.bugasura.io/issues/get

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the issue details need to be obtained.
project_id* Integer ID of the project for which the issue details need to be obtained.
issue_key* Integer Issue key of the issue for which the details need to be obtained.

issues/add

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -F 'team_id=1001' \
  -F 'sprint_id=4001' \
  -F 'summary=Github card design issue.' \
  -F 'description=The design of the Github card in the Configure page, is not looking same as the Approved Design. Please check the screenshots shared.' \
  -F 'issue_type=BUG' \
  -F 'status=New' \
  -F 'severity=Medium' \
  -F 'tags=UI,UX' \
  -F 'device_name=MacBook Pro' \
  -F 'os_name=macOS' \
  -F 'os_version=Monterey' \
  -F 'network_name=Wifi' \
  -F 'browser_name=Chrome' \
  -F 'browser_version=60' \
  -F 'resolution=1369 x 769' \
  -F 'is_public=0' \
  -F 'custom_fields=[{"field_id": 8001,"field_value": "Stage Server"}]' \
  -F 'issue_assignees=3002,3003' \
  -F 'issue_files[]=@"/Users/apple/Desktop/card_screenshot.png"' \
  -F 'issue_files[]=@"/Users/apple/Desktop/design_screenshot.png"' \
  -X POST 'https://api.bugasura.io/issues/add'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: Basic <Your API_KEY goes here>',
  'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
  'team_id' => '1001',
  'sprint_id' => '4001',
  'summary' => 'Github card design issue.',
  'description' => 'The design of the Github card in the Configure page, is not looking same as the Approved Design. Please check the screenshots shared.',
  'issue_type' => 'BUG',
  'status' => 'New',
  'severity' => 'Medium',
  'tags' => 'UI,UX',
  'device_name' => 'MacBook Pro',
  'os_name' => 'macOS',
  'os_version' => 'Monterey',
  'network_name' => 'Wifi',
  'browser_name' => 'Chrome',
  'browser_version' => '60',
  'resolution' => '1369 x 769',
  'is_public' => '0',
  'custom_fields' => '[{"field_id": 8001,"field_value": "Stage Server"}]',
  'issue_assignees' => '3002,3003',
  'issue_files[0]' => new CURLFile('/Users/apple/Desktop/card_screenshot.png'),
  'issue_files[1]' => new CURLFile('/Users/apple/Desktop/design_screenshot.png'),
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = [ ('team_id', (None, '1001')), ('sprint_id', (None, '4001')), ('summary', (None, 'Github card design issue.')), ('description', (None, 'The design of the Github card in the Configure page, is not looking same as the Approved Design. Please check the screenshots shared.')), ('issue_type', (None, 'BUG')), ('status', (None, 'New')), ('severity', (None, 'Medium')), ('tags', (None, 'UI,UX')), ('device_name', (None, 'MacBook Pro')), ('os_name', (None, 'macOS')), ('os_version', (None, 'Monterey')), ('network_name', (None, 'Wifi')), ('browser_name', (None, 'Chrome')), ('browser_version', (None, '60')), ('resolution', (None, '1369 x 769')), ('is_public', (None, '0')), ('custom_fields', (None, '[{"field_id": 8001,"field_value": "Stage Server"}]')), ('issue_assignees', (None, '3002,3003')), ('issue_files[]', open('/Users/apple/Desktop/card_screenshot.png', 'rb')), ('issue_files[]', open('/Users/apple/Desktop/design_screenshot.png', 'rb')), ]

response = requests.post('https://api.bugasura.io/issues/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { String boundary = "----BugasuraBoundary" + System.currentTimeMillis(); URL url = new URL("https://api.bugasura.io/issues/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); addField(out, boundary, "team_id", "1001"); addField(out, boundary, "sprint_id", "4001"); addField(out, boundary, "summary", "Github card design issue."); addField(out, boundary, "description", "The design of the Github card in the Configure page, is not looking same as the Approved Design. Please check the screenshots shared."); addField(out, boundary, "issue_type", "BUG"); addField(out, boundary, "status", "New"); addField(out, boundary, "severity", "Medium"); addField(out, boundary, "tags", "UI,UX"); addField(out, boundary, "device_name", "MacBook Pro"); addField(out, boundary, "os_name", "macOS"); addField(out, boundary, "os_version", "Monterey"); addField(out, boundary, "network_name", "Wifi"); addField(out, boundary, "browser_name", "Chrome"); addField(out, boundary, "browser_version", "60"); addField(out, boundary, "resolution", "1369 x 769"); addField(out, boundary, "is_public", "0"); addField(out, boundary, "custom_fields", "[{\"field_id\": 8001,\"field_value\": \"Stage Server\"}]"); addField(out, boundary, "issue_assignees", "3002,3003"); addFile(out, boundary, "issue_files[]", Paths.get("/Users/apple/Desktop/card_screenshot.png")); addFile(out, boundary, "issue_files[]", Paths.get("/Users/apple/Desktop/design_screenshot.png")); out.write(("--" + boundary + "--\r\n").getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); }

private static void addField(OutputStream out, String boundary, String name, String value) throws IOException { String part = "--" + boundary + "\r\n" + "Content-Disposition: form-data; name=\"" + name + "\"\r\n\r\n" + value + "\r\n"; out.write(part.getBytes(StandardCharsets.UTF_8)); }

private static void addFile(OutputStream out, String boundary, String name, Path file) throws IOException { String contentType = Files.probeContentType(file); if (contentType == null) { contentType = "application/octet-stream"; } String header = "--" + boundary + "\r\n" + "Content-Disposition: form-data; name=\"" + name + "\"; filename=\"" + file.getFileName() + "\"\r\n" + "Content-Type: " + contentType + "\r\n\r\n"; out.write(header.getBytes(StandardCharsets.UTF_8)); out.write(Files.readAllBytes(file)); out.write("\r\n".getBytes(StandardCharsets.UTF_8)); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('sprint_id', '4001');
form.append('summary', 'Github card design issue.');
form.append('description', 'The design of the Github card in the Configure page, is not looking same as the Approved Design. Please check the screenshots shared.');
form.append('issue_type', 'BUG');
form.append('status', 'New');
form.append('severity', 'Medium');
form.append('tags', 'UI,UX');
form.append('device_name', 'MacBook Pro');
form.append('os_name', 'macOS');
form.append('os_version', 'Monterey');
form.append('network_name', 'Wifi');
form.append('browser_name', 'Chrome');
form.append('browser_version', '60');
form.append('resolution', '1369 x 769');
form.append('is_public', '0');
form.append('custom_fields', '[{"field_id": 8001,"field_value": "Stage Server"}]');
form.append('issue_assignees', '3002,3003');
form.append('issue_files[]', new File(['<data goes here>'], 'card_screenshot.png'));
form.append('issue_files[]', new File(['<data goes here>'], 'design_screenshot.png'));

fetch('https://api.bugasura.io/issues/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/add") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form([ ['team_id', '1001'], ['sprint_id', '4001'], ['summary', 'Github card design issue.'], ['description', 'The design of the Github card in the Configure page, is not looking same as the Approved Design. Please check the screenshots shared.'], ['issue_type', 'BUG'], ['status', 'New'], ['severity', 'Medium'], ['tags', 'UI,UX'], ['device_name', 'MacBook Pro'], ['os_name', 'macOS'], ['os_version', 'Monterey'], ['network_name', 'Wifi'], ['browser_name', 'Chrome'], ['browser_version', '60'], ['resolution', '1369 x 769'], ['is_public', '0'], ['custom_fields', '[{"field_id": 8001,"field_value": "Stage Server"}]'], ['issue_assignees', '3002,3003'], ['issue_files[]', File.open('/Users/apple/Desktop/card_screenshot.png')], ['issue_files[]', File.open('/Users/apple/Desktop/design_screenshot.png')], ], 'multipart/form-data')

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Issue Added Successfully",
    "issue_details": {
        "issue_key": 6001,
        "issue_id": "MUL3",
        "summary": "Github card design issue.",
        "description": "The design of the Github card in the Configure page, is not looking same as the Approved Design. Please check the screenshots shared.",
        "status": "New",
        "issue_type": "BUG",
        "tags": "UI,UX",
        "severity": "MEDIUM",
        "device_name": "MacBook Pro",
        "os_name": "macOS",
        "os_version": "Monterey",
        "resolution": "1369 x 769",
        "network_name": "WiFi",
        "browser_name": "Chrome",
        "browser_version": "60",
        "platform_type": "Web",
        "platform": "Desktop",
        "is_public": 0,
        "creator_id": 3001,
        "creator_name": "",
        "created_date": "2022-06-17 14:02:57",
        "last_modified_by": 3001,
        "last_modified_date": "2022-06-17 14:02:59",
        "sprint_id": 4001,
        "sprint_name": "My First Sprint",
        "project_id": 2001,
        "project_name": "Demo Project",
        "is_public_project": 0,
        "public_link_url": null
    }
}

This API endpoint adds new issue to the given sprint.

HTTP Request

POST https://api.bugasura.io/issues/add

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the issue need to be added.
sprint_id* Integer ID of the sprint for which the issue need to be added.
summary String Short summary of the issue. The summary can have max 500 characters.
description String Description about the issue.
issue_type String BUG Type of issue. Valid values are: 'BUG', 'OBSERVATION', 'QUESTION', 'SUGGESTION', 'IMPROVEMENT' and 'NEW FEATURE'.
status String First status of the team's workflow The status of the issue. The value should be one of the team's workflow status. If status is not passed or invalid status is passed, the first status of the team's workflow will be set to the issue.
severity String MEDIUM Severity of the issue. Valid values are: 'LOW', 'MEDIUM', 'HIGH' and 'CRITICAL'.
tags String The tags for the issue. Each tags should be separated by comma and can have max 35 characters. Also maximum 5 tags only can add to an issue.
device_name String None Name of the device. This field is not need to pass for Desktop Web projects issue.
os_name String None OS name of the device/system. Only for Desktop Web and Multi Platform project's issue can set this field value.
os_version String None OS Version of the device/system.
network_name String None The name of the Network which the device/system is connected. Valid values are: 'None', 'Wifi', '4G', '3G' and '2G'.
browser_name String None Name of the browser. For Android App and iOS App Projects, None value will be set for this field.
browser_version String Version name of the browser. For Android App and iOS App Projects, None value will be set for this field
resolution String None x None The screen resolution of the device/system. Other than Desktop Web and Multi Platform Projects, this field value will be None. Width and Height of the screen should be provided in width x height format.
is_public Integer The default issue privacy value set for project Pass 1 to set issue public and 0 to set the privacy of the issue to private. If the project is private then issue privacy will be private only.
custom_fields String Pass the custom fields values as a JSON array of objects, for example [{"field_id": 8001, "field_value": "Stage Server"}]. Entries in any other shape are ignored. If mandatory custom fields with no default values are there for the project, then this parameter should be passed with those custom fields and values. Also the value of each custom field should be valid for the field.
issue_assignees String List of user's IDs you want to assign the issue. Each user id should be separated by comma and the user should be team member.
issue_files File Issue attachment files. There is no limit on the number of files and each file's size should be less than or equal to 1024MB.

issues/update

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -F 'team_id=1001' \
  -F 'sprint_id=4001' \
  -F 'issue_key=6001' \
  -F 'summary=Card design is not proper in My Integration Page.' \
  -F 'description=The Github card design is not looking same as the provided design. Please check the Approved Design of the My Integration Page.' \
  -F 'tags=Design,UI,UX' \
  -F 'severity=HIGH' \
  -F 'status=New' \
  -F 'issue_type=BUG' \
  -F 'is_public=0' \
  -F 'device_name=MacBook Pro' \
  -F 'os_name=macOS' \
  -F 'os_version=Monterey' \
  -F 'browser_name=Chrome' \
  -F 'browser_version=61' \
  -F 'network_name=Wifi' \
  -F 'resolution=1369 x 769' \
  -X POST 'https://api.bugasura.io/issues/update'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: Basic <Your API_KEY goes here>',
  'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
  'team_id' => '1001',
  'sprint_id' => '4001',
  'issue_key' => '6001',
  'summary' => 'Card design is not proper in My Integration Page.',
  'description' => 'The Github card design is not looking same as the provided design. Please check the Approved Design of the My Integration Page.',
  'tags' => 'Design,UI,UX',
  'severity' => 'HIGH',
  'status' => 'New',
  'issue_type' => 'BUG',
  'is_public' => '0',
  'device_name' => 'MacBook Pro',
  'os_name' => 'macOS',
  'os_version' => 'Monterey',
  'browser_name' => 'Chrome',
  'browser_version' => '61',
  'network_name' => 'Wifi',
  'resolution' => '1369 x 769',
  'project_testcase_ids' => '8001',
]);

$response = curl_exec($ch); curl_close($ch);?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'sprint_id': (None, '4001'), 'issue_key': (None, '6001'), 'summary': (None, 'Card design is not proper in My Integration Page.'), 'description': (None, 'The Github card design is not looking same as the provided design. Please check the Approved Design of the My Integration Page.'), 'tags': (None, 'Design,UI,UX'), 'severity': (None, 'HIGH'), 'status': (None, 'New'), 'issue_type': (None, 'BUG'), 'is_public': (None, '0'), 'device_name': (None, 'MacBook Pro'), 'os_name': (None, 'macOS'), 'os_version': (None, 'Monterey'), 'browser_name': (None, 'Chrome'), 'browser_version': (None, '61'), 'network_name': (None, 'Wifi'), 'resolution': (None, '1369 x 769'), 'project_testcase_ids': (None, '8001'), }

response = requests.post('https://api.bugasura.io/issues/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String body = "" + "team_id=" + URLEncoder.encode("1001", "UTF-8") + "&sprint_id=" + URLEncoder.encode("4001", "UTF-8") + "&issue_key=" + URLEncoder.encode("6001", "UTF-8") + "&summary=" + URLEncoder.encode("Card design is not proper in My Integration Page.", "UTF-8") + "&description=" + URLEncoder.encode("The Github card design is not looking same as the provided design. Please check the Approved Design of the My Integration Page.", "UTF-8") + "&tags=" + URLEncoder.encode("Design,UI,UX", "UTF-8") + "&severity=" + URLEncoder.encode("HIGH", "UTF-8") + "&status=" + URLEncoder.encode("New", "UTF-8") + "&issue_type=" + URLEncoder.encode("BUG", "UTF-8") + "&is_public=" + URLEncoder.encode("0", "UTF-8") + "&device_name=" + URLEncoder.encode("MacBook Pro", "UTF-8") + "&os_name=" + URLEncoder.encode("macOS", "UTF-8") + "&os_version=" + URLEncoder.encode("Monterey", "UTF-8") + "&browser_name=" + URLEncoder.encode("Chrome", "UTF-8") + "&browser_version=" + URLEncoder.encode("61", "UTF-8") + "&network_name=" + URLEncoder.encode("Wifi", "UTF-8") + "&resolution=" + URLEncoder.encode("1369 x 769", "UTF-8");

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); out.write(body.getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('sprint_id', '4001');
form.append('issue_key', '6001');
form.append('summary', 'Card design is not proper in My Integration Page.');
form.append('description', 'The Github card design is not looking same as the provided design. Please check the Approved Design of the My Integration Page.');
form.append('tags', 'Design,UI,UX');
form.append('severity', 'HIGH');
form.append('status', 'New');
form.append('issue_type', 'BUG');
form.append('is_public', '0');
form.append('device_name', 'MacBook Pro');
form.append('os_name', 'macOS');
form.append('os_version', 'Monterey');
form.append('browser_name', 'Chrome');
form.append('browser_version', '61');
form.append('network_name', 'Wifi');
form.append('resolution', '1369 x 769');
form.append('project_testcase_ids', '8001');

fetch('https://api.bugasura.io/issues/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/update") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( 'team_id'=>'1001', 'sprint_id'=>'4001', 'issue_key'=>'6001', 'summary'=>'Card design is not proper in My Integration Page.', 'description'=>'The Github card design is not looking same as the provided design. Please check the Approved Design of the My Integration Page.', 'tags'=>'Design,UI,UX', 'severity'=>'HIGH', 'status'=>'New', 'issue_type'=>'BUG', 'is_public'=>'0', 'device_name'=>'MacBook Pro', 'os_name'=>'macOS', 'os_version'=>'Monterey', 'browser_name'=>'Chrome', 'browser_version'=>'61', 'network_name'=>'Wifi', 'resolution'=>'1369 x 769', 'project_testcase_ids'=>'8001' )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Issue Updated Successfully",
  "issue_details": {
    "issue_key": "6001",
    "issue_id": "BUG28",
    "summary": "Card design is not proper in My Integration Page.",
    "description": "The Github card design is not looking same as the provided design. Please check the Approved Design of the My Integration Page.",
    "tags": "Design,UI,UX",
    "severity": "HIGH",
    "status": "New",
    "issue_type": "BUG",
    "is_public": 0,
    "device_name": "MacBook Pro",
    "os_name": "macOS",
    "os_version": "Monterey",
    "browser_name": "Chrome",
    "browser_version": "61",
    "network_name": "Wifi",
    "resolution": "1369 x 769"
  }
}

This API endpoint update the issue details. Custom field values can't be updated with this endpoint.

HTTP Request

POST https://api.bugasura.io/issues/update

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the issue details needs to be updated.
sprint_id* Integer ID of the sprint for which the issue details needs to be updated.
issue_key* Integer Issue key of the issue for which the details needs to be updated.
summary String Summary of the issue to be updated. If summary parameter is passed, then it should have at-least 5 characters and can have max 500 characters.
description String Description of the issue to be updated.
issue_type String Type of issue to be updated. Valid values are: 'BUG', 'OBSERVATION', 'QUESTION', 'SUGGESTION', 'IMPROVEMENT' and 'NEW FEATURE'. The value is not case-sensitive.
status String The status of the issue to be updated. The value should be one of the team's workflow status.
severity String Severity of the issue to be updated. Valid values are: 'LOW', 'MEDIUM', 'HIGH' and 'CRITICAL'.
tags String The tags for the issue to be updated. Each tags should be separated by comma and can have max 35 characters. Also maximum 5 tags only can add to an issue.
device_name String Name of the device.
os_name String OS name of the device/system.
os_version String OS Version of the device/system.
network_name String The name of the Network which the device/system is connected. Valid values are: 'None', 'Wifi', '4G', '3G' and '2G'.
browser_name String Name of the browser.
browser_version String The version of the browser.
resolution String The screen resolution of the device/system. Width and Height of the screen should be provided in width x height format.
project_testcase_ids String Comma separated IDs of test cases linked to the issue via the dropdown when relevant testcase scenarios are associated. The list replaces the test cases already linked to the issue, and it should be sent along with at least one other field to update.
is_public Integer Pass 1 to set issue public and 0 to set the privacy of the issue to private. If the project is Public and updating user is issue creator or team admin, then only issue privacy can be updated.

Note: All the update field parameters cannot be empty. Only include the parameters which you want to update.

issues/delete

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -F 'team_id=1001' \
  -F 'issue_key_list=6001,6002' \
  -X POST 'https://api.bugasura.io/issues/delete'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: Basic <Your API_KEY goes here>',
  'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
  'team_id' => '1001',
  'issue_key_list' => '6001,6002',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'issue_key_list': (None, '6001,6002'), }

response = requests.post('https://api.bugasura.io/issues/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String body = "" + "team_id=" + URLEncoder.encode("1001", "UTF-8") + "&issue_key_list=" + URLEncoder.encode("6001,6002", "UTF-8");

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); out.write(body.getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('issue_key_list', '6001,6002');

fetch('https://api.bugasura.io/issues/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/delete") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( 'team_id'=>'1001', 'issue_key_list'=>'6001,6002' )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Issues moved to trash successfully",
  "deleted_issue_keys": [
      6001,
      6002
  ]
}

This API endpoint moves the given issues to the trash. The message is Issues moved to trash successfully when more than one issue is moved and Issue moved to trash successfully for a single issue.

HTTP Request

POST https://api.bugasura.io/issues/delete

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the issues need to be deleted.
issue_key_list* String List of issue keys of issues which need to be deleted. Each issue key should be separated by comma.

Issue Assignees

Endpoint prefix: issues/assignees (used by every endpoint in this section)

assignees/get

curl    -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X GET 'https://api.bugasura.io/issues/assignees/get?team_id=1001&issue_key=6001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/assignees/get?team_id=1001&issue_key=6001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'issue_key': '6001', }

response = requests.get('https://api.bugasura.io/issues/assignees/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/assignees/get?team_id=1001&issue_key=6001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/issues/assignees/get?team_id=1001&issue_key=6001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/assignees/get?team_id=1001&issue_key=6001") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Issue assignees details fetched successfully",
    "issue_assignees": [
        {
            "name": "Second User",
            "email_id": "second.user@example.com",
            "user_id": 3002,
            "profile_image": "https://example.com/userProfileImages/3002.png",
            "is_invited_user": 0
        },
        {
            "name": "Third User",
            "email_id": "third.user@example.com",
            "user_id": 3003,
            "profile_image": "https://example.com/userProfileImages/3003.png",
            "is_invited_user": 1
        }
    ],
    "nrows": 2
}

This API endpoint gets the assignees details of an issue.

HTTP Request

GET https://api.bugasura.io/issues/assignees/get

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which issue's assignees details needs to be obtained.
issue_key* Integer Issue key of the issue for which the assignees details need to be obtained.

assignees/add

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -F 'team_id=1001' \
    -F 'issue_key=6001' \
    -F 'assignees_list=3003,3001' \
    -X POST 'https://api.bugasura.io/issues/assignees/add'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/assignees/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'issue_key' => '6001',
    'assignees_list' => '3003,3001',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'issue_key': (None, '6001'), 'assignees_list': (None, '3003,3001'), }

response = requests.post('https://api.bugasura.io/issues/assignees/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/assignees/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String body = "" + "team_id=" + URLEncoder.encode("1001", "UTF-8") + "&issue_key=" + URLEncoder.encode("6001", "UTF-8") + "&assignees_list=" + URLEncoder.encode("3003,3001", "UTF-8");

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); out.write(body.getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('issue_key', '6001');
form.append('assignees_list', '3003,3001');

fetch('https://api.bugasura.io/issues/assignees/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/assignees/add") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( 'team_id'=>'1001', 'issue_key'=>'6001', 'assignees_list'=>'3003,3001' )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Assignees updated successfully"
}

This API endpoint assigns the issue to the given users.

HTTP Request

POST https://api.bugasura.io/issues/assignees/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team for which the assignees need to be added for an issue.
issue_key* Integer Issue key of the issue which need to be assigned.
assignees_list* String List of user's IDs whom needs to be assigned to an issue. Each user id should be separated by a comma and the user should be a team member.

assignees/remove

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -F 'team_id=1001' \
    -F 'issue_key=6001' \
    -F 'assignees_list=3002,3001' \
    -X POST 'https://api.bugasura.io/issues/assignees/remove'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/assignees/remove');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'issue_key' => '6001',
    'assignees_list' => '3002,3001',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'issue_key': (None, '6001'), 'assignees_list': (None, '3002,3001'), }

response = requests.post('https://api.bugasura.io/issues/assignees/remove', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/assignees/remove"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String body = "" + "team_id=" + URLEncoder.encode("1001", "UTF-8") + "&issue_key=" + URLEncoder.encode("6001", "UTF-8") + "&assignees_list=" + URLEncoder.encode("3002,3001", "UTF-8");

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); out.write(body.getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('issue_key', '6001');
form.append('assignees_list', '3002,3001');

fetch('https://api.bugasura.io/issues/assignees/remove', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/assignees/remove") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( 'team_id'=>'1001', 'issue_key'=>'6001', 'assignees_list'=>'3002,3001' )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Assignees updated successfully"
}

This API endpoint un-assigns the given users from an issue.

HTTP Request

POST https://api.bugasura.io/issues/assignees/remove

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team for which the assignees need to be removed for an issue.
issue_key* Integer Issue key of the issue which need to be un-assigned.
assignees_list* String List of user's IDs whom needs to be un-assigned from the issue. Each user id should be separated by comma and the user should be team member.

Issue Comments

Endpoint prefix: issues/comments (used by every endpoint in this section)

comments/list

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -X GET 'https://api.bugasura.io/issues/comments/list?team_id=1001&issue_key=6001&creator_id=3001&get_user_comments_only=0&start_at=0&max_results=10'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/comments/list?team_id=1001&issue_key=6001&creator_id=3001&get_user_comments_only=0&start_at=0&max_results=10');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch);?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'issue_key': '6001', 'creator_id': '3001', 'get_user_comments_only': '0', 'start_at': '0', 'max_results': '10', }

response = requests.get('https://api.bugasura.io/issues/comments/list', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/comments/list?team_id=1001&issue_key=6001&creator_id=3001&get_user_comments_only=0&start_at=0&max_results=10"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/issues/comments/list?team_id=1001&issue_key=6001&creator_id=3001&get_user_comments_only=0&start_at=0&max_results=10', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/comments/list?team_id=1001&issue_key=6001&creator_id=3001&get_user_comments_only=0&start_at=0&max_results=10") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Issue comment list fetched successfully",
    "comment_list": [
        {
            "comment_id": 9001,
            "issue_key": 6001,
            "comment": "<strong>Demo User</strong> updated the Status to <strong class='badge comment_badge--status new comment_badge--inprogress' style='color:#f9af2d !important;'>Not Reproducible</strong>",
            "plain_text_comment": "Demo User updated the Status to Not Reproducible",
            "is_system_comment": 1,
            "creator_id": "3001",
            "created_date": "2022-02-25 13:53:52",
            "is_public_comment": 1,
            "last_modified": "2022-02-25 13:53:52",
            "author": "Demo User"
        },
        {
            "comment_id": 9002,
            "issue_key": 6001,
            "comment": "<p>This issue is not reproduciable. Please provide step to reproduce this issue.</p>",
            "plain_text_comment": "This issue is not reproduciable. Please provide step to reproduce this issue.",
            "is_system_comment": 0,
            "creator_id": "3001",
            "created_date": "2022-06-17 12:51:21",
            "is_public_comment": 1,
            "last_modified": "2022-06-17 12:51:21",
            "author": "Demo User"
        }
    ],
    "nrows": 2,
    "total_rows": 2,
    "start_at": 0,
    "max_results": 10
}

This API endpoint gets the list of comments details of a given issue.

HTTP Request

GET https://api.bugasura.io/issues/comments/list

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the comment details to be listed.
issue_key* Integer Key of the issue for which the comment details to be listed.
creator_id Integer ID of the user whom the issue comments are added.
get_user_comments_only Integer 0 Pass 0 to get both the users added comments and system comments details. Pass 1 to get only the the users added issue comments.
start_at Integer 0 The index of the first item to return in a page of results.
max_results Integer 10 The maximum number of items to return per page. Max value is 100.

comments/get

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -X GET 'https://api.bugasura.io/issues/comments/get?team_id=1001&issue_key=6001&comment_id=9002'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/comments/get?team_id=1001&issue_key=6001&comment_id=9002');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch);?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'issue_key': '6001', 'comment_id': '9002', }

response = requests.get('https://api.bugasura.io/issues/comments/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/comments/get?team_id=1001&issue_key=6001&comment_id=9002"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/issues/comments/get?team_id=1001&issue_key=6001&comment_id=9002', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/comments/get?team_id=1001&issue_key=6001&comment_id=9002") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Issue comment details fetched successfully",
    "comment_details": {
        "comment_id": 9002,
        "issue_key": 6001,
        "comment": "<p>This issue is not reproduciable. Please provide step to reproduce this issue.</p>",
        "plain_text_comment": "This issue is not reproduciable. Please provide step to reproduce this issue.",
        "is_system_comment": 0,
        "creator_id": "3001",
        "created_date": "2022-06-17 12:51:21",
        "is_public_comment": 1,
        "last_modified": "2022-06-17 12:51:21",
        "author": "Demo User"
    }
}

This API endpoint get the details of a given issue comment.

HTTP Request

GET https://api.bugasura.io/issues/comments/get

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the comment details to be obtained.
issue_key* Integer Key of the issue for which the comment details to be obtained.
comment_id* Integer ID of the issue comment for which the details need to be obtained.

comments/add

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -F 'team_id=1001' \
  -F 'issue_key=6001' \
  -F 'comment=This issue is not reproducible. Please provide step to reproduce this issue.' \
  -F 'is_public_comment=1' \
  -X POST 'https://api.bugasura.io/issues/comments/add'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/comments/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'issue_key' => '6001',
    'comment' => 'This issue is not reproducible. Please provide step to reproduce this issue.',
    'is_public_comment' => '1',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'issue_key': (None, '6001'), 'comment': (None, 'This issue is not reproducible. Please provide step to reproduce this issue.'), 'is_public_comment': (None, '1'), }

response = requests.post('https://api.bugasura.io/issues/comments/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/comments/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String body = "" + "team_id=" + URLEncoder.encode("1001", "UTF-8") + "&issue_key=" + URLEncoder.encode("6001", "UTF-8") + "&comment=" + URLEncoder.encode("This issue is not reproducible. Please provide step to reproduce this issue.", "UTF-8") + "&is_public_comment=" + URLEncoder.encode("1", "UTF-8");

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); out.write(body.getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('issue_key', '6001');
form.append('comment', 'This issue is not reproducible. Please provide step to reproduce this issue.');
form.append('is_public_comment', '1');

fetch('https://api.bugasura.io/issues/comments/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/comments/add") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( 'team_id'=>'1001', 'issue_key'=>'6001', 'comment'=>'This issue is not reproducible. Please provide step to reproduce this issue.', 'is_public_comment'=>'1' )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

{
    "status": "OK",
    "message": "Issue comment added successfully",
    "created_date": "2022-06-17 12:51:21",
    "comment_id": 9002,
    "comment": "<p>This issue is not reproducible. Please provide step to reproduce this issue.</p>",
    "is_system_comment": 0,
    "is_public_comment": "1"
}

This API endpoint will create a comment in a given issue.

HTTP Request

POST https://api.bugasura.io/issues/comments/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team in which the comment needs to be created.
issue_key* Integer Key of the issue which you want to add a comment.
comment* String Body of the comment.
is_public_comment Integer 1 By default all the comments added in a public issue of a public project will be Public. Pass 0 to make the comment Private. This parameter will not be effective for the Private issue.

comments/update

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -F 'team_id=1001' \
  -F 'comment_id=9002' \
  -F 'comment=This issue is not reproducible. Please provide step to reproduce this issue or add an video attachment file.' \
  -X POST 'https://api.bugasura.io/issues/comments/update'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/comments/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'comment_id' => '9002',
    'comment' => 'This issue is not reproducible. Please provide step to reproduce this issue or add an video attachment file.',
]);

$response = curl_exec($ch);

curl_close($ch);?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'comment_id': (None, '9002'), 'comment': (None, 'This issue is not reproducible. Please provide step to reproduce this issue or add an video attachment file.'), }

response = requests.post('https://api.bugasura.io/issues/comments/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/comments/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String body = "" + "team_id=" + URLEncoder.encode("1001", "UTF-8") + "&comment_id=" + URLEncoder.encode("9002", "UTF-8") + "&comment=" + URLEncoder.encode("This issue is not reproducible. Please provide step to reproduce this issue or add an video attachment file.", "UTF-8");

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); out.write(body.getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('comment_id', '9002');
form.append('comment', 'This issue is not reproducible. Please provide step to reproduce this issue or add an video attachment file.');

fetch('https://api.bugasura.io/issues/comments/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/issues/comments/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = url.scheme == "https" request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['comment_id', '9002'],['comment', 'Comment update content'],['team_id', '1001']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Issue comment updated successfully",
    "comment_id": "9002",
    "last_modified": "2022-06-21 02:45:21",
    "created_date": "2022-06-21 02:32:01",
    "comment": "<p>This issue is not reproducible. Please provide step to reproduce this issue or add an video attachment file.</p>"
}

This API endpoint will allow the comment authors to update the comment.

HTTP Request

POST https://api.bugasura.io/issues/comments/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team in which the comment needs to be updated.
comment_id* Integer The ID of the comment which needs to be updated.
comment* String Updated comment.

comments/delete

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
  -H 'Accept: application/json' \
  -F 'team_id=1001' \
  -F 'comment_id=9002' \
  -X POST 'https://api.bugasura.io/issues/comments/delete'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/comments/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'comment_id' => '9002',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'comment_id': (None, '9002'), }

response = requests.post('https://api.bugasura.io/issues/comments/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/comments/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String body = "" + "team_id=" + URLEncoder.encode("1001", "UTF-8") + "&comment_id=" + URLEncoder.encode("9002", "UTF-8");

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); out.write(body.getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('comment_id', '9002');

fetch('https://api.bugasura.io/issues/comments/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/issues/comments/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = url.scheme == "https" request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['comment_id', '9002'],['team_id', '1001']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Issue comment got deleted successfully"
}

This API endpoint allows a comment author or team admins to delete the comment from an issue.

HTTP Request

POST https://api.bugasura.io/issues/comments/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team from which the comment needs to be deleted.
comment_id* Integer The ID of the comment which needs to be deleted.

Issue Attachments

Endpoint prefix: issues/attachments (used by every endpoint in this section)

attachments/get

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -X GET 'https://api.bugasura.io/issues/attachments/get?team_id=1001&issue_key=6001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/attachments/get?team_id=1001&issue_key=6001');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'issue_key': '6001', }

response = requests.get('https://api.bugasura.io/issues/attachments/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/attachments/get?team_id=1001&issue_key=6001"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/issues/attachments/get?team_id=1001&issue_key=6001', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/attachments/get?team_id=1001&issue_key=6001") request = Net::HTTP::Get.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json"

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Issue attachment files details fetched successfully",
    "issue_attachments": [
        {
            "name": "card_screenshot.png",
            "url": "https://example.com/uploads/1001/2001/6001/card_screenshot.png",
            "added_by": "Demo User",
            "added_date": "2022-06-13 23:27:28"
        },
        {
            "name": "design_screenshot.png",
            "url": "https://example.com/uploads/1001/2001/6001/design_screenshot.png",
            "added_by": "Demo User",
            "added_date": "2022-06-13 23:27:28"
        }
    ]
}

This API endpoint gets the attachment files details of an issue.

HTTP Request

GET https://api.bugasura.io/issues/attachments/get

Query Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which issue's attachments details needs to be obtained.
issue_key* Integer Issue key of the issue for which the attachment files details needs to be obtained.

attachments/add

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -F 'team_id=1001' \
    -F 'issue_key=6001' \
    -F 'issue_files[]=@"/Users/apple/Desktop/card_screenshot.png"' \
    -F 'issue_files[]=@"/Users/apple/Desktop/design_screenshot.png"' \
    -X POST 'https://api.bugasura.io/issues/attachments/add'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/attachments/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'issue_key' => '6001',
    'issue_files[0]' => new CURLFile('/Users/apple/Desktop/card_screenshot.png'),
    'issue_files[1]' => new CURLFile('/Users/apple/Desktop/design_screenshot.png'),
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = [ ('team_id', (None, '1001')), ('issue_key', (None, '6001')), ('issue_files[]', open('/Users/apple/Desktop/card_screenshot.png', 'rb')), ('issue_files[]', open('/Users/apple/Desktop/design_screenshot.png', 'rb')), ]

response = requests.post('https://api.bugasura.io/issues/attachments/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { String boundary = "----BugasuraBoundary" + System.currentTimeMillis(); URL url = new URL("https://api.bugasura.io/issues/attachments/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); addField(out, boundary, "team_id", "1001"); addField(out, boundary, "issue_key", "6001"); addFile(out, boundary, "issue_files[]", Paths.get("/Users/apple/Desktop/card_screenshot.png")); addFile(out, boundary, "issue_files[]", Paths.get("/Users/apple/Desktop/design_screenshot.png")); out.write(("--" + boundary + "--\r\n").getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); }

private static void addField(OutputStream out, String boundary, String name, String value) throws IOException { String part = "--" + boundary + "\r\n" + "Content-Disposition: form-data; name=\"" + name + "\"\r\n\r\n" + value + "\r\n"; out.write(part.getBytes(StandardCharsets.UTF_8)); }

private static void addFile(OutputStream out, String boundary, String name, Path file) throws IOException { String contentType = Files.probeContentType(file); if (contentType == null) { contentType = "application/octet-stream"; } String header = "--" + boundary + "\r\n" + "Content-Disposition: form-data; name=\"" + name + "\"; filename=\"" + file.getFileName() + "\"\r\n" + "Content-Type: " + contentType + "\r\n\r\n"; out.write(header.getBytes(StandardCharsets.UTF_8)); out.write(Files.readAllBytes(file)); out.write("\r\n".getBytes(StandardCharsets.UTF_8)); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('issue_key', '6001');
form.append('issue_files[]', new File(['<data goes here>'], 'card_screenshot.png'));
form.append('issue_files[]', new File(['<data goes here>'], 'design_screenshot.png'));

fetch('https://api.bugasura.io/issues/attachments/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/attachments/add") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form([ ['team_id', '1001'], ['issue_key', '6001'], ['issue_files[]', File.open('/Users/apple/Desktop/card_screenshot.png')], ['issue_files[]', File.open('/Users/apple/Desktop/design_screenshot.png')], ], 'multipart/form-data')

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Files card_screenshot.png and design_screenshot.png got uploaded successfully"
}

This API endpoint adds the attachment files to an issue.

HTTP Request

POST https://api.bugasura.io/issues/attachments/add

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which the attachment files needs to be uploaded for an issue.
issue_key* Integer Issue key of the issue for which the attachment files needs to be uploaded.
issue_files* File Issue attachment files. Maximum 100 files can be uploaded at a time and each file's size should be less than or equal to the team owner's attachment size setting, which is 10MB by default. Files over these limits are skipped and listed in errorMessage, while the response status stays OK.

attachments/delete

curl  -H 'Authorization: Basic <Your API_KEY goes here>' \
    -H 'Accept: application/json' \
    -F 'team_id=1001' \
    -F 'issue_key=6001' \
    -F 'file_names=card_screenshot.png, design_screenshot.png' \
    -X POST 'https://api.bugasura.io/issues/attachments/delete'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/issues/attachments/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'issue_key' => '6001',
    'file_names' => 'card_screenshot.png, design_screenshot.png',
]);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'issue_key': (None, '6001'), 'file_names': (None, 'card_screenshot.png, design_screenshot.png'), }

response = requests.post('https://api.bugasura.io/issues/attachments/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/issues/attachments/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String body = "" + "team_id=" + URLEncoder.encode("1001", "UTF-8") + "&issue_key=" + URLEncoder.encode("6001", "UTF-8") + "&file_names=" + URLEncoder.encode("card_screenshot.png, design_screenshot.png", "UTF-8");

httpConn.setDoOutput(true); OutputStream out = httpConn.getOutputStream(); out.write(body.getBytes(StandardCharsets.UTF_8)); out.close();

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('issue_key', '6001');
form.append('file_names', 'card_screenshot.png, design_screenshot.png');

fetch('https://api.bugasura.io/issues/attachments/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require 'net/http'
require 'uri'

uri = URI.parse("https://api.bugasura.io/issues/attachments/delete") request = Net::HTTP::Post.new(uri) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" request.set_form_data( 'team_id'=>'1001', 'issue_key'=>'6001', 'file_names'=>'card_screenshot.png, design_screenshot.png' )

req_options = { use_ssl: uri.scheme == "https", }

response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http| http.request(request) end

# response.code # response.body

The above command returns JSON structured like this:

{
    "status": "OK",
    "message": "Files card_screenshot.png and design_screenshot.png got deleted successfully"
}

This API endpoint deletes the attachment files of an issue.

HTTP Request

POST https://api.bugasura.io/issues/attachments/delete

Body Parameters

Parameter Type Default Description
team_id* Integer ID of the team for which an issue's attachment files needs to be deleted.
issue_key* Integer Issue key of the issue for which the attachment files needs to be deleted.
file_names* String Name of the issue's attachment files which you want to delete. Each file names should be separated by comma and the file should be exist for the issue.

PROJECT SETTINGS

Project Users

Endpoint prefix: projectUsers (used by every endpoint in this section)

A project user is a team member who has been added to a project. Team owners and team admins can reach every project of their team without being added, so they are listed separately and can be muted (hidden from the project member list) instead of removed.

Every project user has a project role: a project admin (is_admin is 1) can manage the project members, settings and custom fields, and a project member (is_admin is 0) cannot. Only people who already belong to the team can be added to a project.

Changes to the members of a project send in-app notifications to the members of that project (you are left out). People who turned off project-update notifications are skipped. No emails are sent.

projectUsers/get

curl -L -X POST 'https://api.bugasura.io/projectUsers/get' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectUsers/get');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'teamId': (None, '1001'), 'appId': (None, '2001'), }

response = requests.post('https://api.bugasura.io/projectUsers/get', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectUsers/get"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "teamId=1001&appId=2001";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');

fetch('https://api.bugasura.io/projectUsers/get', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectUsers/get")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['teamId', '1001'],['appId', '2001']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Project members fetched successfully.",
  "projectMembers": [
    {
      "user_id": 3001,
      "name": "Demo User",
      "email_id": "demo.user@example.com",
      "profile_image": "no_image.jpg",
      "is_admin": 1,
      "is_invited": 1,
      "is_team_admin": 1,
      "is_invitation_accepted": 1,
      "account_active": 1,
      "project_creator": 1
    },
    {
      "user_id": 3002,
      "name": "Demo Tester",
      "email_id": "demo.tester@example.com",
      "profile_image": "no_image.jpg",
      "is_admin": 0,
      "is_invited": 1,
      "is_team_admin": 0,
      "is_invitation_accepted": 1,
      "account_active": 1,
      "project_creator": 0
    }
  ],
  "teamMembers": []
}

Get the people who have access to the given project. The list is split in two. projectMembers holds the people who were added to the project (is_invited is 1). teamMembers holds team owners and team admins who reach the project only through their team role (is_invited is 0). Each entry has the project role (is_admin), the team role (is_team_admin), whether the person accepted the team invitation (is_invitation_accepted), whether the account is active (account_active) and whether the person created the project (project_creator). The list is not paged.

HTTP Request

POST https://api.bugasura.io/projectUsers/get

Body Parameters

Parameter Type Default Description
teamId* Integer The ID of the team the project belongs to. Send it as teamId, not team_id. Required. Without it the request fails with Team Id cannot be empty.
appId* Integer The ID of the project. Required. Without it the request fails with App Id cannot be empty.

projectUsers/add

curl -L -X POST 'https://api.bugasura.io/projectUsers/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001' \
-F 'projectUserIds=[3002]'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectUsers/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'projectUserIds' => '[3002]',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'teamId': (None, '1001'), 'appId': (None, '2001'), 'projectUserIds': (None, '[3002]'), }

response = requests.post('https://api.bugasura.io/projectUsers/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectUsers/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "teamId=1001&appId=2001&projectUserIds=%5B3002%5D";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('projectUserIds', '[3002]');

fetch('https://api.bugasura.io/projectUsers/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectUsers/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['teamId', '1001'],['appId', '2001'],['projectUserIds', '[3002]']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Project members added successfully."
}

Add existing team members to a project. Each person gets the project role that matches their team role: team owners and team admins become project admins and everyone else becomes a project member. Use projectUsers/update afterwards to promote a member to project admin.

Ids that do not belong to a member of the team are skipped without an error, so the request can succeed even when nobody was added. Check the result with projectUsers/get. Adding a person who is already in the project resets the project role to the one that matches their team role, so a project admin who is not a team admin becomes a project member again.

Every person who was added gets an in-app notification, and so do the other members of the project (you are left out). People who turned off project-update notifications are skipped. No emails are sent.

HTTP Request

POST https://api.bugasura.io/projectUsers/add

Body Parameters

Parameter Type Default Description
teamId* Integer The ID of the team the project belongs to. Send it as teamId, not team_id. Required. Without it the request fails with Team Id cannot be empty.
appId* Integer The ID of the project. Required. Without it the request fails with App Id cannot be empty.
projectUserIds* String The ids of the team members to add, as a JSON array such as [3001,3002] or as a comma separated list such as 3001,3002. Required. Without a valid id the request fails with No valid users were provided to add.

projectUsers/update

curl -L -X POST 'https://api.bugasura.io/projectUsers/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001' \
-F 'userId=3002' \
-F 'isAdmin=1'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectUsers/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'userId' => '3002',
    'isAdmin' => '1',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'teamId': (None, '1001'), 'appId': (None, '2001'), 'userId': (None, '3002'), 'isAdmin': (None, '1'), }

response = requests.post('https://api.bugasura.io/projectUsers/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectUsers/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "teamId=1001&appId=2001&userId=3002&isAdmin=1";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('userId', '3002');
form.append('isAdmin', '1');

fetch('https://api.bugasura.io/projectUsers/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectUsers/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['teamId', '1001'],['appId', '2001'],['userId', '3002'],['isAdmin', '1']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Project member updated successfully."
}

Change the role of a person who is already in the project. For a regular team member, isAdmin sets the project role (1 for project admin, anything else for project member) and isInvited is ignored. For a team owner or team admin, both isAdmin and isInvited are saved, and a value other than 1 is saved as 0. Always send both for them: leaving out isInvited mutes them (they disappear from the project member list but keep their access through the team role).

You cannot change your own role. The only exception is a team admin who muted themselves and joins the project again by sending their own id with isInvited set to 1.

The person whose role changed gets an in-app notification, and so do the other members of the project (you are left out). People who turned off project-update notifications are skipped. No emails are sent.

HTTP Request

POST https://api.bugasura.io/projectUsers/update

Body Parameters

Parameter Type Default Description
teamId* Integer The ID of the team the project belongs to. Send it as teamId, not team_id. Required. Without it the request fails with Team Id cannot be empty.
appId* Integer The ID of the project. Required. Without it the request fails with App Id cannot be empty.
userId* Integer The ID of the person to update. Required. Without it the request fails with User Id cannot be empty. The person must already be in the project, otherwise the request fails with This user is not a member of the project.
isAdmin Integer 0 Project role. Pass 1 to make the person a project admin and 0 to make them a project member. Without it the person becomes a project member.
isInvited Integer 0 Only used for team owners and team admins. Pass 1 to list them as a project member and 0 to mute them.

projectUsers/delete

curl -L -X POST 'https://api.bugasura.io/projectUsers/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'teamId=1001' \
-F 'appId=2001' \
-F 'userId=3002'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/projectUsers/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'teamId' => '1001',
    'appId' => '2001',
    'userId' => '3002',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'teamId': (None, '1001'), 'appId': (None, '2001'), 'userId': (None, '3002'), }

response = requests.post('https://api.bugasura.io/projectUsers/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/projectUsers/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "teamId=1001&appId=2001&userId=3002";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('teamId', '1001');
form.append('appId', '2001');
form.append('userId', '3002');

fetch('https://api.bugasura.io/projectUsers/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/projectUsers/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['teamId', '1001'],['appId', '2001'],['userId', '3002']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Project member removed successfully."
}

Remove a person from a project, or leave the project yourself by sending isLeave as 1. A regular team member is removed from the project and unassigned from every issue of that project; issues of other projects are not touched. A team owner or team admin is not removed. They are muted instead (is_invited becomes 0), keep their access through the team role and keep their issue assignments.

The other members of the project get an in-app notification (you are left out). People who turned off project-update notifications are skipped. The removed person is not notified. No emails are sent.

HTTP Request

POST https://api.bugasura.io/projectUsers/delete

Body Parameters

Parameter Type Default Description
teamId* Integer The ID of the team the project belongs to. Send it as teamId, not team_id. Required. Without it the request fails with Team Id cannot be empty.
appId* Integer The ID of the project. Required. Without it the request fails with App Id cannot be empty.
userId Integer The ID of the person to remove. Required unless isLeave is 1. Without it the request fails with User Id cannot be empty. The person must be in the project, otherwise the request fails with This user is not a member of the project.
isLeave Integer 0 Pass 1 to leave the project yourself. userId is then ignored.

Custom Fields

Endpoint prefix: customFields (used by every endpoint in this section)

A custom field is an extra field that you add to the issues, requirements or test cases of a project. Every custom field belongs to one project and to one entity type: ISSUE (the default), REQUIREMENT or TESTCASE. Send entityType on each request to pick the entity type. A project can have the same field name on different entity types.

A custom field is placed in a section of the details screen. The sections of an ISSUE field are TOPBAR, DETAILS, ATTACHMENTS, WORKFLOW and DEVICE_DETAILS. The sections of a REQUIREMENT or TESTCASE field are TOPBAR, DETAILS and SIDEBAR.

The fieldType is one of the types below. The types jira, asana, zoho, zoho_id, clickup and clickup_id are created by the tool integrations and are not covered here.

Field type Value Default value
single_line_text A single line of text. Any text.
multi_line_text Text over several lines. Any text.
url A web address. A valid URL.
number A whole number. A whole number such as 5 or -5.
decimal A decimal number. A number such as 5 or 5.25.
currency An amount of money. A number with up to 2 decimals, such as 25.50.
percentage A percentage. A number such as 5 or 5.25.
date A date. YYYY-MM-DD
date_time A date and a time. YYYY-MM-DD HH:MM:SS
dropdown One value picked from fieldOptions. One of the options.
single_selection One value picked from fieldOptions. One of the options.
multi_selection Several values picked from fieldOptions. A comma separated list of options.
user_type A team member. Not used.
tags A list of tags. A comma separated list of tags. On customFields/add they are saved as the suggested tags of the field. customFields/update does not save them as suggested tags.

The in-app notifications described below go to the members of the project (you are left out). People who turned off project-update notifications are skipped. No emails are sent.

customFields/get

curl -L -X GET 'https://api.bugasura.io/customFields/get?team_id=1001&appId=2001&entityType=ISSUE' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/customFields/get?team_id=1001&appId=2001&entityType=ISSUE');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

params = { 'team_id': '1001', 'appId': '2001', 'entityType': 'ISSUE', }

response = requests.get('https://api.bugasura.io/customFields/get', params=params, headers=headers)

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/customFields/get?team_id=1001&appId=2001&entityType=ISSUE"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET");

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json");

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

fetch('https://api.bugasura.io/customFields/get?team_id=1001&appId=2001&entityType=ISSUE', {
    headers: {
        'Authorization': 'Basic <Your API_KEY goes here>',
        'Accept': 'application/json'
    }
});
require "uri"
require "net/http"

url = URI("https://api.bugasura.io/customFields/get?team_id=1001&appId=2001&entityType=ISSUE")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "TestResults Stats details fetched successfully",
  "customFieldsList": [
    {
      "field_id": 9601,
      "field_name": "Demo Environment",
      "field_type": "dropdown",
      "field_options": "[\"Staging\",\"Production\"]",
      "field_description": "Where the issue was found",
      "data_type": "VARCHAR",
      "disp_section": "DETAILS",
      "rows_count": 1,
      "prefix": "",
      "suffix": "",
      "is_mandatory": 0,
      "default_value": "",
      "min_length": null,
      "max_length": null,
      "disp_order": 2,
      "is_active": 1,
      "is_deleted": 0,
      "creator_id": 3001,
      "creator_name": "Demo User",
      "last_modified_by": 3001,
      "last_modifier_name": "Demo User",
      "created_date": "2026-11-01 10:00:00",
      "last_modified_date": "2026-11-01 10:00:00",
      "app_id": 2001,
      "is_app_active": 1,
      "team_id": 1001,
      "is_team_active": 1,
      "is_custom_field": 1,
      "disp_row": 3,
      "disp_column": 1,
      "disp_width": 100.0,
      "field_placeholder": "",
      "is_hidden": 0,
      "show_if_status": "",
      "show_if_field": "",
      "show_if_user": "",
      "edit_if_user": "",
      "autofill_when": "",
      "autofill_with": "",
      "fields_disp_order": "{\"ISSUE\":{\"DETAILS\":[{\"name\":\"demo environment\",\"type\":\"custom\",\"order\":1,\"row\":1,\"column\":1,\"width\":100,\"isHidden\":0}]}}",
      "is_widget_active": 0,
      "encoded_widget_id": null
    }
  ],
  "projectsFieldsList": {
    "TOPBAR": [
      {
        "field_id": 0,
        "field_name": "issue id",
        "is_custom_field": 0,
        "disp_order": 1,
        "disp_row": 1,
        "disp_column": 1,
        "is_hidden": 0,
        "edit_if_user": "",
        "applies_to": ""
      }
    ],
    "DETAILS": [
      {
        "field_id": 0,
        "field_name": "description",
        "is_custom_field": 0,
        "disp_order": 1,
        "disp_row": 1,
        "disp_column": 1,
        "is_hidden": 0,
        "edit_if_user": "",
        "applies_to": ""
      },
      {
        "field_id": 9601,
        "field_name": "Demo Environment",
        "field_type": "dropdown",
        "disp_section": "DETAILS",
        "disp_order": 2,
        "disp_row": 3,
        "disp_column": 1,
        "disp_width": 100.0,
        "is_hidden": 0,
        "is_custom_field": 1
      }
    ],
    "issueprioritySettings": null
  },
  "appDetails": [],
  "toolDetails": {
    "is_connected": 0
  }
}

Get the custom fields of a project for the given entity type. customFieldsList has the definition of every custom field that was not deleted. projectsFieldsList shows the layout of the details screen section by section, with the built-in fields (is_custom_field is 0 and field_id is 0) and the custom fields in display order. A project without custom fields returns an empty customFieldsList. The list is not paged.

The toolDetails object describes the Jira connection of your account when there is one, and only is_connected is set otherwise.

HTTP Request

GET https://api.bugasura.io/customFields/get

Query Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails with App ID cannot be empty.
entityType String ISSUE The entity type of the custom fields. One of ISSUE, REQUIREMENT or TESTCASE. Any other value fails with Invalid entity type.

customFields/add

curl -L -X POST 'https://api.bugasura.io/customFields/add' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'entityType=ISSUE' \
-F 'fieldName=Demo Environment' \
-F 'fieldDescription=Where the issue was found' \
-F 'fieldType=dropdown' \
-F 'sectionName=DETAILS' \
-F 'fieldOptions=["Staging","Production"]' \
-F 'isMandatory=0' \
-F 'dispWidth=100'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/customFields/add');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'entityType' => 'ISSUE',
    'fieldName' => 'Demo Environment',
    'fieldDescription' => 'Where the issue was found',
    'fieldType' => 'dropdown',
    'sectionName' => 'DETAILS',
    'fieldOptions' => '["Staging","Production"]',
    'isMandatory' => '0',
    'dispWidth' => '100',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'entityType': (None, 'ISSUE'), 'fieldName': (None, 'Demo Environment'), 'fieldDescription': (None, 'Where the issue was found'), 'fieldType': (None, 'dropdown'), 'sectionName': (None, 'DETAILS'), 'fieldOptions': (None, '["Staging","Production"]'), 'isMandatory': (None, '0'), 'dispWidth': (None, '100'), }

response = requests.post('https://api.bugasura.io/customFields/add', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/customFields/add"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&entityType=ISSUE&fieldName=Demo+Environment&fieldDescription=Where+the+issue+was+found&fieldType=dropdown&sectionName=DETAILS&fieldOptions=%5B%22Staging%22%2C%22Production%22%5D&isMandatory=0&dispWidth=100";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('entityType', 'ISSUE');
form.append('fieldName', 'Demo Environment');
form.append('fieldDescription', 'Where the issue was found');
form.append('fieldType', 'dropdown');
form.append('sectionName', 'DETAILS');
form.append('fieldOptions', JSON.stringify(['Staging', 'Production']));
form.append('isMandatory', '0');
form.append('dispWidth', '100');

fetch('https://api.bugasura.io/customFields/add', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/customFields/add")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['entityType', 'ISSUE'],['fieldName', 'Demo Environment'],['fieldDescription', 'Where the issue was found'],['fieldType', 'dropdown'],['sectionName', 'DETAILS'],['fieldOptions', '["Staging","Production"]'],['isMandatory', '0'],['dispWidth', '100']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "New custom field added successfully.",
  "customFieldDetails": {
    "field_id": 9601,
    "field_name": "Demo Environment",
    "field_type": "dropdown",
    "field_options": "[\"Staging\",\"Production\"]",
    "field_description": "Where the issue was found",
    "data_type": "VARCHAR",
    "disp_section": "DETAILS",
    "rows_count": 1,
    "prefix": "",
    "suffix": "",
    "is_mandatory": "0",
    "default_value": "",
    "min_length": "",
    "max_length": "",
    "disp_order": 1,
    "disp_row": 0,
    "disp_column": 0,
    "disp_width": 100.0,
    "field_placeholder": "",
    "show_if_status": "",
    "show_if_user": "",
    "show_if_field": "",
    "edit_if_user": "",
    "autofill_when": "",
    "autofill_with": "",
    "is_active": 1,
    "is_deleted": 0,
    "creator_id": 3001,
    "creator_name": "Demo User",
    "last_modified_by": 3001,
    "last_modifier_name": "Demo User",
    "created_date": "2026-11-01 10:00:00",
    "last_modified_date": "2026-11-01 10:00:00",
    "app_id": 2001,
    "team_id": 1001
  }
}

Add a custom field to a project. The field name must be unique in the project for the same field type and entity type, compared without regard to case. The new field is placed at the end of its section unless you pick a position with rowNo and columnNo.

The members of the project get an in-app notification that a field was added to the project (you are left out). People who turned off project-update notifications are skipped.

HTTP Request

POST https://api.bugasura.io/customFields/add

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails with App Id cannot be empty. If you are not a team admin, the permission message is returned first.
entityType String ISSUE The entity type of the field. One of ISSUE, REQUIREMENT or TESTCASE. Any other value fails with Invalid entity type.
fieldName* String Name of the field. 1 to 100 characters, with repeated spaces collapsed to one. It can have letters, numbers, spaces and these characters: _ - ! @ # $ % ^ & * ( ) + , . < > ? ; : / \ ' ". A name that is already used by a field of the same type fails with Custom field with this name already exist. Please give some other name and try again.
fieldDescription String Description of the field. Up to 250 characters.
fieldType* String Type of the field. See the table of field types at the top of this page. Not all types are available for every entity type, and an unknown type fails with Invalid data provided!
sectionName* String Section of the details screen that shows the field. One of the sections listed at the top of this page for the entity type. Any other value fails with Invalid data provided!
dispWidth* Number Width of the field in its row, in percent. One of 100, 75, 66.67, 50, 33.33 or 25. Without it the request fails with Invalid field width.
isMandatory Integer 0 Pass 1 to make the field mandatory.
multiLineRowCount Integer Number of rows shown for the field. Required for multi_line_text (the app offers 2 to 5), otherwise the request fails with Invalid data provided! Ignored for all other types.
prefix String Text shown before the value. Up to 10 characters. Ignored for multi_line_text.
suffix String Text shown after the value. Up to 10 characters. Ignored for multi_line_text.
minLength Integer Minimum length of the value, from 1 to 65535. Required for single_line_text, multi_line_text, number, decimal, currency, percentage, user_type and tags, otherwise the request fails with Invalid min length provided. It is ignored for the other types.
maxLength Integer Maximum length of the value, from 1 to 65535 and not less than minLength. Required for the same types as minLength, otherwise the request fails with Invalid max length provided.
defaultValue String Value that a new item starts with. It must follow the format of the field type in the table at the top of this page and be within minLength and maxLength. Up to 65534 characters.
fieldOptions String The choices of a dropdown, single_selection or multi_selection field, as a JSON array of strings such as ["Staging","Production"]. Required for these three types. At most 100 options, each 1 to 50 characters and made of the same characters as fieldName. Repeated options are dropped. Without a valid option the request fails with Please provide at-least one valid field options.
fieldPlaceholder String Hint shown in an empty field. It can have the same characters as fieldName.
rowNo Integer Row of the section layout where the field is placed. Leave out rowNo and columnNo to add the field at the end of the section.
columnNo Integer Column of the row, up to 2 digits.
showIfStatus String Show the field only when the item has one of these statuses, as a comma separated list of workflow status names such as Open,In Progress. An unknown status fails with Invalid status is selected for Show If Status.
showIfUser String Show the field only to these people, as a comma separated list of TEAM_ADMINS, ISSUE_CREATOR, TEAM_MEMBERS or the id of a user_type custom field of the project. ALL shows it to everyone.
showIfField String Show the field only when other custom fields of the project have given values, as a JSON array of conditions. Each condition is an object with field_id (the id of a custom field of the project), option (one of in, is, is_not, contains, starts_with, ends_with, has_any_value, is_unknown, more_than, less_than, exactly, before, after or on), value (required unless option is has_any_value or is_unknown) and separator (AND or OR). A wrong condition fails with Invalid field show condition is provided!
editIfUser String Let only these people edit the field. It takes the same values as showIfUser.
autoFillIfStatus String For user_type, date and date_time fields only. A JSON array of workflow status names, such as ["Closed"]. When an issue moves to one of these statuses, the field is filled with the current user (user_type), the current date (date) or the current date and time (date_time). An unknown status fails with Invalid status is selected for Autofill Condition.

customFields/update

curl -L -X POST 'https://api.bugasura.io/customFields/update' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'entityType=ISSUE' \
-F 'fieldId=9601' \
-F 'fieldName=Demo Environment' \
-F 'fieldDescription=Where the issue was found' \
-F 'fieldType=dropdown' \
-F 'sectionName=DETAILS' \
-F 'fieldOptions=["Staging","Production","Demo"]' \
-F 'isMandatory=1' \
-F 'dispWidth=100'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/customFields/update');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'entityType' => 'ISSUE',
    'fieldId' => '9601',
    'fieldName' => 'Demo Environment',
    'fieldDescription' => 'Where the issue was found',
    'fieldType' => 'dropdown',
    'sectionName' => 'DETAILS',
    'fieldOptions' => '["Staging","Production","Demo"]',
    'isMandatory' => '1',
    'dispWidth' => '100',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'entityType': (None, 'ISSUE'), 'fieldId': (None, '9601'), 'fieldName': (None, 'Demo Environment'), 'fieldDescription': (None, 'Where the issue was found'), 'fieldType': (None, 'dropdown'), 'sectionName': (None, 'DETAILS'), 'fieldOptions': (None, '["Staging","Production","Demo"]'), 'isMandatory': (None, '1'), 'dispWidth': (None, '100'), }

response = requests.post('https://api.bugasura.io/customFields/update', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/customFields/update"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&entityType=ISSUE&fieldId=9601&fieldName=Demo+Environment&fieldDescription=Where+the+issue+was+found&fieldType=dropdown&sectionName=DETAILS&fieldOptions=%5B%22Staging%22%2C%22Production%22%2C%22Demo%22%5D&isMandatory=1&dispWidth=100";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('entityType', 'ISSUE');
form.append('fieldId', '9601');
form.append('fieldName', 'Demo Environment');
form.append('fieldDescription', 'Where the issue was found');
form.append('fieldType', 'dropdown');
form.append('sectionName', 'DETAILS');
form.append('fieldOptions', JSON.stringify(['Staging', 'Production', 'Demo']));
form.append('isMandatory', '1');
form.append('dispWidth', '100');

fetch('https://api.bugasura.io/customFields/update', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/customFields/update")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['entityType', 'ISSUE'],['fieldId', '9601'],['fieldName', 'Demo Environment'],['fieldDescription', 'Where the issue was found'],['fieldType', 'dropdown'],['sectionName', 'DETAILS'],['fieldOptions', '["Staging","Production","Demo"]'],['isMandatory', '1'],['dispWidth', '100']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Custom Field details updated successfully.",
  "customFieldDetails": {
    "field_id": 9601,
    "field_name": "Demo Environment",
    "field_type": "dropdown",
    "field_options": "[\"Staging\",\"Production\",\"Demo\"]",
    "field_description": "Where the issue was found",
    "data_type": "VARCHAR",
    "disp_section": "DETAILS",
    "rows_count": 1,
    "prefix": "",
    "suffix": "",
    "is_mandatory": "1",
    "default_value": "",
    "min_length": "",
    "max_length": "",
    "disp_order": 1,
    "disp_row": false,
    "disp_column": false,
    "disp_width": 100.0,
    "is_hidden": false,
    "show_if_status": false,
    "show_if_user": false,
    "show_if_field": false,
    "edit_if_user": false,
    "autofill_when": false,
    "autofill_with": false,
    "is_active": 1,
    "is_deleted": 0,
    "last_modified_by": 3001,
    "last_modifier_name": "Demo User",
    "last_modified_date": "2026-11-02 09:30:00",
    "creator_id": 3001,
    "creator_name": "Demo User",
    "created_date": "2026-11-01 10:00:00",
    "is_app_active": 1,
    "is_team_active": 1,
    "is_custom_field": 1,
    "field_placeholder": "",
    "fields_disp_order": "{\"ISSUE\":{\"DETAILS\":[{\"name\":\"demo environment\",\"type\":\"custom\",\"order\":1,\"row\":1,\"column\":1,\"width\":100,\"isHidden\":0}]}}",
    "is_widget_active": 0,
    "encoded_widget_id": null,
    "app_id": 2001,
    "team_id": 1001
  }
}

Update a custom field. The request replaces the whole definition, so send the same parameters as customFields/add with the new values, together with the fieldId. The checks are the same as for customFields/add, and the field name must not be used by another field of the project. Moving the field to another sectionName places it at the end of that section. Leave out all five conditions (showIfStatus, showIfUser, showIfField, editIfUser and autoFillIfStatus) to keep the saved ones. If you send any one of them, the conditions you leave out are cleared, so send all the conditions that the field should keep.

The members of the project get an in-app notification that a field was updated (you are left out). People who turned off project-update notifications are skipped.

HTTP Request

POST https://api.bugasura.io/customFields/update

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails with App Id cannot be empty. If you are not a team admin, the permission message is returned first.
fieldId* Integer The ID of the custom field to update, from customFields/get. Required. Without it the request fails with Field Id cannot be empty, and an id that is not in the project fails with Invalid data provided!
entityType String ISSUE The entity type of the field. One of ISSUE, REQUIREMENT or TESTCASE. Any other value fails with Invalid entity type.
fieldName* String Name of the field. Same rules as customFields/add. A name used by another field of the project fails with Custom field with this name already exist. Please give some other name and try again.
fieldDescription String Description of the field. Up to 250 characters.
fieldType* String Type of the field. See the table of field types at the top of this page. An unknown type fails with Invalid field type is provided!
sectionName* String Section of the details screen that shows the field. An unknown section fails with Invalid section name is provided!
dispWidth Number Width of the field in its row, in percent. One of 100, 75, 66.67, 50, 33.33 or 25. Leave it out to keep the saved width.
dispRow Integer Row of the section layout where the field is placed.
dispColumn Integer Column of the row, up to 2 digits.
isHidden Integer Pass 1 to hide the field and 0 to show it. A field that is already hidden is saved as not mandatory.
isMandatory Integer 0 Pass 1 to make the field mandatory.
multiLineRowCount Integer Number of rows shown for the field. Required for multi_line_text, otherwise the request fails with Invalid data provided!
prefix String Text shown before the value. Up to 10 characters. Ignored for multi_line_text.
suffix String Text shown after the value. Up to 10 characters. Ignored for multi_line_text.
minLength Integer Minimum length of the value, from 1 to 65535. Required for the same types as in customFields/add.
maxLength Integer Maximum length of the value, from 1 to 65535 and not less than minLength. Required for the same types as in customFields/add.
defaultValue String Value that a new item starts with. Same format as in customFields/add, except that a multi_selection field accepts only one option here.
fieldOptions String The choices of a dropdown, single_selection or multi_selection field, as a JSON array of strings. Required for these three types. At most 100 options, each 1 to 50 characters. The array replaces the saved options.
fieldPlaceholder String Hint shown in an empty field. Up to 100 characters, with the same characters as fieldName.
showIfStatus String Same as in customFields/add.
showIfUser String Same as in customFields/add.
showIfField String Same as in customFields/add.
editIfUser String Same as in customFields/add.
autoFillIfStatus String Same as in customFields/add.

customFields/delete

curl -L -X POST 'https://api.bugasura.io/customFields/delete' \
-H 'Authorization: Basic <Your API_KEY goes here>' \
-H 'Accept: application/json' \
-F 'team_id=1001' \
-F 'appId=2001' \
-F 'entityType=ISSUE' \
-F 'fieldId=9601'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.bugasura.io/customFields/delete');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Basic <Your API_KEY goes here>',
    'Accept: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'team_id' => '1001',
    'appId' => '2001',
    'entityType' => 'ISSUE',
    'fieldId' => '9601',
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$response = curl_exec($ch);

curl_close($ch); ?>

import requests

headers = { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json', }

files = { 'team_id': (None, '1001'), 'appId': (None, '2001'), 'entityType': (None, 'ISSUE'), 'fieldId': (None, '9601'), }

response = requests.post('https://api.bugasura.io/customFields/delete', headers=headers, files=files)

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;

class Main {

public static void main(String[] args) throws IOException { URL url = new URL("https://api.bugasura.io/customFields/delete"); HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true);

httpConn.setRequestProperty("Authorization", "Basic <Your API_KEY goes here>"); httpConn.setRequestProperty("Accept", "application/json"); httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String formData = "team_id=1001&appId=2001&entityType=ISSUE&fieldId=9601";

try(OutputStream os = httpConn.getOutputStream()) { byte[] input = formData.getBytes("utf-8"); os.write(input, 0, input.length); }

InputStream responseStream = httpConn.getResponseCode() / 100 == 2 ? httpConn.getInputStream() : httpConn.getErrorStream(); Scanner s = new Scanner(responseStream).useDelimiter("\A"); String response = s.hasNext() ? s.next() : ""; System.out.println(response); } }

const form = new FormData();
form.append('team_id', '1001');
form.append('appId', '2001');
form.append('entityType', 'ISSUE');
form.append('fieldId', '9601');

fetch('https://api.bugasura.io/customFields/delete', { method: 'POST', headers: { 'Authorization': 'Basic <Your API_KEY goes here>', 'Accept': 'application/json' }, body: form });

require "uri"
require "net/http"

url = URI("https://api.bugasura.io/customFields/delete")

http = Net::HTTP.new(url.host, url.port); http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = "Basic <Your API_KEY goes here>" request["Accept"] = "application/json" form_data = [['team_id', '1001'],['appId', '2001'],['entityType', 'ISSUE'],['fieldId', '9601']] request.set_form form_data, 'multipart/form-data' response = http.request(request) puts response.read_body

The above command returns JSON structured like this:

{
  "status": "OK",
  "message": "Custom Field deleted successfully.",
  "fieldId": "9601"
}

Delete a custom field from a project. The field is disabled, not erased: it is renamed to deleted_on_<date and time>-<old name>, marked as deleted and removed from the layout of the details screen, and it no longer appears in customFields/get. The values that issues, requirements or test cases already hold for the field are not changed or removed. Because the old name is released, you can create a new field with the same name.

The request succeeds even when the field id is not found in the project.

The members of the project get an in-app notification that a field was deleted (you are left out). People who turned off project-update notifications are skipped.

HTTP Request

POST https://api.bugasura.io/customFields/delete

Body Parameters

Parameter Type Default Description
team_id* Integer The ID of the team the project belongs to. Required. Always send it. Without it the request runs in your default team.
appId* Integer The ID of the project. Required. Without it the request fails with App Id cannot be empty. If you are not a team admin, the permission message is returned first.
fieldId* Integer The ID of the custom field to delete. Required. Without it the request fails with Field Id cannot be empty.
entityType String ISSUE The entity type of the field. One of ISSUE, REQUIREMENT or TESTCASE. Any other value fails with Invalid entity type.