Fritz: SkyPortal API (0.9.dev0+git20221125.5580c9d)

Download OpenAPI specification:Download

SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of .tokens.yaml.

Accessing the SkyPortal API

Once you have a token, you may access SkyPortal programmatically as follows.

Python

import requests

token = 'ea70a5f0-b321-43c6-96a1-b2de225e0339'

def api(method, endpoint, data=None):
    headers = {'Authorization': f'token {token}'}
    response = requests.request(method, endpoint, json=data, headers=headers)
    return response

response = api('GET', 'http://localhost:5000/api/sysinfo')

print(f'HTTP code: {response.status_code}, {response.reason}')
if response.status_code in (200, 400):
    print(f'JSON response: {response.json()}')

Command line (curl)

curl -s -H 'Authorization: token ea70a5f0-b321-43c6-96a1-b2de225e0339' http://localhost:5000/api/sysinfo

Request parameters

There are two ways to pass information along with a request: path and body parameters.

Path parameters

Path parameters (also called query or URL parameters) are embedded in the URL called. For example, you can specify numPerPage or pageNumber path parameters when calling /api/candidates as follows:

curl -s -H 'Authorization: token ea70a5f0-b321-43c6-96a1-b2de225e0339' \
     http://localhost:5000/api/candidates?numPerPage=100&pageNumber=1

When using Python's requests library, a dictionary of path parameters can be passed in via the params keyword argument:

token = 'ea70a5f0-b321-43c6-96a1-b2de225e0339'

response = requests.get(
    "http://localhost:5000/api/sources",
    params={"includeComments": True, "includeThumbnails": False},
    headers={'Authorization': f'token {token}'},
)

Body parameters

Request body parameters (or simply: the body of the request) contains data uploaded to a specific endpoint. These are the parameters listed under REQUEST BODY SCHEMA: application/json in the API docs.

When using Python's requests library, body parameters are specified using the json keyword argument:

token = "abc"
response = requests.post(
    "http://localhost:5000/api/sources",
    json={
        "id": "14gqr",
        "ra": 353.36647,
        "dec": 33.646149,
        "group_ids": [52, 97],
    },
    headers={"Authorization": f"token {token}"},
)

Response

In the above examples, the SkyPortal server is located at http://localhost:5000. In case of success, the HTTP response is 200:


HTTP code: 200, OK
JSON response: {'status': 'success', 'data': {}, 'version': '0.9.dev0+git20200819.84c453a'}

On failure, it is 400; the JSON response has status="error" with the reason for the failure given in message:

{
  "status": "error",
  "message": "Invalid API endpoint",
  "data": {},
  "version": "0.9.1"
}

Pagination

Several API endpoints (notably the sources and candidates APIs) enforce pagination to limit the number of records that can be fetched per request. These APIs expose parameters that facilitate pagination (see the various API docs for details). A sample pagination script is included here:

import requests
import time


base_url = "https://fritz.science/api/sources"
token = "your_token_id_here"
group_ids = [4, 71]  # If applicable
all_sources = []
num_per_page = 500
page = 1
total_matches = None
retry_attempts = 0
max_retry_attempts = 10

while retry_attempts <= max_retry_attempts:
    r = requests.get(
        f"{base_url}?group_ids={','.join([str(gid) for gid in group_ids])}&pageNumber={page}&numPerPage={num_per_page}&totalMatches={total_matches}",
        headers={"Authorization": f"token {token}"},
    )

    if r.status_code == 429:
        print("Request rate limit exceeded; sleeping 1s before trying again...")
        time.sleep(1)
        continue

    data = r.json()

    if data["status"] != "success":
        print(data)  # log as appropriate
        retry_attempts += 1
        time.sleep(5)
        continue
    else:
        retry_attempts = 0

    all_sources.extend(data["data"]["sources"])
    total_matches = data["data"]["totalMatches"]

    print(f"Fetched {len(all_sources)} of {total_matches} sources.")

    if len(all_sources) >= total_matches:
        break
    page += 1

Authentication

token

Header should be in the format 'token abcd-efgh-0000-1234'

Security Scheme Type API Key
Header parameter name: Authorization

allocations

Produce a report on allocations for an instrument

Produce a report on allocations for an instrument

path Parameters
instrument_id
required
integer
query Parameters
output_format
string

Output format for analysis. Can be png or pdf

Responses

200
400
get/api/allocation/report/instrument_id
https://fritz.science/api/allocation/report/instrument_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve an allocation

Retrieve an allocation

path Parameters
allocation_id
required
integer

Responses

200
400
get/api/allocation/allocation_id
https://fritz.science/api/allocation/allocation_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

Update an allocation on a robotic instrument

Update an allocation on a robotic instrument

path Parameters
allocation_id
required
integer
Request Body schema: application/json
requests
Array of any
default_observation_plans
Array of any
catalog_queries
Array of any
observation_plans
Array of any
group
any Nullable

The Group the allocation is associated with.

instrument
any Nullable

The Instrument the allocation is associated with.

pi
string Nullable

The PI of the allocation's proposal.

proposal_id
string Nullable

The ID of the proposal associated with this allocation.

start_date
string <date-time> Nullable

The UTC start date of the allocation.

end_date
string <date-time> Nullable

The UTC end date of the allocation.

hours_allocated
required
number

The number of hours allocated.

default_share_group_ids
any Nullable
group_id
required
integer

The ID of the Group the allocation is associated with.

instrument_id
required
integer

The ID of the Instrument the allocation is associated with.

_altdata
string Nullable

Responses

200
400
put/api/allocation/allocation_id
https://fritz.science/api/allocation/allocation_id

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "requests":
    [
    ],
  • "default_observation_plans":
    [
    ],
  • "catalog_queries":
    [
    ],
  • "observation_plans":
    [
    ],
  • "group": null,
  • "instrument": null,
  • "pi": "string",
  • "proposal_id": "string",
  • "start_date": "2022-11-25T18:45:43Z",
  • "end_date": "2022-11-25T18:45:43Z",
  • "hours_allocated": 0,
  • "default_share_group_ids": null,
  • "group_id": 0,
  • "instrument_id": 0,
  • "_altdata": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Delete allocation.

Delete allocation.

path Parameters
allocation_id
required
string

Responses

200
delete/api/allocation/allocation_id
https://fritz.science/api/allocation/allocation_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all allocations

Retrieve all allocations

query Parameters
instrument_id
number

Instrument ID to retrieve allocations for

Responses

200
400
get/api/allocation
https://fritz.science/api/allocation

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

Post new allocation on a robotic instrument

Post new allocation on a robotic instrument

Request Body schema: application/json
requests
Array of any
default_observation_plans
Array of any
catalog_queries
Array of any
observation_plans
Array of any
group
any Nullable

The Group the allocation is associated with.

instrument
any Nullable

The Instrument the allocation is associated with.

pi
string Nullable

The PI of the allocation's proposal.

proposal_id
string Nullable

The ID of the proposal associated with this allocation.

start_date
string <date-time> Nullable

The UTC start date of the allocation.

end_date
string <date-time> Nullable

The UTC end date of the allocation.

hours_allocated
required
number

The number of hours allocated.

default_share_group_ids
any Nullable
group_id
required
integer

The ID of the Group the allocation is associated with.

instrument_id
required
integer

The ID of the Instrument the allocation is associated with.

_altdata
string Nullable

Responses

200
post/api/allocation
https://fritz.science/api/allocation

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "requests":
    [
    ],
  • "default_observation_plans":
    [
    ],
  • "catalog_queries":
    [
    ],
  • "observation_plans":
    [
    ],
  • "group": null,
  • "instrument": null,
  • "pi": "string",
  • "proposal_id": "string",
  • "start_date": "2022-11-25T18:45:43Z",
  • "end_date": "2022-11-25T18:45:43Z",
  • "hours_allocated": 0,
  • "default_share_group_ids": null,
  • "group_id": 0,
  • "instrument_id": 0,
  • "_altdata": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Retrieve all observation analyses

Retrieve all observation analyses

query Parameters
gcnevent_id
number

GcnEvent ID to retrieve observation efficiency analyses for

Responses

200
400
get/api/survey_efficiency/observations
https://fritz.science/api/survey_efficiency/observations

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

Retrieve all observation plan efficiency analyses

Retrieve all observation plan efficiency analyses

query Parameters
observation_plan_id
number

EventObservationPlan ID to retrieve observation plan efficiency analyses for

Responses

200
400
get/api/survey_efficiency/observation_plan
https://fritz.science/api/survey_efficiency/observation_plan

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

analysis_services

Retrieve an Analysis Service by id

Retrieve an Analysis Service by id

path Parameters
analysis_service_id
required
integer

Responses

200
400
get/api/analysis_service/analysis_service_id
https://fritz.science/api/analysis_service/analysis_service_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

Delete an Analysis Service.

Delete an Analysis Service.

path Parameters
analysis_service_id
required
integer

Responses

200
delete/api/analysis_service/analysis_service_id
https://fritz.science/api/analysis_service/analysis_service_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all Analysis Services

Retrieve all Analysis Services

Responses

200
400
get/api/analysis_service
https://fritz.science/api/analysis_service

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

analysis

Retrieve an Analysis by id

Retrieve an Analysis by id

path Parameters
analysis_resource_type
required
string

What underlying data the analysis is on: must be "obj" (more to be added in the future)

analysis_id
required
int

ID of the analysis to return.

query Parameters
objID
string

Return any analysis on an object with ID objID

includeAnalysisData
boolean

Boolean indicating whether to include the data associated with the analysis in the response. Could be a large amount of data. Only works for single analysis requests. Defaults to false.

includeFilename
boolean

Boolean indicating whether to include the filename of the data associated with the analysis in the response. Defaults to false.

Responses

200
400
get/api/analysis_resource_type/analysis_id/analysis
https://fritz.science/api/analysis_resource_type/analysis_id/analysis

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

Delete an Analysis.

Delete an Analysis.

path Parameters
analysis_id
required
integer

Responses

200
delete/api/analysis_resource_type/analysis_id/analysis
https://fritz.science/api/analysis_resource_type/analysis_id/analysis

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all Analyses

Retrieve all Analyses

Responses

200
400
get/api/analysis_resource_type/analysis_id
https://fritz.science/api/analysis_resource_type/analysis_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

Begin an analysis run

Begin an analysis run

path Parameters
analysis_resource_type
required
string

What underlying data the analysis is on: must be "obj" (more to be added in the future)

resource_id
required
string

The ID of the underlying data. This would be a string for an object ID.

analysis_service_id
required
string

the analysis service id to be used

Request Body schema: application/json
show_parameters
boolean

Whether to render the parameters of this analysis

show_plots
boolean

Whether to render the plots of this analysis

show_corner
boolean

Whether to render the corner plots of this analysis

analysis_parameters
object

Dictionary of parameters to be passed thru to the analysis

group_ids
Array of integers

List of group IDs corresponding to which groups should be able to view analysis results. Defaults to all of requesting user's groups.

Responses

200
post/api/analysis_resource_type/resource_id/analysis/analysis_service_id
https://fritz.science/api/analysis_resource_type/resource_id/analysis/analysis_service_id

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "show_parameters": true,
  • "show_plots": true,
  • "show_corner": true,
  • "analysis_parameters":
    {
    },
  • "group_ids":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Retrieve an Analysis by id

Retrieve an Analysis by id

path Parameters
analysis_resource_type
required
string

What underlying data the analysis is on: must be "obj" (more to be added in the future)

analysis_id
required
int

ID of the analysis to return.

query Parameters
objID
string

Return any analysis on an object with ID objID

includeAnalysisData
boolean

Boolean indicating whether to include the data associated with the analysis in the response. Could be a large amount of data. Only works for single analysis requests. Defaults to false.

includeFilename
boolean

Boolean indicating whether to include the filename of the data associated with the analysis in the response. Defaults to false.

Responses

200
400
get/api/analysis_resource_type/analysis/analysis_id
https://fritz.science/api/analysis_resource_type/analysis/analysis_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

Delete an Analysis.

Delete an Analysis.

path Parameters
analysis_id
required
integer

Responses

200
delete/api/analysis_resource_type/analysis/analysis_id
https://fritz.science/api/analysis_resource_type/analysis/analysis_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all Analyses

Retrieve all Analyses

Responses

200
400
get/api/analysis_resource_type/analysis
https://fritz.science/api/analysis_resource_type/analysis

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

Begin an analysis run

Begin an analysis run

path Parameters
analysis_resource_type
required
string

What underlying data the analysis is on: must be "obj" (more to be added in the future)

resource_id
required
string

The ID of the underlying data. This would be a string for an object ID.

analysis_service_id
required
string

the analysis service id to be used

Request Body schema: application/json
show_parameters
boolean

Whether to render the parameters of this analysis

show_plots
boolean

Whether to render the plots of this analysis

show_corner
boolean

Whether to render the corner plots of this analysis

analysis_parameters
object

Dictionary of parameters to be passed thru to the analysis

group_ids
Array of integers

List of group IDs corresponding to which groups should be able to view analysis results. Defaults to all of requesting user's groups.

Responses

200
post/api/analysis_resource_type/analysis/resource_id
https://fritz.science/api/analysis_resource_type/analysis/resource_id

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "show_parameters": true,
  • "show_plots": true,
  • "show_corner": true,
  • "analysis_parameters":
    {
    },
  • "group_ids":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Retrieve primary data associated with an Analysis.

Retrieve primary data associated with an Analysis.

path Parameters
analysis_resource_type
required
string

What underlying data the analysis is on: must be "obj" (more to be added in the future)

analysis_id
required
integer
product_type
required
string

What type of data to retrieve: must be one of "corner", "results", or "plot"

plot_number
required
integer

if product_type == "plot", which plot number should be returned? Default to zero (first plot).

Request Body schema: application/json
download
bool

Download the results as a file

plot_kwargs
object

Extra parameters to pass to the plotting functions if new plots are to be generated (e.g. with corner plots)

Responses

200

Requested analysis file

400
get/api/analysis_resource_type/analysis/analysis_id/product_type/plot_number
https://fritz.science/api/analysis_resource_type/analysis/analysis_id/product_type/plot_number

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "download": null,
  • "plot_kwargs":
    {
    }
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data": { },
  • "status": "error",
  • "message": "string"
}

assignments

Retrieve an observing run assignment

Retrieve an observing run assignment

path Parameters
assignment_id
required
integer

Responses

200
400
get/api/assignment/assignment_id
https://fritz.science/api/assignment/assignment_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

Update an assignment

Update an assignment

path Parameters
assignment_id
required
integer
Request Body schema: application/json
requester
any Nullable

The User who created this assignment.

last_modified_by
any Nullable
obj
any Nullable

The assigned Obj.

spectra
Array of any
photometry
Array of any
photometric_series
Array of any
run
any Nullable

The ObservingRun this target was assigned to.

requester_id
required
integer

The ID of the User who created this assignment.

obj_id
required
string

ID of the assigned Obj.

comment
string Nullable

A comment on the assignment. Typically a justification for the request, or instructions for taking the data.

status
string

Status of the assignment [done, not done, pending].

priority
required
string <= 1 characters
Enum: "1" "2" "3" "4" "5"

Priority of the request (1 = lowest, 5 = highest).

run_id
required
integer

ID of the ObservingRun this target was assigned to.

Responses

200
400
put/api/assignment/assignment_id
https://fritz.science/api/assignment/assignment_id

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "requester": null,
  • "last_modified_by": null,
  • "obj": null,
  • "spectra":
    [
    ],
  • "photometry":
    [
    ],
  • "photometric_series":
    [
    ],
  • "run": null,
  • "requester_id": 0,
  • "obj_id": "string",
  • "comment": "string",
  • "status": "string",
  • "priority": "1",
  • "run_id": 0
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Delete assignment.

Delete assignment.

path Parameters
assignment_id
required
string

Responses

200
delete/api/assignment/assignment_id
https://fritz.science/api/assignment/assignment_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all observing run assignments

Retrieve all observing run assignments

Responses

200
400
get/api/assignment
https://fritz.science/api/assignment

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

Post new target assignment to observing run

Post new target assignment to observing run

Request Body schema: application/json
run_id
required
integer
priority
required
any
Enum: "1" "2" "3" "4" "5"

Priority of the request, (lowest = 1, highest = 5).

obj_id
required
string

The ID of the object to observe.

comment
string

An optional comment describing the request.

status
string

The status of the request

Responses

200
post/api/assignment
https://fritz.science/api/assignment

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "run_id": 0,
  • "priority": "1",
  • "obj_id": "string",
  • "comment": "string",
  • "status": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

candidates

Retrieve a candidate

Retrieve a candidate

path Parameters
obj_id
required
string
query Parameters
includeComments
boolean

Boolean indicating whether to include associated comments. Defaults to false.

includeAlerts
boolean

Boolean indicating whether to include associated alerts. Defaults to false.

Responses

200
400
get/api/candidates/obj_id
https://fritz.science/api/candidates/obj_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

Check if a Candidate exists

Check if a Candidate exists

path Parameters
obj_id
required
string

Responses

200
404
head/api/candidates/obj_id
https://fritz.science/api/candidates/obj_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Delete candidate(s)

Delete candidate(s)

path Parameters
obj_id
required
string
filter_id
required
integer

Responses

200
delete/api/candidates/obj_id
https://fritz.science/api/candidates/obj_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all candidates

Retrieve all candidates

query Parameters
numPerPage
integer

Number of candidates to return per paginated request. Defaults to 25. Capped at 500.

pageNumber
integer

Page number for paginated query results. Defaults to 1

totalMatches
integer

Used only in the case of paginating query results - if provided, this allows for avoiding a potentially expensive query.count() call.

savedStatus
string
Enum: "all" "savedToAllSelected" "savedToAnySelected" "savedToAnyAccessible" "notSavedToAnyAccessible" "notSavedToAnySelected" "notSavedToAllSelected"

String indicating the saved status to filter candidate results for. Must be one of the enumerated values.

startDate
string

Arrow-parseable date string (e.g. 2020-01-01). If provided, filter by Candidate.passed_at >= startDate

endDate
string

Arrow-parseable date string (e.g. 2020-01-01). If provided, filter by Candidate.passed_at <= endDate

groupIDs
Array of integers

Comma-separated string of group IDs (e.g. "1,2"). Defaults to all of user's groups if filterIDs is not provided.

filterIDs
Array of integers

Comma-separated string of filter IDs (e.g. "1,2"). Defaults to all of user's groups' filters if groupIDs is not provided.

annotationExcludeOrigin
string

Only load objects that do not have annotations from this origin. If the annotationsExcludeOutdatedDate is also given, then annotations with this origin will still be loaded if they were modified before that date.

annotationExcludeOutdatedDate
string

An Arrow parseable string designating when an existing annotation is outdated. Only relevant if giving the annotationExcludeOrigin argument. Will treat objects with outdated annotations as if they did not have that annotation, so it will load an object if it doesn't have an annotation with the origin specified or if it does have it but the annotation modified date < annotationsExcludeOutdatedDate

sortByAnnotationOrigin
string

The origin of the Annotation to sort by

sortByAnnotationKey
string

The key of the Annotation data value to sort by

sortByAnnotationOrder
string

The sort order for annotations - either "asc" or "desc". Defaults to "asc".

annotationFilterList
Array of strings

Comma-separated string of JSON objects representing annotation filters. Filter objects are expected to have keys { origin, key, value } for non-numeric value types, or { origin, key, min, max } for numeric values.

includePhotometry
boolean

Boolean indicating whether to include associated photometry. Defaults to false.

includeSpectra
boolean

Boolean indicating whether to include associated spectra. Defaults to false.

includeComments
boolean

Boolean indicating whether to include associated comments. Defaults to false.

classifications
Array of strings

Comma-separated string of classification(s) to filter for candidates matching that/those classification(s).

minRedshift
number

If provided, return only candidates with a redshift of at least this value

maxRedshift
number

If provided, return only candidates with a redshift of at most this value

listName
string

Get only candidates saved to the querying user's list, e.g., "favorites".

listNameReject
string

Get only candidates that ARE NOT saved to the querying user's list, e.g., "rejected_candidates".

Responses

200
400
get/api/candidates
https://fritz.science/api/candidates

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Create new candidate(s) (one per filter).

Create new candidate(s) (one per filter).

Request Body schema: application/json
comments
Array of any
reminders
Array of any
comments_on_spectra
Array of any
reminders_on_spectra
Array of any
annotations
Array of any
annotations_on_spectra
Array of any
classifications
Array of any
photometry
Array of any
photstats
Array of any
photometric_series
Array of any
spectra
Array of any
thumbnails
Array of any
followup_requests
Array of any
assignments
Array of any
obj_notifications
Array of any
obj_analyses
Array of any
sources_in_gcns
Array of any
ra
number Nullable
dec
number Nullable
id
required
string

Name of the object.

ra_dis
number Nullable

J2000 Right Ascension at discovery time [deg].

dec_dis
number Nullable

J2000 Declination at discovery time [deg].

ra_err
number Nullable

Error on J2000 Right Ascension at discovery time [deg].

dec_err
number Nullable

Error on J2000 Declination at discovery time [deg].

offset
number Nullable

Offset from nearest static object [arcsec].

redshift
number Nullable

Redshift.

redshift_error
number Nullable

Redshift error.

redshift_origin
string Nullable

Redshift source.

altdata
any Nullable

Misc. alternative metadata stored in JSON format, e.g. {'gaia': {'info': {'Teff': 5780}}}

dist_nearest_source
number Nullable

Distance to the nearest Obj [arcsec].

mag_nearest_source
number Nullable

Magnitude of the nearest Obj [AB].

e_mag_nearest_source
number Nullable

Error on magnitude of the nearest Obj [mag].

transient
boolean Nullable

Boolean indicating whether the object is an astrophysical transient.

varstar
boolean Nullable

Boolean indicating whether the object is a variable star.

is_roid
boolean Nullable

Boolean indicating whether the object is a moving object.

score
number Nullable

Machine learning score.

origin
string Nullable

Origin of the object.

alias
any Nullable

Alternative names for this object.

healpix
integer Nullable
detect_photometry_count
integer Nullable

How many times the object was detected above :math:S/N = phot_detection_threshold (3.0 by default).

candidates
Array of any
sources
Array of any
users
Array of any
filter_ids
required
Array of integers

List of associated filter IDs

passing_alert_id
integer Nullable

ID of associated filter that created candidate

passed_at
required
string Nullable

Arrow-parseable datetime string indicating when passed filter.

Responses

200
post/api/candidates
https://fritz.science/api/candidates

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "comments":
    [
    ],
  • "reminders":
    [
    ],
  • "comments_on_spectra":
    [
    ],
  • "reminders_on_spectra":
    [
    ],
  • "annotations":
    [
    ],
  • "annotations_on_spectra":
    [
    ],
  • "classifications":
    [
    ],
  • "photometry":
    [
    ],
  • "photstats":
    [
    ],
  • "photometric_series":
    [
    ],
  • "spectra":
    [
    ],
  • "thumbnails":
    [
    ],
  • "followup_requests":
    [
    ],
  • "assignments":
    [
    ],
  • "obj_notifications":
    [
    ],
  • "obj_analyses":
    [
    ],
  • "sources_in_gcns":
    [
    ],
  • "ra": 0,
  • "dec": 0,
  • "id": "string",
  • "ra_dis": 0,
  • "dec_dis": 0,
  • "ra_err": 0,
  • "dec_err": 0,
  • "offset": 0,
  • "redshift": 0,
  • "redshift_error": 0,
  • "redshift_origin": "string",
  • "altdata": null,
  • "dist_nearest_source": 0,
  • "mag_nearest_source": 0,
  • "e_mag_nearest_source": 0,
  • "transient": true,
  • "varstar": true,
  • "is_roid": true,
  • "score": 0,
  • "origin": "string",
  • "alias": null,
  • "healpix": 0,
  • "detect_photometry_count": 0,
  • "candidates":
    [
    ],
  • "sources":
    [
    ],
  • "users":
    [
    ],
  • "filter_ids":
    [
    ],
  • "passing_alert_id": 0,
  • "passed_at": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Create new candidate(s) (one per filter).

Create new candidate(s) (one per filter).

Request Body schema: application/json
comments
Array of any
reminders
Array of any
comments_on_spectra
Array of any
reminders_on_spectra
Array of any
annotations
Array of any
annotations_on_spectra
Array of any
classifications
Array of any
photometry
Array of any
photstats
Array of any
photometric_series
Array of any
spectra
Array of any
thumbnails
Array of any
followup_requests
Array of any
assignments
Array of any
obj_notifications
Array of any
obj_analyses
Array of any
sources_in_gcns
Array of any
ra
number Nullable
dec
number Nullable
id
required
string

Name of the object.

ra_dis
number Nullable

J2000 Right Ascension at discovery time [deg].

dec_dis
number Nullable

J2000 Declination at discovery time [deg].

ra_err
number Nullable

Error on J2000 Right Ascension at discovery time [deg].

dec_err
number Nullable

Error on J2000 Declination at discovery time [deg].

offset
number Nullable

Offset from nearest static object [arcsec].

redshift
number Nullable

Redshift.

redshift_error
number Nullable

Redshift error.

redshift_origin
string Nullable

Redshift source.

altdata
any Nullable

Misc. alternative metadata stored in JSON format, e.g. {'gaia': {'info': {'Teff': 5780}}}

dist_nearest_source
number Nullable

Distance to the nearest Obj [arcsec].

mag_nearest_source
number Nullable

Magnitude of the nearest Obj [AB].

e_mag_nearest_source
number Nullable

Error on magnitude of the nearest Obj [mag].

transient
boolean Nullable

Boolean indicating whether the object is an astrophysical transient.

varstar
boolean Nullable

Boolean indicating whether the object is a variable star.

is_roid
boolean Nullable

Boolean indicating whether the object is a moving object.

score
number Nullable

Machine learning score.

origin
string Nullable

Origin of the object.

alias
any Nullable

Alternative names for this object.

healpix
integer Nullable
detect_photometry_count
integer Nullable

How many times the object was detected above :math:S/N = phot_detection_threshold (3.0 by default).

candidates
Array of any
sources
Array of any
users
Array of any
filter_ids
required
Array of integers

List of associated filter IDs

passing_alert_id
integer Nullable

ID of associated filter that created candidate

passed_at
required
string Nullable

Arrow-parseable datetime string indicating when passed filter.

Responses

200
post/api/candidates/
https://fritz.science/api/candidates/

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "comments":
    [
    ],
  • "reminders":
    [
    ],
  • "comments_on_spectra":
    [
    ],
  • "reminders_on_spectra":
    [
    ],
  • "annotations":
    [
    ],
  • "annotations_on_spectra":
    [
    ],
  • "classifications":
    [
    ],
  • "photometry":
    [
    ],
  • "photstats":
    [
    ],
  • "photometric_series":
    [
    ],
  • "spectra":
    [
    ],
  • "thumbnails":
    [
    ],
  • "followup_requests":
    [
    ],
  • "assignments":
    [
    ],
  • "obj_notifications":
    [
    ],
  • "obj_analyses":
    [
    ],
  • "sources_in_gcns":
    [
    ],
  • "ra": 0,
  • "dec": 0,
  • "id": "string",
  • "ra_dis": 0,
  • "dec_dis": 0,
  • "ra_err": 0,
  • "dec_err": 0,
  • "offset": 0,
  • "redshift": 0,
  • "redshift_error": 0,
  • "redshift_origin": "string",
  • "altdata": null,
  • "dist_nearest_source": 0,
  • "mag_nearest_source": 0,
  • "e_mag_nearest_source": 0,
  • "transient": true,
  • "varstar": true,
  • "is_roid": true,
  • "score": 0,
  • "origin": "string",
  • "alias": null,
  • "healpix": 0,
  • "detect_photometry_count": 0,
  • "candidates":
    [
    ],
  • "sources":
    [
    ],
  • "users":
    [
    ],
  • "filter_ids":
    [
    ],
  • "passing_alert_id": 0,
  • "passed_at": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Delete candidate(s)

Delete candidate(s)

path Parameters
obj_id
required
string
filter_id
required
integer

Responses

200
delete/api/candidates/obj_id/filter_id
https://fritz.science/api/candidates/obj_id/filter_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Get Swift LSXPS objects and post them as sources.

Get Swift LSXPS objects and post them as sources. Repeated posting will skip the existing source.

Request Body schema: application/json
telescope_name
integer

Name of telescope to assign this catalog to. Use the same name as your nickname for the Neil Gehrels Swift Observatory. Defaults to Swift.

Responses

200
400
post/api/catalogs/swift_lsxps
https://fritz.science/api/catalogs/swift_lsxps

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "telescope_name": 0
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Get Gaia Photometric Alert objects and post them a

Get Gaia Photometric Alert objects and post them as sources. Repeated posting will skip the existing source.

Request Body schema: application/json
telescope_name
string

Name of telescope to assign this catalog to. Use the same name as your nickname for Gaia. Defaults to Gaia.

startDate
str

Arrow parsable string. Filter by start date.

endDate
str

Arrow parsable string. Filter by end date.

Responses

200
400
post/api/catalogs/gaia_alerts
https://fritz.science/api/catalogs/gaia_alerts

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "telescope_name": "string",
  • "startDate": null,
  • "endDate": null
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

<no summary>

Responses

200
400
get/api/earthquake/event_id
https://fritz.science/api/earthquake/event_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

<no summary>

Responses

200
400
get/api/gcn_event/dateobs
https://fritz.science/api/gcn_event/dateobs

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "localizations":
    [
    ],
  • "lightcurve": "string",
  • "tags":
    [
    ],
  • "dateobs": null,
  • "notices":
    [
    ]
}

get Gaia parallax and magnitudes and post them as

get Gaia parallax and magnitudes and post them as an annotation, based on cross-match to the Gaia DR3.

path Parameters
obj_id
required
string

ID of the object to retrieve Gaia colors for

Request Body schema: application/json
catalog
string

The name of the catalog key, associated with a catalog cross match, from which the data should be retrieved. Default is "gaiadr3.gaia_source".

crossmatchRadius
number

Crossmatch radius (in arcseconds) to retrieve Gaia sources If not specified (or None) will use the default from the config file, or 2 arcsec if not specified in the config.

crossmatchLimmag
number

Crossmatch limiting magnitude (for Gaia G mag). Will ignore sources fainter than this magnitude. If not specified, will use the default value in the config file, or None if not specified in the config. If value is cast to False (0, False or None), will take sources of any magnitude.

group_ids
Array of integers

List of group IDs corresponding to which groups should be able to view annotation. Defaults to all of requesting user's groups.

Responses

200
400
post/api/sources/obj_id/annotations/gaia
https://fritz.science/api/sources/obj_id/annotations/gaia

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "catalog": "string",
  • "crossmatchRadius": 0,
  • "crossmatchLimmag": 0,
  • "group_ids":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

get WISE colors and post them as an annotation bas

get WISE colors and post them as an annotation based on cross-matches to some catalog (default is allwise_p3as_psd).

path Parameters
obj_id
required
string

ID of the object to retrieve WISE colors for

Request Body schema: application/json
catalog
string

The name of the catalog key, associated with a catalog cross match, from which the data should be retrieved. Default is allwise_p3as_psd.

crossmatchRadius
number

Crossmatch radius (in arcseconds) to retrieve photoz's Default is 2.

group_ids
Array of integers

List of group IDs corresponding to which groups should be able to view annotation. Defaults to all of requesting user's groups.

Responses

200
400
post/api/sources/obj_id/annotations/irsa
https://fritz.science/api/sources/obj_id/annotations/irsa

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "catalog": "string",
  • "crossmatchRadius": 0,
  • "group_ids":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

get cross-match with Vizier and post them as an an

get cross-match with Vizier and post them as an annotation based on cross-matches to some catalog (default is VII/290, i.e. the million quasar catalog).

path Parameters
obj_id
required
string

ID of the object to retrieve the Vizier crossmatch for

Request Body schema: application/json
catalog
string

The name of the catalog key, associated with a catalog cross match, from which the data should be retrieved. Default is VII/290.

crossmatchRadius
number

Crossmatch radius (in arcseconds) to retrieve photoz's Default is 2.

group_ids
Array of integers

List of group IDs corresponding to which groups should be able to view annotation. Defaults to all of requesting user's groups.

Responses

200
400
post/api/sources/obj_id/annotations/vizier
https://fritz.science/api/sources/obj_id/annotations/vizier

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "catalog": "string",
  • "crossmatchRadius": 0,
  • "group_ids":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Generate a PDF/PNG finding chart for a position or

Generate a PDF/PNG finding chart for a position or Gaia ID

query Parameters
location_type
required
string
Enum: "gaia_dr3" "gaia_dr2" "pos"

What is the type of the search? From gaia or by position? If pos then ra and dec should be given. If otherwise, the catalog is queried for id catalog_id and the position information is pulled from there.

catalog_id
string
ra
float [ 0 .. 360 )

RA of the source of interest at the time of observation of interest (ie. the user is responsible for proper motion calulations).

dec
float [ -90 .. 90 ]

DEC of the source of interest at the time of observation of interest (ie. the user is responsible for proper motion calulations).

imsize
float [ 2 .. 15 ]

Image size in arcmin (square). Defaults to 4.0

facility
string
Enum: "Keck" "Shane" "P200"

What type of starlist should be used? Defaults to Keck

image_source
string
Enum: "ps1" "desi" "dss" "ztfref"

Source of the image used in the finding chart. Defaults to ps1

use_ztfref
boolean

Use ZTFref catalog for offset star positions, otherwise DR3. Defaults to True.

obstime
string

datetime of observation in isoformat (e.g. 2020-12-30T12:34:10). Defaults to now.

type
string
Enum: "png" "pdf"

Output datafile type. Defaults to pdf.

num_offset_stars
integer [ 0 .. 4 ]

Number of offset stars to determine and show [0,4] (default: 3)

Responses

200

A PDF/PNG finding chart file

400
get/api/unsourced_finder
https://fritz.science/api/unsourced_finder

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data": { },
  • "status": "error",
  • "message": "string"
}

catalog_queries

Submit catalog queries

Submit catalog queries

Request Body schema: application/json
payload
any

Content of the catalog query request.

target_group_ids
Array of integers

IDs of groups to share the results of the observation plan request with.

status
string
Default: "pending submission"

The status of the request.

allocation_id
required
integer

Catalog query request allocation ID.

Responses

200
400
post/api/catalog_queries
https://fritz.science/api/catalog_queries

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "payload": null,
  • "target_group_ids":
    [
    ],
  • "status": "pending submission",
  • "allocation_id": 0
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

source

find the sources with classifications

find the sources with classifications

query Parameters
startDate
string

Arrow-parseable date string (e.g. 2020-01-01) for when the classification was made. If provided, filter by created_at >= startDate

endDate
string

Arrow-parseable date string (e.g. 2020-01-01) for when the classification was made. If provided, filter by created_at <= endDate

Responses

200
400
get/api/classification/sources
https://fritz.science/api/classification/sources

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    [
    ]
}

find the number of sources with and without a Heal

find the number of sources with and without a Healpix value

Responses

200
400
get/api/healpix
https://fritz.science/api/healpix

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

classifications

Retrieve a classification

Retrieve a classification

path Parameters
classification_id
required
integer

Responses

200
400
get/api/classification/classification_id
https://fritz.science/api/classification/classification_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

Update a classification

Update a classification

path Parameters
classification
required
integer
Request Body schema: application/json
taxonomy
any Nullable

Taxonomy in which this Classification was made.

author
any Nullable

The User that made this classification.

obj
any Nullable

The Classification's Obj.

groups
Array of any
classification
required
string

The assigned class.

taxonomy_id
required
integer

ID of the Taxonomy in which this Classification was made.

probability
number Nullable

User-assigned probability of belonging to this class

author_id
required
integer

ID of the User that made this Classification

author_name
required
string

User.username or Token.id of the Classification's author.

obj_id
required
string

ID of the Classification's Obj.

group_ids
Array of integers

List of group IDs corresponding to which groups should be able to view classification.

Responses

200
400
put/api/classification/classification_id
https://fritz.science/api/classification/classification_id

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "taxonomy": null,
  • "author": null,
  • "obj": null,
  • "groups":
    [
    ],
  • "classification": "string",
  • "taxonomy_id": 0,
  • "probability": 0,
  • "author_id": 0,
  • "author_name": "string",
  • "obj_id": "string",
  • "group_ids":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Delete a classification

Delete a classification

path Parameters
classification_id
required
integer

Responses

200
delete/api/classification/classification_id
https://fritz.science/api/classification/classification_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all classifications

Retrieve all classifications

query Parameters
startDate
string

Arrow-parseable date string (e.g. 2020-01-01). If provided, filter by created_at >= startDate

endDate
string

Arrow-parseable date string (e.g. 2020-01-01). If provided, filter by created_at <= endDate

numPerPage
integer

Number of sources to return per paginated request. Defaults to 100. Max 500.

pageNumber
integer

Page number for paginated query results. Defaults to 1

Responses

200
400
get/api/classification
https://fritz.science/api/classification

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Post a classification

Post a classification

Request Body schema: application/json
obj_id
required
string
classification
required
string
taxonomy_id
required
integer
probability
float [ 0 .. 1 ] Nullable

User-assigned probability of this classification on this taxonomy. If multiple classifications are given for the same source by the same user, the sum of the classifications ought to equal unity. Only individual probabilities are checked.

group_ids
Array of integers

List of group IDs corresponding to which groups should be able to view classification. Defaults to all of requesting user's groups.

Responses

200
post/api/classification
https://fritz.science/api/classification

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "obj_id": "string",
  • "classification": "string",
  • "taxonomy_id": 0,
  • "probability": null,
  • "group_ids":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Retrieve an object's classifications

Retrieve an object's classifications

path Parameters
obj_id
required
string

Responses

200
400
get/api/sources/obj_id/classifications
https://fritz.science/api/sources/obj_id/classifications

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

system_info

Retrieve enum types in the DB

Retrieve enum types in the DB

Responses

200
get/api/enum_types
https://fritz.science/api/enum_types

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Retrieve basic DB statistics

Retrieve basic DB statistics

Responses

200
get/api/db_stats
https://fritz.science/api/db_stats

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Retrieve system/deployment info

Retrieve system/deployment info

Responses

200
get/api/sysinfo
https://fritz.science/api/sysinfo

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

default_observation_plans

Retrieve a single default observation plan

Retrieve a single default observation plan

path Parameters
default_observation_plan_id
required
integer

Responses

200
400
get/api/default_observation_plan/default_observation_plan_id
https://fritz.science/api/default_observation_plan/default_observation_plan_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

filters

Delete a default observation plan

Delete a default observation plan

path Parameters
default_observation_plan_id
required
integer

Responses

200
delete/api/default_observation_plan/default_observation_plan_id
https://fritz.science/api/default_observation_plan/default_observation_plan_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all default observation plans

Retrieve all default observation plans

Responses

200
400
get/api/default_observation_plan
https://fritz.science/api/default_observation_plan

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

Delete a default survey efficiency

Delete a default survey efficiency

path Parameters
default_survey_efficiency_id
required
integer

Responses

200
delete/api/default_survey_efficiency/default_survey_efficiency_id
https://fritz.science/api/default_survey_efficiency/default_survey_efficiency_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all default survey efficiencies

Retrieve all default survey efficiencies

Responses

200
400
get/api/default_survey_efficiency
https://fritz.science/api/default_survey_efficiency

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

Retrieve a filter

Retrieve a filter

path Parameters
filter_id
required
integer

Responses

200
400
get/api/filters/filter_id
https://fritz.science/api/filters/filter_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

Delete a filter

Delete a filter

path Parameters
filter_id
required
integer

Responses

200
delete/api/filters/filter_id
https://fritz.science/api/filters/filter_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Update filter name

Update filter name

path Parameters
filter_id
required
integer
Request Body schema: application/json
stream
any Nullable

The Filter's Stream.

group
any Nullable

The Filter's Group.

candidates
Array of any
name
required
string

Filter name.

stream_id
required
integer

ID of the Filter's Stream.

group_id
required
integer

ID of the Filter's Group.

Responses

200
400
patch/api/filters/filter_id
https://fritz.science/api/filters/filter_id

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "stream": null,
  • "group": null,
  • "candidates":
    [
    ],
  • "name": "string",
  • "stream_id": 0,
  • "group_id": 0
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all filters

Retrieve all filters

Responses

200
400
get/api/filters
https://fritz.science/api/filters

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

POST a new filter.

POST a new filter.

Request Body schema: application/json
stream
any Nullable

The Filter's Stream.

group
any Nullable

The Filter's Group.

candidates
Array of any
name
required
string

Filter name.

stream_id
required
integer

ID of the Filter's Stream.

group_id
required
integer

ID of the Filter's Group.

Responses

200
post/api/filters
https://fritz.science/api/filters

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "stream": null,
  • "group": null,
  • "candidates":
    [
    ],
  • "name": "string",
  • "stream_id": 0,
  • "group_id": 0
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Retrieve a filter as stored on Kowalski

Retrieve a filter as stored on Kowalski

path Parameters
filter_id
required
integer

Responses

200
400
get/api/filters/filter_id/v
https://fritz.science/api/filters/filter_id/v

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data": { }
}

POST a new filter version.

POST a new filter version.

Request Body schema: application/json
stream
any Nullable

The Filter's Stream.

group
any Nullable

The Filter's Group.

candidates
Array of any
name
required
string

Filter name.

stream_id
required
integer

ID of the Filter's Stream.

group_id
required
integer

ID of the Filter's Group.

Responses

200
post/api/filters/filter_id/v
https://fritz.science/api/filters/filter_id/v

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "stream": null,
  • "group": null,
  • "candidates":
    [
    ],
  • "name": "string",
  • "stream_id": 0,
  • "group_id": 0
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Delete a filter on Kowalski

Delete a filter on Kowalski

path Parameters
filter_id
required
integer

Responses

200
delete/api/filters/filter_id/v
https://fritz.science/api/filters/filter_id/v

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Update a filter on Kowalski

Update a filter on Kowalski

path Parameters
filter_id
required
integer
Request Body schema: application/json
filter_id
required
integer >= 1

[fritz] science program filter id for this user group id

active
boolean

activate or deactivate filter

active_fid
string 6 characters

set fid as active version

autosave
boolean

automatically save passing candidates to filter's group

update_annotations
boolean

update annotations for existing candidates

Responses

200
400
patch/api/filters/filter_id/v
https://fritz.science/api/filters/filter_id/v

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "filter_id": 1,
  • "active": true,
  • "active_fid": "string",
  • "autosave": true,
  • "update_annotations": true
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

default_observation_plan

Create default observation plan requests.

Create default observation plan requests.

Request Body schema: application/json
payload
any

Content of the default observation plan request.

target_group_ids
Array of integers

IDs of groups to share the results of the default observation plan request with.

allocation_id
required
integer

Observation plan request allocation ID.

Responses

200
post/api/default_observation_plan
https://fritz.science/api/default_observation_plan

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "payload": null,
  • "target_group_ids":
    [
    ],
  • "allocation_id": 0
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

default_survey_efficiencys

Retrieve a single default survey efficiency

Retrieve a single default survey efficiency

path Parameters
default_survey_efficiency_id
required
integer

Responses

200
400
get/api/default_survey_efficiency/default_survey_efficiency_id
https://fritz.science/api/default_survey_efficiency/default_survey_efficiency_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

default_survey_efficiency

Create default survey efficiency requests.

Create default survey efficiency requests.

Request Body schema: application/json
payload
any

Content of the default survey efficiency analysis.

default_observationplan_request_id
required
integer

Default observation plan request ID.

Responses

200
post/api/default_survey_efficiency
https://fritz.science/api/default_survey_efficiency

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "payload": null,
  • "default_observationplan_request_id": 0
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

facility

Post a message from a remote facility

Post a message from a remote facility

Request Body schema: application/json
One of
  • SEDMListener
new_status
required
string
followup_request_id
required
integer

Responses

200
400
post/api/facility
https://fritz.science/api/facility

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "new_status": "string",
  • "followup_request_id": 0
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

followup_requests

Retrieve followup requests schedule

Retrieve followup requests schedule

query Parameters
sourceID
string

Portion of ID to filter on

startDate
string

Arrow-parseable date string (e.g. 2020-01-01). If provided, filter by created_at >= startDate

endDate
string

Arrow-parseable date string (e.g. 2020-01-01). If provided, filter by created_at <= endDate

status
string

String to match status of request against

observationStartDate
string

Arrow-parseable date string (e.g. 2020-01-01). If provided, start time of observation window, otherwise now.

observationEndDate
string

Arrow-parseable date string (e.g. 2020-01-01). If provided, end time of observation window, otherwise 12 hours from now.

output_format
string

Output format for schedule. Can be png, pdf, or csv

Responses

200

A PDF/PNG schedule file

400
get/api/followup_request/schedule/instrument_id
https://fritz.science/api/followup_request/schedule/instrument_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data": { },
  • "status": "error",
  • "message": "string"
}

Reprioritize followup requests schedule automatica

Reprioritize followup requests schedule automatically based on either magnitude or location within skymap.

Responses

200
400
put/api/followup_request/prioritization
https://fritz.science/api/followup_request/prioritization

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Update a follow-up request

Update a follow-up request

path Parameters
request_id
required
string
Request Body schema: application/json
allocation_id
required
integer

Followup request allocation ID.

obj_id
required
string

ID of the target Obj.

payload
any

Content of the followup request.

target_group_ids
Array of integers

IDs of groups to share the results of the followup request with.

status
string
Default: "pending submission"

The status of the request.

Responses

200
400
put/api/followup_request/request_id
https://fritz.science/api/followup_request/request_id

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "allocation_id": 0,
  • "obj_id": "string",
  • "payload": null,
  • "target_group_ids":
    [
    ],
  • "status": "pending submission"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Delete follow-up request.

Delete follow-up request.

path Parameters
request_id
required
string

Responses

200
delete/api/followup_request/request_id
https://fritz.science/api/followup_request/request_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Submit follow-up request.

Submit follow-up request.

Request Body schema: application/json
allocation_id
required
integer

Followup request allocation ID.

obj_id
required
string

ID of the target Obj.

payload
any

Content of the followup request.

target_group_ids
Array of integers

IDs of groups to share the results of the followup request with.

status
string
Default: "pending submission"

The status of the request.

Responses

200
post/api/followup_request
https://fritz.science/api/followup_request

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "allocation_id": 0,
  • "obj_id": "string",
  • "payload": null,
  • "target_group_ids":
    [
    ],
  • "status": "pending submission"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

Get photometry request.

Get photometry request.

path Parameters
request_id
required
string

Responses

200
get/api/photometry_request/request_id
https://fritz.science/api/photometry_request/request_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

galaxys

Upload galaxies from GLADE+ catalog. If no file_na

Upload galaxies from GLADE+ catalog. If no file_name or file_url is provided, will look for the GLADE+ catalog in the data directory. If it can't be found, it will download it.

Request Body schema: application/json
file_name
string

Name of the file containing the galaxies (in the data directory)

file_url
string

URL of the file containing the galaxies

Responses

200
400
post/api/galaxy_catalog/glade
https://fritz.science/api/galaxy_catalog/glade

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "file_name": "string",
  • "file_url": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Upload galaxies from ASCII file

Upload galaxies from ASCII file

Request Body schema: application/json
catalogData
any

Catalog data Ascii string

catalogName
string

Galaxy catalog name.

Responses

200
400
post/api/galaxy_catalog/ascii
https://fritz.science/api/galaxy_catalog/ascii

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "catalogData": null,
  • "catalogName": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

galaxies

Retrieve all galaxies

Retrieve all galaxies

query Parameters
catalog_name
string

Filter by catalog name (exact match)

minDistance
number

If provided, return only galaxies with a distance of at least this value

maxDistance
number

If provided, return only galaxies with a distance of at most this value

minRedshift
number

If provided, return only galaxies with a redshift of at least this value

maxRedshift
number

If provided, return only galaxies with a redshift of at most this value

localizationDateobs
string

Event time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.sss).

localizationName
string

Name of localization / skymap to use. Can be found in Localization.localization_name queried from /api/localization endopoint or skymap name in GcnEvent page table.

localizationCumprob
number

Cumulative probability up to which to include galaxies

includeGeoJSON
boolean

Boolean indicating whether to include associated GeoJSON. Defaults to false.

numPerPage
integer

Number of galaxies to return per paginated request. Defaults to 100. Can be no larger than {MAX_OBSERVATIONS}.

pageNumber
integer

Page number for paginated query results. Defaults to 1

catalogNamesOnly
boolean

Boolean indicating whether to just return catalog names. Defaults to false.

Responses

200
400
get/api/galaxy_catalog/catalog_name
https://fritz.science/api/galaxy_catalog/catalog_name

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

Ingest a Galaxy catalog

Ingest a Galaxy catalog

Request Body schema: application/json
catalog_data
Array of any

Galaxy catalog data

catalog_name
string

Galaxy catalog name.

Responses

200
400
post/api/galaxy_catalog
https://fritz.science/api/galaxy_catalog

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "catalog_data":
    [
    ],
  • "catalog_name": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

instruments

Delete a galaxy catalog

Delete a galaxy catalog

path Parameters
catalog_name
required
str

Responses

200
400
delete/api/galaxy_catalog/catalog_name
https://fritz.science/api/galaxy_catalog/catalog_name

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve an instrument

Retrieve an instrument

path Parameters
instrument_id
required
integer
query Parameters
includeGeoJSON
boolean

Boolean indicating whether to include associated GeoJSON. Defaults to false.

includeGeoJSONSummary
boolean

Boolean indicating whether to include associated GeoJSON summary bounding box. Defaults to false.

includeRegion
boolean

Boolean indicating whether to include associated DS9 region. Defaults to false.

localizationDateobs
string

Include fields within a given localization. Event time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.sss). Each localization is associated with a specific GCNEvent by the date the event happened, and this date is used as a unique identifier. It can be therefore found as Localization.dateobs, queried from the /api/localization endpoint or dateobs in the GcnEvent page table.

localizationName
string

Name of localization / skymap to use. Can be found in Localization.localization_name queried from /api/localization endpoint or skymap name in GcnEvent page table.

localizationCumprob
number

Cumulative probability up to which to include fields. Defaults to 0.95.

Responses

200
400
get/api/instrument/instrument_id
https://fritz.science/api/instrument/instrument_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

Update instrument

Update instrument

path Parameters
instrument_id
required
integer
Request Body schema: application/json
telescope
any Nullable

The Telescope that hosts the Instrument.

photometry
Array of any
photometric_series
Array of any
spectra
Array of any
allocations
Array of any
observing_runs
Array of any
observations
Array of any
queued_observations
Array of any
region
string Nullable

Instrument astropy.regions representation.

fields
Array of any
tiles
Array of any
plans
Array of any
name
required
string

Instrument name.

type
required
string <= 20 characters
Enum: "imager" "spectrograph" "imaging spectrograph"

Instrument type, one of Imager, Spectrograph, or Imaging Spectrograph.

band
string Nullable

The spectral band covered by the instrument (e.g., Optical, IR).

telescope_id
required
integer

The ID of the Telescope that hosts the Instrument.

filters
Array of any

List of filters on the instrument (if any).

sensitivity_data
any Nullable

JSON describing the filters on the instrument and the filter's corresponding limiting magnitude and exposure time.

api_classname
string <= 13 characters Nullable
Enum: "ATLASAPI" "KAITAPI" "SEDMAPI" "SEDMV2API" "IOOAPI" "IOIAPI" "SPRATAPI" "SINISTROAPI" "SPECTRALAPI" "FLOYDSAPI" "MUSCATAPI" "NICERAPI" "MMAAPI" "PS1API" "SLACKAPI" "UVOTXRTAPI" "UVOTXRTMMAAPI" "ZTFAPI" "ZTFMMAAPI"

Name of the instrument's API class.

api_classname_obsplan
string <= 13 characters Nullable
Enum: "ATLASAPI" "KAITAPI" "SEDMAPI" "SEDMV2API" "IOOAPI" "IOIAPI" "SPRATAPI" "SINISTROAPI" "SPECTRALAPI" "FLOYDSAPI" "MUSCATAPI" "NICERAPI" "MMAAPI" "PS1API" "SLACKAPI" "UVOTXRTAPI" "UVOTXRTMMAAPI" "ZTFAPI" "ZTFMMAAPI"

Name of the instrument's ObservationPlan API class.

listener_classname
string <= 12 characters Nullable
Value: "SEDMListener"

Name of the instrument's listener class.

treasuremap_id
integer Nullable

treasuremap.space API ID for this instrument

tns_id
integer Nullable

TNS API ID for this instrument

Responses

200
400
put/api/instrument/instrument_id
https://fritz.science/api/instrument/instrument_id

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "telescope": null,
  • "photometry":
    [
    ],
  • "photometric_series":
    [
    ],
  • "spectra":
    [
    ],
  • "allocations":
    [
    ],
  • "observing_runs":
    [
    ],
  • "observations":
    [
    ],
  • "queued_observations":
    [
    ],
  • "region": "string",
  • "fields":
    [
    ],
  • "tiles":
    [
    ],
  • "plans":
    [
    ],
  • "name": "string",
  • "type": "imager",
  • "band": "string",
  • "telescope_id": 0,
  • "filters":
    [
    ],
  • "sensitivity_data": null,
  • "api_classname": "ATLASAPI",
  • "api_classname_obsplan": "ATLASAPI",
  • "listener_classname": "SEDMListener",
  • "treasuremap_id": 0,
  • "tns_id": 0
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Delete an instrument

Delete an instrument

path Parameters
instrument_id
required
integer

Responses

200
400
delete/api/instrument/instrument_id
https://fritz.science/api/instrument/instrument_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve all instruments

Retrieve all instruments

query Parameters
name
string

Filter by name (exact match)

includeGeoJSON
boolean

Boolean indicating whether to include associated GeoJSON. Defaults to false.

includeGeoJSONSummary
boolean

Boolean indicating whether to include associated GeoJSON summary bounding box. Defaults to false.

includeRegion
boolean

Boolean indicating whether to include associated DS9 region. Defaults to false.

localizationDateobs
string

Include fields within a given localization. Event time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.sss). Each localization is associated with a specific GCNEvent by the date the event happened, and this date is used as a unique identifier. It can be therefore found as Localization.dateobs, queried from the /api/localization endpoint or dateobs in the GcnEvent page table.

localizationName
string

Name of localization / skymap to use. Can be found in Localization.localization_name queried from /api/localization endpoint or skymap name in GcnEvent page table.

localizationCumprob
number

Cumulative probability up to which to include fields. Defaults to 0.95.

airmassTime
string

Time to use for airmass calculation in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.sss). Defaults to localizationDateobs if not supplied.

Responses

200
400
get/api/instrument
https://fritz.science/api/instrument

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    [
    ],
  • "status": "success",
  • "message": "string"
}

Add a new instrument

Add a new instrument

Request Body schema: application/json
telescope
any Nullable

The Telescope that hosts the Instrument.

photometry
Array of any
photometric_series
Array of any
spectra
Array of any
allocations
Array of any
observing_runs
Array of any
observations
Array of any
queued_observations
Array of any
region
string Nullable

Instrument astropy.regions representation.

fields
Array of any
tiles
Array of any
plans
Array of any
name
required
string

Instrument name.

type
required
string <= 20 characters
Enum: "imager" "spectrograph" "imaging spectrograph"

Instrument type, one of Imager, Spectrograph, or Imaging Spectrograph.

band
string Nullable

The spectral band covered by the instrument (e.g., Optical, IR).

telescope_id
required
integer

The ID of the Telescope that hosts the Instrument.

filters
Array of strings
Default: []
Items Enum: "bessellux" "bessellb" "bessellv" "bessellr" "besselli" "standard::u" "standard::b" "standard::v" "standard::r" "standard::i" "desg" "desr" "desi" "desz" "desy" "sdssu" "sdssg" "sdssr" "sdssi" "sdssz" "f435w" "f475w" "f555w" "f606w" "f625w" "f775w" "f850lp" "nicf110w" "nicf160w" "f098m" "f105w" "f110w" "f125w" "f127m" "f139m" "f140w" "f153m" "f160w" "f218w" "f225w" "f275w" "f300x" "f336w" "f350lp" "f390w" "f689m" "f763m" "f845m" "f438w" "uvf475w" "uvf555w" "uvf606w" "uvf625w" "uvf775w" "uvf814w" "uvf850lp" "kepler" "cspb" "csphs" "csphd" "cspjs" "cspjd" "cspv3009" "cspv3014" "cspv9844" "cspys" "cspyd" "cspg" "cspi" "cspk" "cspr" "cspu" "f070w" "f090w" "f115w" "f150w" "f200w" "f277w" "f356w" "f444w" "f140m" "f162m" "f182m" "f210m" "f250m" "f300m" "f335m" "f360m" "f410m" "f430m" "f460m" "f480m" "f560w" "f770w" "f1000w" "f1130w" "f1280w" "f1500w" "f1800w" "f2100w" "f2550w" "f1065c" "f1140c" "f1550c" "f2300c" "lsstu" "lsstg" "lsstr" "lssti" "lsstz" "lssty" "keplercam::us" "keplercam::b" "keplercam::v" "keplercam::r" "keplercam::i" "4shooter2::us" "4shooter2::b" "4shooter2::v" "4shooter2::r" "4shooter2::i" "f062" "f087" "f106" "f129" "f158" "f184" "f213" "f146" "ztfg" "ztfr" "ztfi" "uvot::b" "uvot::u" "uvot::uvm2" "uvot::uvw1" "uvot::uvw2" "uvot::v" "uvot::white" "ps1::open" "ps1::g" "ps1::r" "ps1::i" "ps1::z" "ps1::y" "ps1::w" "atlasc" "atlaso" "2massj" "2massh" "2massks" "gaia::gbp" "gaia::g" "gaia::grp" "gaia::grvs"

List of filters on the instrument (if any).

sensitivity_data
object Nullable

JSON describing the filters on the instrument and the filter's corresponding limiting magnitude and exposure time.

api_classname
string <= 13 characters Nullable
Enum: "ATLASAPI" "KAITAPI" "SEDMAPI" "SEDMV2API" "IOOAPI" "IOIAPI" "SPRATAPI" "SINISTROAPI" "SPECTRALAPI" "FLOYDSAPI" "MUSCATAPI" "NICERAPI" "MMAAPI" "PS1API" "SLACKAPI" "UVOTXRTAPI" "UVOTXRTMMAAPI" "ZTFAPI" "ZTFMMAAPI"

Name of the instrument's API class.

api_classname_obsplan
string <= 13 characters Nullable
Enum: "ATLASAPI" "KAITAPI" "SEDMAPI" "SEDMV2API" "IOOAPI" "IOIAPI" "SPRATAPI" "SINISTROAPI" "SPECTRALAPI" "FLOYDSAPI" "MUSCATAPI" "NICERAPI" "MMAAPI" "PS1API" "SLACKAPI" "UVOTXRTAPI" "UVOTXRTMMAAPI" "ZTFAPI" "ZTFMMAAPI"

Name of the instrument's ObservationPlan API class.

listener_classname
string <= 12 characters Nullable
Value: "SEDMListener"

Name of the instrument's listener class.

treasuremap_id
integer Nullable

treasuremap.space API ID for this instrument

tns_id
integer Nullable

TNS API ID for this instrument

field_data
dict

List of ID, RA, and Dec for each field.

field_region
str

Serialized version of a regions.Region describing the shape of the instrument field. Note: should only include field_region or field_fov_type.

field_fov_type
str

Option for instrument field shape. Must be either circle or rectangle. Note: should only include field_region or field_fov_type.

field_fov_attributes
list

Option for instrument field shape parameters. Single float radius in degrees in case of circle or list of two floats (height and width) in case of a rectangle.

Responses

200
400
post/api/instrument
https://fritz.science/api/instrument

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "telescope": null,
  • "photometry":
    [
    ],
  • "photometric_series":
    [
    ],
  • "spectra":
    [
    ],
  • "allocations":
    [
    ],
  • "observing_runs":
    [
    ],
  • "observations":
    [
    ],
  • "queued_observations":
    [
    ],
  • "region": "string",
  • "fields":
    [
    ],
  • "tiles":
    [
    ],
  • "plans":
    [
    ],
  • "name": "string",
  • "type": "imager",
  • "band": "string",
  • "telescope_id": 0,
  • "filters":
    [
    ],
  • "sensitivity_data":
    {
    },
  • "api_classname": "ATLASAPI",
  • "api_classname_obsplan": "ATLASAPI",
  • "listener_classname": "SEDMListener",
  • "treasuremap_id": 0,
  • "tns_id": 0,
  • "field_data": null,
  • "field_region": null,
  • "field_fov_type": null,
  • "field_fov_attributes": null
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string",
  • "data":
    {
    }
}

earthquakeevents

Perform a prediction analysis for the earthquake.

Perform a prediction analysis for the earthquake.

path Parameters
earthquake_id
required
string
mma_detector_id
required
string

Responses

200
post/api/earthquake/earthquake_id/mmadetector/mma_detector_id/predictions
https://fritz.science/api/earthquake/earthquake_id/mmadetector/mma_detector_id/predictions

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve a ground velocity measurement for the ear

Retrieve a ground velocity measurement for the earthquake.

path Parameters
earthquake_id
required
string
mma_detector_id
required
string

Responses

200
get/api/earthquake/earthquake_id/mmadetector/mma_detector_id/measurements
https://fritz.science/api/earthquake/earthquake_id/mmadetector/mma_detector_id/measurements

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "data":
    {
    },
  • "status": "success",
  • "message": "string"
}

Provide a ground velocity measurement for the eart

Provide a ground velocity measurement for the earthquake.

path Parameters
earthquake_id
required
string
mma_detector_id
required
string

Responses

200
post/api/earthquake/earthquake_id/mmadetector/mma_detector_id/measurements
https://fritz.science/api/earthquake/earthquake_id/mmadetector/mma_detector_id/measurements

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Delete a ground velocity measurement for the earth

Delete a ground velocity measurement for the earthquake.

path Parameters
earthquake_id
required
string
mma_detector_id
required
string

Responses

200
delete/api/earthquake/earthquake_id/mmadetector/mma_detector_id/measurements
https://fritz.science/api/earthquake/earthquake_id/mmadetector/mma_detector_id/measurements

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Update a ground velocity measurement for the earth

Update a ground velocity measurement for the earthquake.

path Parameters
earthquake_id
required
string
mma_detector_id
required
string

Responses

200
patch/api/earthquake/earthquake_id/mmadetector/mma_detector_id/measurements
https://fritz.science/api/earthquake/earthquake_id/mmadetector/mma_detector_id/measurements

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Get all Earthquake status tags

Get all Earthquake status tags

Responses

200
400
get/api/earthquake/status
https://fritz.science/api/earthquake/status

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Delete an Earthquake event

Delete an Earthquake event

path Parameters
event_id
required
integer

Responses

200
400
delete/api/earthquake/event_id
https://fritz.science/api/earthquake/event_id

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

Retrieve multiple Earthquake events

Retrieve multiple Earthquake events

query Parameters
startDate
string

Arrow-parseable date string (e.g. 2020-01-01). If provided, filter by date >= startDate

endDate
string

Arrow-parseable date string (e.g. 2020-01-01). If provided, filter by date <= endDate

statusKeep
string

Earthquake Status to match against

statusRemove
string

Earthquake Status to filter out

numPerPage
integer

Number of earthquakes. Defaults to 100.

pageNumber
integer

Page number for iterating through all earthquakes. Defaults to 1

get/api/earthquake
https://fritz.science/api/earthquake

Ingest EarthquakeEvent

Ingest EarthquakeEvent

Request Body schema: application/json
sent_by
any Nullable

The user that saved this EarthquakeEvent

notices
Array of any
predictions
Array of any
measurements
Array of any
comments
Array of any
reminders
Array of any
sent_by_id
required
integer

The ID of the User who created this GcnTag.

event_id
required
string
event_uri
string Nullable
status
string

The status of the earthquake event.

Responses

200
400
post/api/earthquake
https://fritz.science/api/earthquake

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "sent_by": null,
  • "notices":
    [
    ],
  • "predictions":
    [
    ],
  • "measurements":
    [
    ],
  • "comments":
    [
    ],
  • "reminders":
    [
    ],
  • "sent_by_id": 0,
  • "event_id": "string",
  • "event_uri": "string",
  • "status": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "status": "success",
  • "message": "string"
}

comments

Retrieve all comments associated with specified re

Retrieve all comments associated with specified resource

path Parameters
associated_resource_type
required
string
Value: "sources"

What underlying data the comment is on, e.g., "sources" or "spectra" or "gcn_event".

resource_id
required
string

The ID of the underlying data. This would be a string for a source ID or an integer for other data types like spectrum or gcn_event.

Responses

200
400
get/api/associated_resource_type/resource_id/comments
https://fritz.science/api/associated_resource_type/resource_id/comments

Response samples