All URIs are relative to https://apitryout.qtestnet.com/
Method | HTTP request | Description |
---|---|---|
create_project | POST /api/v3/projects | Creates a Project |
get_current_profile | GET /api/v3/projects/{projectId}/user-profiles/current | Gets current user Permissions in a Project |
get_project | GET /api/v3/projects/{projectId} | Gets a Project |
get_projects | GET /api/v3/projects | Gets multiple Projects |
get_users | GET /api/v3/projects/{projectId}/users | Gets all Users in a Project |
object create_project(body)
Creates a Project
To create a new Project qTest Manager version: 4+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ProjectApi()
body = swagger_client.ProjectResource() # ProjectResource |
try:
# Creates a Project
api_response = api_instance.create_project(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectApi->create_project: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | ProjectResource |
object
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserProfile get_current_profile(project_id)
Gets current user Permissions in a Project
To retrieve your Permissions in a Project qTest Manager version: 4+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ProjectApi()
project_id = 789 # int | ID of the project
try:
# Gets current user Permissions in a Project
api_response = api_instance.get_current_profile(project_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectApi->get_current_profile: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectResource get_project(project_id, expand=expand)
Gets a Project
To retrieve a specific Project
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ProjectApi()
project_id = 789 # int | ID of the project
expand = 'expand_example' # str | <em>expand=userprofile</em> - include the your profile and permissions within the project in the response (optional)
try:
# Gets a Project
api_response = api_instance.get_project(project_id, expand=expand)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectApi->get_project: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
expand | str | <em>expand=userprofile</em> - include the your profile and permissions within the project in the response | [optional] |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[ProjectResource] get_projects(expand=expand, assigned=assigned)
Gets multiple Projects
To retrieve all Projects which the requested qTest Manager account can access to qTest Manager version: 4+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ProjectApi()
expand = 'expand_example' # str | <em>expand=userprofile</em> - to include your profile and permissions in each project (optional)
assigned = true # bool | <em>assigned=true</em> - default value. Only the projects which the requested user has access to <em>assigned=false</em> - Users with admin profile can use this value to retrieve all projects, regardless of having access (optional)
try:
# Gets multiple Projects
api_response = api_instance.get_projects(expand=expand, assigned=assigned)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectApi->get_projects: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
expand | str | <em>expand=userprofile</em> - to include your profile and permissions in each project | [optional] |
assigned | bool | <em>assigned=true</em> - default value. Only the projects which the requested user has access to <em>assigned=false</em> - Users with admin profile can use this value to retrieve all projects, regardless of having access | [optional] |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[UserResource] get_users(project_id, inactive=inactive)
Gets all Users in a Project
To retrieve all members in a qTest Manager Project qTest Manager version: 8.4.2+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ProjectApi()
project_id = 789 # int | ID of the project
inactive = true # bool | <em>inactive=false</em> - default value. Inactive users are excluded from the response <em>inactive=true</em> - inactive users are included in the response (optional)
try:
# Gets all Users in a Project
api_response = api_instance.get_users(project_id, inactive=inactive)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectApi->get_users: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
inactive | bool | <em>inactive=false</em> - default value. Inactive users are excluded from the response <em>inactive=true</em> - inactive users are included in the response | [optional] |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]