description |
---|
API Documentation for the BugSplat Databases Endpoint |
Operations related to a user or company's databases in BugSplat. Get a list of databases for the currently authenticated user or company, create a new database, transfer a database's ownership to another company, or delete a database.
GET
https://app.bugsplat.com/api/databases
Returns databases for the current user or a company specified by companyId.
Name | Type | Description |
---|---|---|
companyId | number | ID of the company that owns the databases |
{% tabs %} {% tab title="200 " %}
[{
"dbName": "Fred",
"companyId": "545",
"companyName": "BugSplat Public Testing",
"Volume30Day": "1075",
"Volume365Day": "8868",
"CrashDataDays": "6544"
}]
{% endtab %} {% endtabs %}
curl --location 'https://app.bugsplat.com/api/databases' \
--header 'Cookie: user=fred%40bugsplat.com; PHPSESSID=4g3pr9rdtehoddac9ohrt1qrc3cehg54; xsrf-token=ajKqRF12QJJ3IlLFdCEH0RhMjpuD5scz86mul3zdjTYA'
POST
https://app.bugsplat.com/api/databases
Create a new database for the current user. Default values for the new database are copied from the current database.
Name | Type | Description |
---|---|---|
database* | string | Name of the database being created |
{% tabs %} {% tab title="200 " %}
{
"status": "success",
"database": "fred"
}
{% endtab %} {% endtabs %}
curl --location 'https://app.bugsplat.com/api/databases' \
--header 'xsrf-token: ajKqRF12QJJ3IlLFdCEH0RhMjpuD5scz86mul3zdjTYA' \
--header 'Cookie: user=fred%40bugsplat.com; PHPSESSID=4g3pr9rdtehoddac9ohrt1qrc3cehg54; xsrf-token=ajKqRF12QJJ3IlLFdCEH0RhMjpuD5scz86mul3zdjTYA' \
--form 'database="postman-4f17b3f4-7ff0-497c-b3ec-94b333c05bd6"'
PUT
https://app.bugsplat.com/api/databases
Transfer the ownership of a database to a different company.
Name | Type | Description |
---|---|---|
companyId | number | ID of the company the database is being transferred to |
database | string | Name of the database being transferred |
{% tabs %} {% tab title="200 " %}
{
"status": "success",
"database": "fred",
"companyId": 25
}
{% endtab %} {% endtabs %}
DELETE
https://app.bugsplat.com/api/databases
Deletes a database and all associated data from BugSplat. This action is irreversible
Name | Type | Description |
---|---|---|
database | string | BugSplat database to delete |
{% tabs %} {% tab title="200 " %}
{
"status": "success",
"database": "fred",
"deleted":true
}
{% endtab %} {% endtabs %}