All URIs are relative to https://localhost:8080/RestAPI
| Method | HTTP request | Description |
|---|---|---|
| delete_metadata_key_values | DELETE /metadata | Remove any associated metadata. |
| get_metadata_key_values | GET /metadata | Retrieve any associated metadata. |
| set_metadata_key_values | POST /metadata | Remove any existing metadata keys and create the provided data. |
| upsert_metadata_key_values | PUT /metadata | Update any existing metadata key-values and insert any new key-values, no keys will be removed. |
DynamicMetadata delete_metadata_key_values(organizations=organizations)
Remove any associated metadata.
{"nickname":"Clear metadata from organization","request" :"deleteOrganizationMetadataRequest.html","response":"deleteOrganizationMetadataResponse.html"}
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.MetadataApi()
organizations = ['organizations_example'] # list[str] | A list of organization-IDs used to restrict the scope of API calls. (optional)
try:
# Remove any associated metadata.
api_response = api_instance.delete_metadata_key_values(organizations=organizations)
pprint(api_response)
except ApiException as e:
print "Exception when calling MetadataApi->delete_metadata_key_values: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| organizations | list[str] | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DynamicMetadata get_metadata_key_values(organizations=organizations)
Retrieve any associated metadata.
{"nickname":"Retrieve metadata on organization","request":"getOrganizationMetadataRequest.html","response":"getOrganizationMetadataResponse.html"}
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.MetadataApi()
organizations = ['organizations_example'] # list[str] | A list of organization-IDs used to restrict the scope of API calls. (optional)
try:
# Retrieve any associated metadata.
api_response = api_instance.get_metadata_key_values(organizations=organizations)
pprint(api_response)
except ApiException as e:
print "Exception when calling MetadataApi->get_metadata_key_values: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| organizations | list[str] | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DynamicMetadata set_metadata_key_values(metadata, organizations=organizations)
Remove any existing metadata keys and create the provided data.
{"nickname":"Set metadata on organization","request":"setOrganizationMetadataRequest.html","response":"setOrganizationMetadataResponse.html"}
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.MetadataApi()
metadata = billforward.DynamicMetadata() # DynamicMetadata |
organizations = ['organizations_example'] # list[str] | A list of organization-IDs used to restrict the scope of API calls. (optional)
try:
# Remove any existing metadata keys and create the provided data.
api_response = api_instance.set_metadata_key_values(metadata, organizations=organizations)
pprint(api_response)
except ApiException as e:
print "Exception when calling MetadataApi->set_metadata_key_values: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| metadata | DynamicMetadata | ||
| organizations | list[str] | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DynamicMetadata upsert_metadata_key_values(metadata, organizations=organizations)
Update any existing metadata key-values and insert any new key-values, no keys will be removed.
{"nickname":"Upsert metadata on organization","request":"upsertOrganizationMetadataRequest.html","response":"upsertOrganizationMetadataResponse.html"}
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.MetadataApi()
metadata = billforward.DynamicMetadata() # DynamicMetadata |
organizations = ['organizations_example'] # list[str] | A list of organization-IDs used to restrict the scope of API calls. (optional)
try:
# Update any existing metadata key-values and insert any new key-values, no keys will be removed.
api_response = api_instance.upsert_metadata_key_values(metadata, organizations=organizations)
pprint(api_response)
except ApiException as e:
print "Exception when calling MetadataApi->upsert_metadata_key_values: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| metadata | DynamicMetadata | ||
| organizations | list[str] | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]