post¶
- lsst.verify.squash.post(api_url, api_endpoint, json_doc=None, timeout=None, version=None, access_token=None)¶
- POST a JSON document to SQUASH. - Parameters:
- api_urlstr
- Root URL of the SQUASH API. For example, - 'https://squash.lsst.codes/api'.
- api_endpointstr
- Name of the API endpoint to post to. 
- json_docdict
- A JSON-serializable object. 
- timeoutfloat, optional
- Request timeout. The value of - get_default_timeoutis used by default.
- versionstr, optional
- API version. The value of - get_default_api_versionis used by default.
- access_tokenstr, optional
- Access token (see - get_access_token). Not required when a POST is done to the API authorization endpoint.
 
- api_url
- Returns:
- responserequests.Response
- Response object. Obtain JSON content with - response.json().
 
- response
- Raises:
- requests.exceptions.RequestException
- Raised if the HTTP request fails.