All URIs are relative to https://localhost:8080/api/v9
Method | HTTP request | Description |
---|---|---|
delete_organization_group | DELETE /organizations/{organization_id}/groups/{group_id} | Deletes group |
delete_project_group | DELETE /workspaces/{workspace_id}/project_groups/{project_group_id} | Remove project group. |
delete_workspace_group | DELETE /workspaces/{workspace_id}/groups/{group_id} | Delete group |
get_organization_groups | GET /organizations/{organization_id}/groups | List of groups in organization with user and workspace assignments |
get_organization_workspaces_groups | GET /organizations/{organization_id}/workspaces/{workspace_id}/groups | List of groups in a workspace within an organization with user assignments. |
get_project_groups | GET /workspaces/{workspace_id}/project_groups | Get workspace project groups. |
get_workspace_groups | GET /workspaces/{workspace_id}/groups | Get workspace groups |
patch_organization_group | PATCH /organizations/{organization_id}/groups/{group_id} | Patch group |
post_organization_group | POST /organizations/{organization_id}/groups | Create group |
post_project_group | POST /workspaces/{workspace_id}/project_groups | Adds group to project. |
post_workspace_group | POST /workspaces/{workspace_id}/groups | Create group |
put_organization_group | PUT /organizations/{organization_id}/groups/{group_id} | Edit group |
put_organization_workspaces_assignments | PUT /organizations/{organization_id}/workspaces/{workspace_id}/assignments | Change assignments of users within a workspace. |
put_workspace_group | PUT /workspaces/{workspace_id}/groups/{group_id} | Update group |
str delete_organization_group(organization_id, group_id)
Deletes group
Deletes a group from the specified organization
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.GroupsApi(toggl.ApiClient(configuration))
organization_id = 56 # int | Numeric ID of the organization.
group_id = 56 # int | Numeric ID of the group.
try:
# Deletes group
api_response = api_instance.delete_organization_group(organization_id, group_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->delete_organization_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
organization_id | int | Numeric ID of the organization. | |
group_id | int | Numeric ID of the group. |
str
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str delete_project_group(workspace_id, project_group_id)
Remove project group.
Remove project group for a given workspace.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.GroupsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Numeric ID of the workspace
project_group_id = 56 # int | Numeric ID of the project group
try:
# Remove project group.
api_response = api_instance.delete_project_group(workspace_id, project_group_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->delete_project_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Numeric ID of the workspace | |
project_group_id | int | Numeric ID of the project group |
str
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_workspace_group(workspace_id, group_id)
Delete group
Deletes the group.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = toggl.GroupsApi()
workspace_id = 56 # int | Numeric ID of the workspace.
group_id = 56 # int | Numeric ID of the group.
try:
# Delete group
api_instance.delete_workspace_group(workspace_id, group_id)
except ApiException as e:
print("Exception when calling GroupsApi->delete_workspace_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Numeric ID of the workspace. | |
group_id | int | Numeric ID of the group. |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[GroupOrganizationGroupResponse] get_organization_groups(organization_id, name=name, workspace=workspace)
List of groups in organization with user and workspace assignments
Returns list of groups in organization based on set of url parameters. List is sorted by name.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.GroupsApi(toggl.ApiClient(configuration))
organization_id = 56 # int | Numeric ID of the organization
name = 'name_example' # str | Returns records where name contains this string (optional)
workspace = 'workspace_example' # str | ID of workspace. Returns groups assigned to this workspace (optional)
try:
# List of groups in organization with user and workspace assignments
api_response = api_instance.get_organization_groups(organization_id, name=name, workspace=workspace)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->get_organization_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
organization_id | int | Numeric ID of the organization | |
name | str | Returns records where name contains this string | [optional] |
workspace | str | ID of workspace. Returns groups assigned to this workspace | [optional] |
list[GroupOrganizationGroupResponse]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[GroupOrganizationGroupResponse] get_organization_workspaces_groups(organization_id, workspace_id)
List of groups in a workspace within an organization with user assignments.
Returns list of groups in a workspace based on set of url parameters. List is sorted by name.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.GroupsApi(toggl.ApiClient(configuration))
organization_id = 56 # int | Numeric ID of the organization
workspace_id = 56 # int | Numeric ID of the workspace within the organization
try:
# List of groups in a workspace within an organization with user assignments.
api_response = api_instance.get_organization_workspaces_groups(organization_id, workspace_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->get_organization_workspaces_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
organization_id | int | Numeric ID of the organization | |
workspace_id | int | Numeric ID of the workspace within the organization |
list[GroupOrganizationGroupResponse]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[ModelsProjectGroup] get_project_groups(workspace_id, project_ids)
Get workspace project groups.
Get project groups for given workspace.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.GroupsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Numeric ID of the workspace
project_ids = 'project_ids_example' # str | Project IDs separated by comma.
try:
# Get workspace project groups.
api_response = api_instance.get_project_groups(workspace_id, project_ids)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->get_project_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Numeric ID of the workspace | |
project_ids | str | Project IDs separated by comma. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[ModelsGroup] get_workspace_groups(workspace_id)
Get workspace groups
Returns a list of groups for the specified workspace.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = toggl.GroupsApi()
workspace_id = 56 # int | Numeric ID of the workspace.
try:
# Get workspace groups
api_response = api_instance.get_workspace_groups(workspace_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->get_workspace_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Numeric ID of the workspace. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupsPatchOutput patch_organization_group(organization_id, group_id, patch_group_request)
Patch group
Patches a group in the specified organization. Patches are applied individually.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.GroupsApi(toggl.ApiClient(configuration))
organization_id = 56 # int | Numeric ID of the organization.
group_id = 56 # int | Numeric ID of the group.
patch_group_request = [toggl.GroupsPatchInput()] # list[GroupsPatchInput] | Array of patch operations.
try:
# Patch group
api_response = api_instance.patch_organization_group(organization_id, group_id, patch_group_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->patch_organization_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
organization_id | int | Numeric ID of the organization. | |
group_id | int | Numeric ID of the group. | |
patch_group_request | list[GroupsPatchInput] | Array of patch operations. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupOrganizationGroupResponse post_organization_group(organization_id, post_group_request)
Create group
Creates a group in the specified organization
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.GroupsApi(toggl.ApiClient(configuration))
organization_id = 56 # int | Numeric ID of the organization.
post_group_request = toggl.GroupPayload() # GroupPayload | Input data for group creation.
try:
# Create group
api_response = api_instance.post_organization_group(organization_id, post_group_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->post_organization_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
organization_id | int | Numeric ID of the organization. | |
post_group_request | GroupPayload | Input data for group creation. |
GroupOrganizationGroupResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str post_project_group(workspace_id, project_group_post)
Adds group to project.
Adds group to project for given workspace.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.GroupsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Numeric ID of the workspace
project_group_post = toggl.GroupProjectGroupPayload() # GroupProjectGroupPayload | Input data
try:
# Adds group to project.
api_response = api_instance.post_project_group(workspace_id, project_group_post)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->post_project_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Numeric ID of the workspace | |
project_group_post | GroupProjectGroupPayload | Input data |
str
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelsGroup post_workspace_group(workspace_id, post_group_request)
Create group
Creates a group in the specified workspace
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = toggl.GroupsApi()
workspace_id = 56 # int | Numeric ID of the workspace.
post_group_request = toggl.GroupNamePayload() # GroupNamePayload | Input data for group creation.
try:
# Create group
api_response = api_instance.post_workspace_group(workspace_id, post_group_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->post_workspace_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Numeric ID of the workspace. | |
post_group_request | GroupNamePayload | Input data for group creation. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupOrganizationGroupResponse put_organization_group(organization_id, put_group_request)
Edit group
Edits a group in the specified organization
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.GroupsApi(toggl.ApiClient(configuration))
organization_id = 56 # int | Numeric ID of the organization.
put_group_request = toggl.GroupPayload() # GroupPayload | Input data for group modification.
try:
# Edit group
api_response = api_instance.put_organization_group(organization_id, put_group_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->put_organization_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
organization_id | int | Numeric ID of the organization. | |
put_group_request | GroupPayload | Input data for group modification. |
GroupOrganizationGroupResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str put_organization_workspaces_assignments(organization_id, workspace_id, post)
Change assignments of users within a workspace.
Assign or remove users to/from a workspace or to/from groups belonging to said workspace.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.GroupsApi(toggl.ApiClient(configuration))
organization_id = 56 # int | Numeric ID of the organization
workspace_id = 56 # int | Numeric ID of the workspace within the organization
post = toggl.UserAssignmentsPayload() # UserAssignmentsPayload | Describes the change in assignment
try:
# Change assignments of users within a workspace.
api_response = api_instance.put_organization_workspaces_assignments(organization_id, workspace_id, post)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->put_organization_workspaces_assignments: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
organization_id | int | Numeric ID of the organization | |
workspace_id | int | Numeric ID of the workspace within the organization | |
post | UserAssignmentsPayload | Describes the change in assignment |
str
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelsGroup put_workspace_group(workspace_id, group_id, put_group_request)
Update group
Updates the group.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = toggl.GroupsApi()
workspace_id = 56 # int | Numeric ID of the workspace.
group_id = 56 # int | Numeric ID of the group.
put_group_request = toggl.GroupNamePayload() # GroupNamePayload | Input data for group update.
try:
# Update group
api_response = api_instance.put_workspace_group(workspace_id, group_id, put_group_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->put_workspace_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Numeric ID of the workspace. | |
group_id | int | Numeric ID of the group. | |
put_group_request | GroupNamePayload | Input data for group update. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]