All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| sets_controller_create_a_set | POST /sets | |
| sets_controller_delete_set | DELETE /sets/{id} | |
| sets_controller_get_sets | GET /sets | |
| sets_controller_update_set | PUT /sets |
sets_controller_create_a_set(body)
import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = postiz_python_client.SetsApi(api_client)
body = None # object |
try:
api_instance.sets_controller_create_a_set(body)
except Exception as e:
print("Exception when calling SetsApi->sets_controller_create_a_set: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | object |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
sets_controller_delete_set(id)
import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = postiz_python_client.SetsApi(api_client)
id = 'id_example' # str |
try:
api_instance.sets_controller_delete_set(id)
except Exception as e:
print("Exception when calling SetsApi->sets_controller_delete_set: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
sets_controller_get_sets()
import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = postiz_python_client.SetsApi(api_client)
try:
api_instance.sets_controller_get_sets()
except Exception as e:
print("Exception when calling SetsApi->sets_controller_get_sets: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
sets_controller_update_set(body)
import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = postiz_python_client.SetsApi(api_client)
body = None # object |
try:
api_instance.sets_controller_update_set(body)
except Exception as e:
print("Exception when calling SetsApi->sets_controller_update_set: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | object |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]