All URIs are relative to https://urlr.me/api/v1
| Method | HTTP request | Description |
|---|---|---|
| create_folder | POST /folders/create | Create a folder |
| get_folders | GET /folders/{team_id} | Get folders of workspace |
CreateFolder200Response create_folder(create_folder_request=create_folder_request)
Create a folder
import urlr
from urlr.models.create_folder200_response import CreateFolder200Response
from urlr.models.create_folder_request import CreateFolderRequest
from urlr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://urlr.me/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = urlr.Configuration(
host = "https://urlr.me/api/v1"
)
# Enter a context with an instance of the API client
with urlr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = urlr.FoldersApi(api_client)
create_folder_request = urlr.CreateFolderRequest() # CreateFolderRequest | You can use this endpoint to add a folder to URLR. (optional)
try:
# Create a folder
api_response = api_instance.create_folder(create_folder_request=create_folder_request)
print("The response of FoldersApi->create_folder:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FoldersApi->create_folder: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| create_folder_request | CreateFolderRequest | You can use this endpoint to add a folder to URLR. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json, application/problem+json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Folder | - |
| 401 | Unauthorized | - |
| 429 | Limits Exceeded | - |
| 409 | Conflict | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetFolders200Response get_folders(team_id)
Get folders of workspace
- Bearer (JWT) Authentication (bearerAuth):
import urlr
from urlr.models.get_folders200_response import GetFolders200Response
from urlr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://urlr.me/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = urlr.Configuration(
host = "https://urlr.me/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (JWT): bearerAuth
configuration = urlr.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with urlr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = urlr.FoldersApi(api_client)
team_id = UUID('ffefc6c4-d970-4373-a867-2a69c8be2c89') # UUID | Workspace API ID
try:
# Get folders of workspace
api_response = api_instance.get_folders(team_id)
print("The response of FoldersApi->get_folders:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FoldersApi->get_folders: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| team_id | UUID | Workspace API ID |
- Content-Type: Not defined
- Accept: application/json, application/problem+json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Folders of workspace | - |
| 404 | Not Found | - |
| 401 | Unauthorized | - |
| 422 | Validation Failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]