All URIs are relative to https://fritz.science
Method | HTTP request | Description |
---|---|---|
api_facility_post | POST /api/facility |
Success api_facility_post()
Post a message from a remote facility
import time
import skyportal_client
from skyportal_client.api import facility_api
from skyportal_client.model.unknownbasetype import UNKNOWNBASETYPE
from skyportal_client.model.error import Error
from skyportal_client.model.success import Success
from pprint import pprint
# Defining the host is optional and defaults to https://fritz.science
# See configuration.py for a list of all supported configuration parameters.
configuration = skyportal_client.Configuration(
host = "https://fritz.science"
)
# Enter a context with an instance of the API client
with skyportal_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = facility_api.FacilityApi(api_client)
unknown_base_type = # UNKNOWN_BASE_TYPE | (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_response = api_instance.api_facility_post(unknown_base_type=unknown_base_type)
pprint(api_response)
except skyportal_client.ApiException as e:
print("Exception when calling FacilityApi->api_facility_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
unknown_base_type | UNKNOWN_BASE_TYPE | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]