All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
filter_needs_api_filter_needs_post | POST /api/filter/needs | Filter Needs |
[Need] filter_needs_api_filter_needs_post(filter)
Filter Needs
import time
import on_sdk
from on_sdk.api import filter_api
from on_sdk.model.http_validation_error import HTTPValidationError
from on_sdk.model.filter import Filter
from on_sdk.model.need import Need
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 = on_sdk.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with on_sdk.ApiClient() as api_client:
# Create an instance of the API class
api_instance = filter_api.FilterApi(api_client)
filter = Filter(
values=NeedFilter(
title="title_example",
description="description_example",
project_id=1,
meta={
"key": None,
},
),
skip=0,
limit=100,
) # Filter |
# example passing only required values which don't have defaults set
try:
# Filter Needs
api_response = api_instance.filter_needs_api_filter_needs_post(filter)
pprint(api_response)
except on_sdk.ApiException as e:
print("Exception when calling FilterApi->filter_needs_api_filter_needs_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
filter | Filter |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
404 | Not found | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]