Sends an HTTP POST request to the Synapse server.

synRestPOST(uri, body, endpoint=NULL, headers=NULL, retryPolicy=list(), ...)

Arguments

uri

URI on which get is performed

body

The payload to be delivered

endpoint

Server endpoint. The required endpoint is shown in each service's page in the REST API doc's (http://docs.synapse.org/rest). Options are: 'https://repo-prod.prod.sagebase.org/repo/v1' (the default), 'https://file-prod.prod.sagebase.org/file/v1' or 'https://file-prod.prod.sagebase.org/auth/v1'.

headers

named list of headers to use rather than the API-key-signed default set of headers

retryPolicy
...

Any other arguments taken by a http://docs.python-requests.org method

Value

JSON encoding of response