All URIs are relative to https://compose.neurosynth.org/api
Method | HTTP request | Description |
---|---|---|
annotations_get | GET /annotations | GET a list of annotations |
annotations_id_get | GET /annotations/{id} | GET information about an annotation |
annotations_id_put | PUT /annotations/{id} | Update an Annotation |
annotations_post | POST /annotations | Create a new Annotation |
meta_analyses_get | GET /meta-analyses | GET a list of meta-analyses |
meta_analyses_id_get | GET /meta-analyses/{id} | GET meta-analysis information |
meta_analyses_id_put | PUT /meta-analyses/{id} | Update a meta-analysis |
meta_analyses_post | POST /meta-analyses | Create a new meta-analysis |
meta_analysis_results_get | GET /meta-analysis-results | Your GET endpoint |
meta_analysis_results_id_get | GET /meta-analysis-results/{id} | Your GET endpoint |
meta_analysis_results_id_put | PUT /meta-analysis-results/{id} | |
meta_analysis_results_post | POST /meta-analysis-results | |
neurovault_collections_get | GET /neurovault-collections | Get neurovault collections |
neurovault_collections_id_get | GET /neurovault-collections/{id} | Your GET endpoint |
neurovault_collections_id_put | PUT /neurovault-collections/{id} | |
neurovault_collections_post | POST /neurovault-collections | Create neurovault collection |
neurovault_files_get | GET /neurovault-files | Your GET endpoint |
neurovault_files_id_get | GET /neurovault-files/{id} | Your GET endpoint |
neurovault_files_id_put | PUT /neurovault-files/{id} | |
neurovault_files_post | POST /neurovault-files | |
projects_get | GET /projects | Your GET endpoint |
projects_id_delete | DELETE /projects/{id} | |
projects_id_get | GET /projects/{id} | Your GET endpoint |
projects_id_put | PUT /projects/{id} | |
projects_post | POST /projects | |
specifications_get | GET /specifications | Get a list of Specifications |
specifications_id_get | GET /specifications/{id} | Get information about a Specification |
specifications_id_put | PUT /specifications/{id} | Update Meta-Analysis specification |
specifications_post | POST /specifications | Create a Specification |
studysets_get | GET /studysets | Get a list of Studysets |
studysets_id_get | GET /studysets/{id} | Get information about a Studyset |
studysets_id_put | PUT /studysets/{id} | Update a Studyset |
studysets_post | POST /studysets | Create a new Studyset |
AnnotationList annotations_get()
GET a list of annotations
get a list of serialized/referenced annotations
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.annotation_list import AnnotationList
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
try:
# GET a list of annotations
api_response = api_instance.annotations_get()
print("The response of ComposeApi->annotations_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->annotations_get: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnnotationReturn annotations_id_get(id)
GET information about an annotation
get a single annotation
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.annotation_return import AnnotationReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
try:
# GET information about an annotation
api_response = api_instance.annotations_id_get(id)
print("The response of ComposeApi->annotations_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->annotations_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | form when a request goes wrong | - |
404 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnnotationReturn annotations_id_put(id, annotation_update=annotation_update)
Update an Annotation
update an existing annotation
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.annotation_return import AnnotationReturn
from neurosynth_compose_sdk.models.annotation_update import AnnotationUpdate
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
annotation_update = neurosynth_compose_sdk.AnnotationUpdate() # AnnotationUpdate | (optional)
try:
# Update an Annotation
api_response = api_instance.annotations_id_put(id, annotation_update=annotation_update)
print("The response of ComposeApi->annotations_id_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->annotations_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
annotation_update | AnnotationUpdate | [optional] |
- Content-Type: application/json
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
401 | form when a request goes wrong | - |
404 | form when a request goes wrong | - |
422 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnnotationReturn annotations_post(annotation_post_body=annotation_post_body)
Create a new Annotation
create a new serialized/referenced annotation
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.annotation_post_body import AnnotationPostBody
from neurosynth_compose_sdk.models.annotation_return import AnnotationReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
annotation_post_body = neurosynth_compose_sdk.AnnotationPostBody() # AnnotationPostBody | (optional)
try:
# Create a new Annotation
api_response = api_instance.annotations_post(annotation_post_body=annotation_post_body)
print("The response of ComposeApi->annotations_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->annotations_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
annotation_post_body | AnnotationPostBody | [optional] |
- Content-Type: application/json
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
422 | form when a request goes wrong | - |
500 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MetaAnalysisList meta_analyses_get(nested=nested, ids=ids, page=page, page_size=page_size, name=name, search=search, description=description, sort=sort, desc=desc)
GET a list of meta-analyses
list all runnable specification, studyset, annotation bundles
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.meta_analysis_list import MetaAnalysisList
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
nested = True # bool | show nested component instead of id (optional)
ids = ['ids_example'] # List[str] | choose the specific ids you wish to get (optional)
page = 56 # int | page of results (optional)
page_size = 56 # int | number of elements to return on a page (optional)
name = 'name_example' # str | search the name field for a term (optional)
search = 'imagin' # str | search for entries that contain the substring (optional)
description = 'description_example' # str | search description field for a term (optional)
sort = 'created_at' # str | Parameter to sort results on (optional) (default to 'created_at')
desc = True # bool | sort results by descending order (as opposed to ascending order) (optional)
try:
# GET a list of meta-analyses
api_response = api_instance.meta_analyses_get(nested=nested, ids=ids, page=page, page_size=page_size, name=name, search=search, description=description, sort=sort, desc=desc)
print("The response of ComposeApi->meta_analyses_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->meta_analyses_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
nested | bool | show nested component instead of id | [optional] |
ids | List[str] | choose the specific ids you wish to get | [optional] |
page | int | page of results | [optional] |
page_size | int | number of elements to return on a page | [optional] |
name | str | search the name field for a term | [optional] |
search | str | search for entries that contain the substring | [optional] |
description | str | search description field for a term | [optional] |
sort | str | Parameter to sort results on | [optional] [default to 'created_at'] |
desc | bool | sort results by descending order (as opposed to ascending order) | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MetaAnalysisReturn meta_analyses_id_get(id, nested=nested)
GET meta-analysis information
get a meta-analysis (specification, annotation, and studyset)
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.meta_analysis_return import MetaAnalysisReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
nested = True # bool | show nested component instead of id (optional)
try:
# GET meta-analysis information
api_response = api_instance.meta_analyses_id_get(id, nested=nested)
print("The response of ComposeApi->meta_analyses_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->meta_analyses_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
nested | bool | show nested component instead of id | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | form when a request goes wrong | - |
404 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MetaAnalysisReturn meta_analyses_id_put(id, meta_analysis=meta_analysis)
Update a meta-analysis
update an existing meta-analysis (that has not yet been run)
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.meta_analysis import MetaAnalysis
from neurosynth_compose_sdk.models.meta_analysis_return import MetaAnalysisReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
meta_analysis = neurosynth_compose_sdk.MetaAnalysis() # MetaAnalysis | (optional)
try:
# Update a meta-analysis
api_response = api_instance.meta_analyses_id_put(id, meta_analysis=meta_analysis)
print("The response of ComposeApi->meta_analyses_id_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->meta_analyses_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
meta_analysis | MetaAnalysis | [optional] |
- Content-Type: application/json
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
401 | form when a request goes wrong | - |
404 | form when a request goes wrong | - |
422 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MetaAnalysisReturn meta_analyses_post(meta_analysis_post_body=meta_analysis_post_body)
Create a new meta-analysis
create a new specification, studyset, annotation bundle
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.meta_analysis_post_body import MetaAnalysisPostBody
from neurosynth_compose_sdk.models.meta_analysis_return import MetaAnalysisReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
meta_analysis_post_body = neurosynth_compose_sdk.MetaAnalysisPostBody() # MetaAnalysisPostBody | (optional)
try:
# Create a new meta-analysis
api_response = api_instance.meta_analyses_post(meta_analysis_post_body=meta_analysis_post_body)
print("The response of ComposeApi->meta_analyses_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->meta_analyses_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
meta_analysis_post_body | MetaAnalysisPostBody | [optional] |
- Content-Type: application/json
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
422 | form when a request goes wrong | - |
500 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResultList meta_analysis_results_get(meta_analysis_id=meta_analysis_id)
Your GET endpoint
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.result_list import ResultList
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
meta_analysis_id = 'meta_analysis_id_example' # str | search for results with this meta-analysis id (optional)
try:
# Your GET endpoint
api_response = api_instance.meta_analysis_results_get(meta_analysis_id=meta_analysis_id)
print("The response of ComposeApi->meta_analysis_results_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->meta_analysis_results_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
meta_analysis_id | str | search for results with this meta-analysis id | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResultReturn meta_analysis_results_id_get(id)
Your GET endpoint
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.result_return import ResultReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
try:
# Your GET endpoint
api_response = api_instance.meta_analysis_results_id_get(id)
print("The response of ComposeApi->meta_analysis_results_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->meta_analysis_results_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResultReturn meta_analysis_results_id_put(id, result=result)
- Bearer Authentication (JSON-Web-Token):
- Api Key Authentication (upload_key):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.result import Result
from neurosynth_compose_sdk.models.result_return import ResultReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Configure API key authorization: upload_key
configuration.api_key['upload_key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['upload_key'] = 'Bearer'
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
result = neurosynth_compose_sdk.Result() # Result | (optional)
try:
#
api_response = api_instance.meta_analysis_results_id_put(id, result=result)
print("The response of ComposeApi->meta_analysis_results_id_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->meta_analysis_results_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
result | Result | [optional] |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResultReturn meta_analysis_results_post(result_init=result_init)
- Bearer Authentication (JSON-Web-Token):
- Api Key Authentication (upload_key):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.result_init import ResultInit
from neurosynth_compose_sdk.models.result_return import ResultReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Configure API key authorization: upload_key
configuration.api_key['upload_key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['upload_key'] = 'Bearer'
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
result_init = neurosynth_compose_sdk.ResultInit() # ResultInit | (optional)
try:
#
api_response = api_instance.meta_analysis_results_post(result_init=result_init)
print("The response of ComposeApi->meta_analysis_results_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->meta_analysis_results_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
result_init | ResultInit | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
neurovault_collections_get()
Get neurovault collections
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
try:
# Get neurovault collections
api_instance.neurovault_collections_get()
except Exception as e:
print("Exception when calling ComposeApi->neurovault_collections_get: %s\n" % e)
This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NeurovaultCollectionReturn neurovault_collections_id_get(id)
Your GET endpoint
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.neurovault_collection_return import NeurovaultCollectionReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
try:
# Your GET endpoint
api_response = api_instance.neurovault_collections_id_get(id)
print("The response of ComposeApi->neurovault_collections_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->neurovault_collections_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NeurovaultCollectionReturn neurovault_collections_id_put(id)
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.neurovault_collection_return import NeurovaultCollectionReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
try:
#
api_response = api_instance.neurovault_collections_id_put(id)
print("The response of ComposeApi->neurovault_collections_id_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->neurovault_collections_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
neurovault_collections_post(neurovault_collection=neurovault_collection)
Create neurovault collection
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.neurovault_collection import NeurovaultCollection
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
neurovault_collection = neurosynth_compose_sdk.NeurovaultCollection() # NeurovaultCollection | (optional)
try:
# Create neurovault collection
api_instance.neurovault_collections_post(neurovault_collection=neurovault_collection)
except Exception as e:
print("Exception when calling ComposeApi->neurovault_collections_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
neurovault_collection | NeurovaultCollection | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NeurovaultFileList neurovault_files_get()
Your GET endpoint
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.neurovault_file_list import NeurovaultFileList
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
try:
# Your GET endpoint
api_response = api_instance.neurovault_files_get()
print("The response of ComposeApi->neurovault_files_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->neurovault_files_get: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NeurovaultFileReturn neurovault_files_id_get(id)
Your GET endpoint
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.neurovault_file_return import NeurovaultFileReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
try:
# Your GET endpoint
api_response = api_instance.neurovault_files_id_get(id)
print("The response of ComposeApi->neurovault_files_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->neurovault_files_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NeurovaultFileReturn neurovault_files_id_put(id, collection_id=collection_id, exception=exception, traceback=traceback, status=status, image_id=image_id, name=name, url=url)
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.neurovault_file_return import NeurovaultFileReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
collection_id = 'collection_id_example' # str | (optional)
exception = 'exception_example' # str | (optional)
traceback = 'traceback_example' # str | (optional)
status = 'status_example' # str | (optional)
image_id = 'image_id_example' # str | (optional)
name = 'name_example' # str | (optional)
url = 'url_example' # str | (optional)
try:
#
api_response = api_instance.neurovault_files_id_put(id, collection_id=collection_id, exception=exception, traceback=traceback, status=status, image_id=image_id, name=name, url=url)
print("The response of ComposeApi->neurovault_files_id_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->neurovault_files_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
collection_id | str | [optional] | |
exception | str | [optional] | |
traceback | str | [optional] | |
status | str | [optional] | |
image_id | str | [optional] | |
name | str | [optional] | |
url | str | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NeurovaultFileReturn neurovault_files_post(neurovault_file=neurovault_file)
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.neurovault_file import NeurovaultFile
from neurosynth_compose_sdk.models.neurovault_file_return import NeurovaultFileReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
neurovault_file = neurosynth_compose_sdk.NeurovaultFile() # NeurovaultFile | (optional)
try:
#
api_response = api_instance.neurovault_files_post(neurovault_file=neurovault_file)
print("The response of ComposeApi->neurovault_files_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->neurovault_files_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
neurovault_file | NeurovaultFile | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectList projects_get(page=page, page_size=page_size, name=name, search=search, description=description, sort=sort, desc=desc, user_id=user_id)
Your GET endpoint
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.project_list import ProjectList
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
page = 56 # int | page of results (optional)
page_size = 56 # int | number of elements to return on a page (optional)
name = 'name_example' # str | search the name field for a term (optional)
search = 'imagin' # str | search for entries that contain the substring (optional)
description = 'description_example' # str | search description field for a term (optional)
sort = 'created_at' # str | Parameter to sort results on (optional) (default to 'created_at')
desc = True # bool | sort results by descending order (as opposed to ascending order) (optional)
user_id = 'user_id_example' # str | user id you want to filter on (optional)
try:
# Your GET endpoint
api_response = api_instance.projects_get(page=page, page_size=page_size, name=name, search=search, description=description, sort=sort, desc=desc, user_id=user_id)
print("The response of ComposeApi->projects_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->projects_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page | int | page of results | [optional] |
page_size | int | number of elements to return on a page | [optional] |
name | str | search the name field for a term | [optional] |
search | str | search for entries that contain the substring | [optional] |
description | str | search description field for a term | [optional] |
sort | str | Parameter to sort results on | [optional] [default to 'created_at'] |
desc | bool | sort results by descending order (as opposed to ascending order) | [optional] |
user_id | str | user id you want to filter on | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projects_id_delete(id)
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
try:
#
api_instance.projects_id_delete(id)
except Exception as e:
print("Exception when calling ComposeApi->projects_id_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectReturn projects_id_get(id, info=info)
Your GET endpoint
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.project_return import ProjectReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
info = True # bool | display additional information about a nested relationship without displaying fully nested object (optional)
try:
# Your GET endpoint
api_response = api_instance.projects_id_get(id, info=info)
print("The response of ComposeApi->projects_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->projects_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
info | bool | display additional information about a nested relationship without displaying fully nested object | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectReturn projects_id_put(id, project=project)
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.project import Project
from neurosynth_compose_sdk.models.project_return import ProjectReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
project = neurosynth_compose_sdk.Project() # Project | (optional)
try:
#
api_response = api_instance.projects_id_put(id, project=project)
print("The response of ComposeApi->projects_id_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->projects_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
project | Project | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectReturn projects_post(project=project)
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.project import Project
from neurosynth_compose_sdk.models.project_return import ProjectReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
project = neurosynth_compose_sdk.Project() # Project | (optional)
try:
#
api_response = api_instance.projects_post(project=project)
print("The response of ComposeApi->projects_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->projects_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project | Project | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SpecificationList specifications_get()
Get a list of Specifications
list of meta-analysis specifications
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.specification_list import SpecificationList
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
try:
# Get a list of Specifications
api_response = api_instance.specifications_get()
print("The response of ComposeApi->specifications_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->specifications_get: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SpecificationReturn specifications_id_get(id)
Get information about a Specification
get a meta-analysis specification
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.specification_return import SpecificationReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
try:
# Get information about a Specification
api_response = api_instance.specifications_id_get(id)
print("The response of ComposeApi->specifications_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->specifications_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | form when a request goes wrong | - |
404 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SpecificationReturn specifications_id_put(id, specification=specification)
Update Meta-Analysis specification
update an existing meta analysis specification
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.specification import Specification
from neurosynth_compose_sdk.models.specification_return import SpecificationReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
specification = neurosynth_compose_sdk.Specification() # Specification | (optional)
try:
# Update Meta-Analysis specification
api_response = api_instance.specifications_id_put(id, specification=specification)
print("The response of ComposeApi->specifications_id_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->specifications_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
specification | Specification | [optional] |
- Content-Type: application/json
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
401 | form when a request goes wrong | - |
404 | form when a request goes wrong | - |
422 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SpecificationReturn specifications_post(specification_post_body=specification_post_body)
Create a Specification
create a new meta-analysis specification
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.specification_post_body import SpecificationPostBody
from neurosynth_compose_sdk.models.specification_return import SpecificationReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
specification_post_body = neurosynth_compose_sdk.SpecificationPostBody() # SpecificationPostBody | (optional)
try:
# Create a Specification
api_response = api_instance.specifications_post(specification_post_body=specification_post_body)
print("The response of ComposeApi->specifications_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->specifications_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
specification_post_body | SpecificationPostBody | [optional] |
- Content-Type: application/json
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
422 | Unprocessable Entity (WebDAV) | - |
500 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StudysetList studysets_get()
Get a list of Studysets
get a list of serialized/referenced studysets
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.studyset_list import StudysetList
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
try:
# Get a list of Studysets
api_response = api_instance.studysets_get()
print("The response of ComposeApi->studysets_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->studysets_get: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StudysetReturn studysets_id_get(id)
Get information about a Studyset
get a single serialized/referenced studyset
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.studyset_return import StudysetReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
try:
# Get information about a Studyset
api_response = api_instance.studysets_id_get(id)
print("The response of ComposeApi->studysets_id_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->studysets_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | form when a request goes wrong | - |
404 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StudysetReturn studysets_id_put(id, studyset=studyset)
Update a Studyset
update an existing serialized/referenced studyset
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.studyset import Studyset
from neurosynth_compose_sdk.models.studyset_return import StudysetReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
id = 'id_example' # str |
studyset = neurosynth_compose_sdk.Studyset() # Studyset | (optional)
try:
# Update a Studyset
api_response = api_instance.studysets_id_put(id, studyset=studyset)
print("The response of ComposeApi->studysets_id_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->studysets_id_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
studyset | Studyset | [optional] |
- Content-Type: application/json
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | form when a request goes wrong | - |
404 | form when a request goes wrong | - |
422 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StudysetReturn studysets_post(studyset_post_body=studyset_post_body)
Create a new Studyset
create a new serialized/referenced studyset
- Bearer Authentication (JSON-Web-Token):
import time
import os
import neurosynth_compose_sdk
from neurosynth_compose_sdk.models.studyset_post_body import StudysetPostBody
from neurosynth_compose_sdk.models.studyset_return import StudysetReturn
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://compose.neurosynth.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurosynth_compose_sdk.Configuration(
host = "https://compose.neurosynth.org/api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
studyset_post_body = neurosynth_compose_sdk.StudysetPostBody() # StudysetPostBody | (optional)
try:
# Create a new Studyset
api_response = api_instance.studysets_post(studyset_post_body=studyset_post_body)
print("The response of ComposeApi->studysets_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ComposeApi->studysets_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
studyset_post_body | StudysetPostBody | [optional] |
- Content-Type: application/json
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | form when a request goes wrong | - |
422 | form when a request goes wrong | - |
500 | form when a request goes wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]