{"openapi":"3.0.1","info":{"title":"Bugwood Cloud API","description":"This is the API for all data and services available from the University of Georgia's Bugwood Center for Invasive Species and Ecosystem Health and its partners.  You can find\nout more about data and content available from Bugwood at\n[https://developers.bugwood.org](https://developers.bugwood.org).<br/><br/>  Development requests should use the Sandbox (https://sandbox.bugwoodcloud.org) as that connects to a development database that will not affect our production systems.  The production API is located at https://api.bugwoodcloud.org and uses the exact same paths as used in the Sandbox.\n","termsOfService":"https://developers.bugwood.org/terms/","contact":{"email":"bugwood@uga.edu"},"version":"1.0.10"},"servers":[{"url":"https://sandbox.bugwoodcloud.org/v2"}],"tags":[{"name":"User","description":"API resources to manage user accounts."},{"name":"Project","description":"Operations about projects for mapping and content"},{"name":"Occurrence","description":"Operations about occurrence data"},{"name":"Map","description":"Operations about retrieving and caching maps"},{"name":"Lookups","description":"Lookups used for various controlled vocabularies"},{"name":"Subject","description":"Operations about subjects and taxa"},{"name":"Resource","description":"Operations for managing content that is part of the Regional IPM Center's Resource Database"},{"name":"Image","description":"API resources to get images in the bugwood system."},{"name":"Collection","description":"Operations to manage image collections."},{"name":"Authentication","description":"API resources to perform authentication."},{"name":"Presentations","description":"API to get list of presentations"},{"name":"Video","description":"API to get list of videos present in the bugwood system."}],"paths":{"/collection/{collectionid}":{"get":{"tags":["Collection"],"summary":"Get details for a collection","description":"Returns details of a collection including counts of items for each content type","parameters":[{"name":"collectionid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"collectionid":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"subjectid":{"type":"integer"},"comment":{"type":"string"},"islightbox":{"type":"boolean"},"topimage":{"type":"string"}}}}}},"404":{"description":"Collection not found","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/404"}}}}}},"put":{"tags":["Collection"],"summary":"Updates the information for a collection","description":"Updates the information for a collection","parameters":[{"name":"collectionid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}},"401":{"description":"401 Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"delete":{"tags":["Collection"],"summary":"Marks a collection deleted","description":"Marks a collection deleted","parameters":[{"name":"collectionid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}}}},"/projects/{projectid}/sites/{siteid}/report/{occurrenceid}":{"get":{"tags":["Project"],"summary":"Get trap data at a site","description":"This endpoint is used for monitoring trap data at a site","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"occurrenceid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/occurrencelist_inner"}}}},"404":{"description":"Record not found. Please check the objectid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403"}}}},"502":{"description":"502 response","content":{}}},"security":[{"EDDMaps_Authentication":[]}]},"put":{"tags":["Project"],"summary":"Update report at a site","description":"While monitoring organisms at a site, this endpoint is used for updating trap and monitoring data","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"occurrenceid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"description":"Model describing the structure of JSON while updating a report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/postoccurrence"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"delete":{"tags":["Project"],"summary":"Delete reports at a site","description":"While monitoring organisms at a site, this endpoint is used for deleting trap and monitoring data","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"occurrenceid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/subject/{subjectid}":{"get":{"tags":["Subject"],"summary":"Returns details for a given subject","description":"Returns complete information about the subject.","parameters":[{"name":"subjectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Json response containing complete subject information.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/subject"}}}},"400":{"description":"Bad request. Please check the subject id to make sure it is a valid integer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"404":{"description":"Subject not found. Please check the subject id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"502":{"description":"Internal server error.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/subject/{subjectid}/history":{"get":{"tags":["Subject"],"summary":"Returns the changes made to the subject over time","description":"Returns log of changes made to the subject by different users.","parameters":[{"name":"subjectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"integer"}},{"name":"startdate","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"enddate","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"updateby","description":"Used to filter the changes made by a user.","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Json response containing change log.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/subjectchangelog"}}}},"400":{"description":"Bad request. Please check the subject id to make sure it is a valid integer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}}},"/subject/{subjectid}/children":{"post":{"tags":["Subject"],"summary":"Adds children to a subject.","description":"Array of subject ids to add as children to a subject. Only node admins have access to add children.","parameters":[{"name":"subjectid","in":"path","required":true,"style":"simple","schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/addchildsubjects"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}},"403":{"description":"Access denied. Only Bugwood administrators have access to add children. Please contact the Bugwood Center to request access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"get":{"tags":["Subject"],"summary":"Retrieve child subjects of a taxonomy node","description":"Returns a list of immediate child subjects (or nodes) within a hierarchical taxonomy structure.\n\nThis endpoint supports systems that implement tree-like or graph-based taxonomies, and it retrieves \nthe next level of nested subjects under the given subject ID. The response includes each child's \nmetadata such as name, identifier, description, and an indicator of whether the subject itself \nhas further descendants.\n","parameters":[{"name":"subjectid","in":"path","required":true,"description":"The subejct id of the parent subject or taxonomy node","schema":{"type":"string"}}],"responses":{"200":{"description":"A list of child subject nodes","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"namepart1":{"type":"string"},"namepart2":{"type":"string"},"namepart3":{"type":"string"},"subjectid":{"type":"integer"},"children":{"type":"string"},"rank":{"type":"string"},"displayname":{"type":"string"},"displaynameformatted":{"type":"string"},"subjectname":{"type":"string"},"scientificnameformatted":{"type":"string"},"title":{"type":"string"},"lazy":{"type":"string"},"expanded":{"type":"boolean"},"key":{"type":"integer"}}}}}}},"404":{"description":"The specified parent subject was not found"},"500":{"description":"Unexpected error occurred while retrieving child nodes"}}}},"/login":{"post":{"tags":["Authentication"],"summary":"User Login","description":"Authenticates a user using their email and password credentials.\n\nUpon successful authentication, the server returns a JSON Web Token (JWT) which can be used to access protected endpoints within the application.\n\nThe token should be included in the `Authorization` header using the `Bearer` scheme for all subsequent requests that require authentication.\n\nExample:\n```\nAuthorization: Bearer <access_token>\n```\n\nThis endpoint is used as the first step in the authentication process. It validates the user’s credentials, and if correct, generates and returns a signed token containing user identity.\n\nIf the credentials are invalid, the endpoint returns an HTTP 401 Unauthorized response.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/login"}}},"required":true},"responses":{"200":{"description":"Login successful. Returns a bearer token that is used to authenticate user requests.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}},"Access-Control-Allow-Credentials":{"style":"simple","explode":false,"schema":{"type":"string"}},"content-type":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"refreshtoken":{"type":"string"},"expires":{"type":"string","format":"date-time"},"deviceid":{"type":"string","format":"uuid"}}}}}},"400":{"description":"Bad request. Check the JSON object to ensure it conforms to the schema.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"401":{"description":"Username and passwords do not match.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/401"}}}},"502":{"description":"There was an internal server error while authenticating.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/refreshtoken":{"post":{"tags":["Authentication"],"description":"Generates a new access token using a valid refresh token.\n\nThis endpoint is used when the current access token has expired but the refresh token is still valid. \nThe client sends the refresh token, and if it's valid, the server responds with a new access token.\n\nThe new token should then be used in the `Authorization` header for all subsequent authenticated requests.\n\nThis helps improve security by keeping short-lived access tokens and allowing long-lived sessions without requiring frequent logins.\n\nThe refresh token should be sent in the request body\n\nExample request body:\n```json\n{\n  \"refreshtoken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\"\n}\n```\n\nExample header for using new token:\n```\nAuthorization: Bearer <new_access_token>\n```\n\nIf the refresh token is invalid, expired, or revoked, a 401 Unauthorized response will be returned. \n","summary":"Refresh access token","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/refresh"}}},"required":true},"responses":{"200":{"description":"New access token generated successfully","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}},"Access-Control-Allow-Credentials":{"style":"simple","explode":false,"schema":{"type":"string"}},"content-type":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"refreshtoken":{"type":"string"},"token":{"type":"string"}}}}}},"400":{"description":"Invalid request.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"401":{"description":"Invalid refresh token and bearer token combination.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/401"}}}},"502":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/resetpassword":{"post":{"tags":["Authentication"],"description":"Url to get the reset key for a password reset. To request a reset key, send a request with only email in the body. A reset code will sent to the email. Use the reset code along with the email and new password to reset your password.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email"}}},"required":true},"responses":{"200":{"description":"Reset link sent to email","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}}}},"/area":{"get":{"tags":["Lookups"],"summary":"Get list of areas","description":"Returns a list of areas","responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"areaid":{"type":"integer"},"areaname":{"type":"string"},"domainid":{"type":"integer"},"domainname":{"type":"string"}}}]}}}}}}}}}},"/category":{"get":{"tags":["Lookups"],"summary":"Get list of categories","description":"Returns a list of categories","responses":{"200":{"description":"An array of category ids and names.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"categoryid":{"type":"integer"},"categoryname":{"type":"string"}}}]}}}}}}}}}},"/division":{"get":{"tags":["Lookups"],"summary":"Get list of Divisions","description":"Returns a list of Divisions","responses":{"200":{"description":"Returns a list of division ids and names used in the system.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"divisionid":{"type":"integer"},"divisionname":{"type":"string"}}}]}}}}}}}}}},"/domain":{"get":{"tags":["Lookups"],"summary":"Get list of domains","description":"Returns a list of domains","responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"domainid":{"type":"integer"},"domainname":{"type":"string"}}}]}}}}}}}}}},"/format":{"get":{"summary":"Get list of formats","description":"Returns a list of formats available in the system.","tags":["Lookups"],"responses":{"200":{"description":"List of format ids and names.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"formatid":{"type":"integer"},"formatname":{"type":"string"}}}]}}}}}}}}}},"/gender":{"get":{"tags":["Lookups"],"summary":"Get a list of available genders.","description":"Returs the ids for available genders in the system.","responses":{"200":{"description":"List of gneder names and corresponding ids.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"genderid":{"type":"integer"},"gendername":{"type":"string"}}}]}}}}}}}}}},"/license":{"get":{"summary":"List of available licenses","tags":["Lookups"],"responses":{"200":{"description":"List of license ids.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"licenseid":{"type":"integer"},"licensename":{"type":"string"}}}]}}}}}}}}}},"/invasivespecieslist":{"get":{"summary":"List of invasive species lists","tags":["Lookups"],"parameters":[{"name":"search","description":"Used to filter list names","in":"query","required":false,"style":"form","explode":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of Invasive Species lists.","content":{"application/json":{"schema":{"type":"object","properties":{"page":{"type":"number"},"pagesize":{"type":"number"},"nextpage":{"type":"string","format":"uri"},"previouspage":{"type":"string","format":"uri"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"listid":{"type":"integer"},"listname":{"type":"string"},"listurl":{"type":"string","format":"uri"},"listdescription":{"type":"string"},"dateupdated":{"type":"string","format":"date-time"}}}]}}}}}}}}}},"/status":{"get":{"summary":"List of statuses for content such as images, resources, presentations, and video","tags":["Lookups"],"responses":{"200":{"description":"List of statuses and ids.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"statusid":{"type":"integer"},"statusname":{"type":"string"}}}]}}}}}}}}}},"/type":{"get":{"summary":"Get list of ids for images and resource types.","tags":["Lookups"],"responses":{"200":{"description":"List of status names and ids.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"typeid":{"type":"integer"},"tyename":{"type":"string"}}}]}}}}}}}}}},"/language":{"get":{"summary":"Get list of languages ids.","description":"Returns ids","tags":["Lookups"],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"languageid":{"type":"integer"},"language":{"type":"string"},"threeletterabbr":{"type":"string"},"abbreviation":{"type":"string"}}}]}}}}}}}}}},"/location":{"get":{"tags":["Lookups"],"summary":"Get Country, State, County and township codes","description":"Returns location information based on a latitude and longitude or location information based on a country, state, county provided.  When looking up a location by Country, State, and county, the higher levels are required.  For example, to get information for a county, Country, state, and county must be provided.","parameters":[{"name":"lat","description":"Latitude of the location (should be used along with \"lng\") ","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"number"},"example":39.8283},{"name":"lng","description":"Longitude of the location (should be used along with \"lat\") ","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"number"},"example":-98.5795},{"name":"fips","description":"FIPS code of county - used to get Centroid latitude and longitude. When used, will take precedence over lat and lng.","in":"query","required":false,"style":"form","schema":{"type":"integer"},"example":"county FIPS or equivalent id as in 13277"},{"name":"state","description":"Two digit state code (should be used along with \"country\") ","in":"query","required":false,"style":"form","schema":{"type":"integer"},"example":13},{"name":"country","description":"Three digit country code (should be used along with \"state\"). NOTE: Use 926 for U.S and 260 for Canada.","in":"query","required":false,"style":"form","schema":{"type":"integer"},"example":926}],"responses":{"200":{"description":"Location information.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}}},"400":{"description":"Bad request. Invalid combination of input requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}}},"/view":{"get":{"summary":"List of image views","description":"View refers side of the specimen that was photographed or the scale at which the photo was taken. Returns a list of ids for available views.","tags":["Lookups"],"responses":{"200":{"description":"List of image view names and ids.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"viewid":{"type":"integer"},"viewname":{"type":"string"}}}]}}}}}}}}}},"/collection/{collectionid}/{itemid}":{"put":{"tags":["Collection"],"parameters":[{"name":"itemid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"collectionid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}}},"delete":{"tags":["Collection"],"parameters":[{"name":"itemid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"collectionid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}}}},"/projects/{projectid}/sites":{"get":{"tags":["Project"],"summary":"Get list of sites within a project","description":"Returns all list of all sites within a project","parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"siteid":{"type":"integer"},"sitename":{"type":"string"}}}]}}}}},"401":{"description":"Unauthorized. User needs to be logged in to access this resource.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/401"}}}},"403":{"description":"User does not have permission to access this resource.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/403"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"post":{"tags":["Project"],"summary":"Add site to a project","description":"Creates a new site within the specified project. This endpoint requires the `projectid` in the path and a JSON payload containing required fields:  `SiteName`, `Owner`, `fips`, `CentroidLat`, `CentroidLong` and `ParentSiteID`\n","parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"description":"Model describing the structure of JSON while creating or updating a report at a site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/postsite"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/occurrence":{"get":{"tags":["Occurrence"],"summary":"Get list of occurrence records","description":"Returns all list of all occurrence records.  This returns only a summary of the record.  For full details of an occurrence, request the occurrence by occurrenceid /occurrence/{occurenceid}","parameters":[{"name":"fips","in":"query","required":false,"style":"form","explode":true,"description":"A comma separated list of FIPS codes.","example":13001,"schema":{"type":"string"}},{"name":"state","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"county","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"subjectid","in":"query","required":false,"description":"The species or topic that pertains to a occurrence report. Subject id can be found under /subject.","style":"form","example":2425,"explode":true,"schema":{"type":"string"}},{"name":"eradicationstatus","in":"query","required":false,"style":"form","explode":true,"description":"A comma separated status of the species in the record [ 1 = Positive, 2 = Treated, 3 = Eradicated , 4 = Negative]","example":"1,2","schema":{"type":"string"}},{"name":"dateenteredstart","in":"query","required":false,"style":"form","explode":true,"description":"Earliest date observations were entered.","example":"2020/01/01","schema":{"type":"string"}},{"name":"dateenteredend","in":"query","required":false,"style":"form","explode":true,"description":"The most recent date observations were entered.","example":"2020/01/01","schema":{"type":"string"}},{"name":"searchon","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"project","in":"query","required":false,"style":"form","description":"A comma separated list of project ids. Project ids can be found under /project","example":90,"explode":true,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"reporter","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"enddate","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"dateupdatedstart","in":"query","required":false,"style":"form","description":"Earliest date observations were updated.","example":"2020/01/01","explode":true,"schema":{"type":"string","format":"date"}},{"name":"dateupdatedend","in":"query","required":false,"style":"form","explode":true,"description":"The most recent date observations were updated.","example":"2020/01/01","schema":{"type":"string","format":"date"}},{"name":"startdate","in":"query","required":false,"description":"Start date of observations","example":"2020/01/01","style":"form","explode":true,"schema":{"type":"string","format":"date"}},{"name":"paging","in":"query","required":false,"style":"form","explode":true,"schema":{"default":true,"type":"boolean","enum":[true,false]}},{"name":"pagesize","in":"query","required":false,"description":"The number of items per page. Currently limited to maximum of 3000 items per call.","schema":{"type":"integer","example":3000,"default":3000}},{"name":"page","in":"query","required":false,"style":"form","explode":true,"description":"The page number to retrieve (starting from 1).","schema":{"type":"integer","example":1,"default":1}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/occurrencelist"}}}},"400":{"description":"400 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"502":{"description":"502 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Occurrence"],"summary":"Reports a species at a location","description":"In contrast to reorting at a site within a project, this provides a report of a species at a specific location, but not one that is setup for routing monitoring of pest populations over time.  These may have revisits which serve a similar function as monitoring a population over time, however revisits also include treatments.","requestBody":{"description":"Model describing the structure of JSON while posting a report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/postoccurrence"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/objectids"}}}},"400":{"description":"400 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}/sites/{siteid}/users":{"get":{"tags":["Project"],"summary":"Get list of users assigned to a site","description":"Get list of users assigned to a site","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"post":{"tags":["Project"],"summary":"Add user to a site within a project","description":"Add user to a site within a project","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"description":"Model describing the structure of JSON while creating or updating a report at a site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/assignuser"}}},"required":true},"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}/reports":{"get":{"tags":["Project"],"parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}}}},"/occurrence/{occurrenceid}/revisit/{revisitid}":{"get":{"tags":["Occurrence"],"summary":"Get revisit information","description":"Gives the full revisit information for a give record with revisit data","parameters":[{"name":"occurrenceid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"revisitid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/revisit"}}}}}}},"/user/me":{"get":{"tags":["User"],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"firstname":{"type":"string"},"lastname":{"type":"string"},"title":{"type":"string"},"address":{"type":"string"},"organization":{"type":"string"},"email":{"type":"string","format":"email"},"unit":{"type":"string"},"phone":{"type":"string"},"firstdetector":{"type":"boolean"},"country":{"type":"integer"},"state":{"type":"integer"},"usergroup":{"type":"string"},"comments":{"type":"string"},"websites":{"type":"string"},"publicprofile":{"type":"boolean"},"emaildigest":{"type":"boolean"},"bio":{"type":"string"},"commercialrequest":{"type":"boolean"},"logo":{"type":"string"},"photo":{"type":"string"},"id":{"type":"string","format":"uuid"},"authid":{"type":"integer"},"mappingid":{"type":"integer"},"anonymous":{"type":"boolean"},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"role":{"type":"string"},"name":{"type":"string"},"roleid":{"type":"integer"},"id":{"type":"integer"}}}]}},"mydevices":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"devicename":{"type":"string"},"lastlogin":{"type":"string","format":"date-time"}}}]}}}}}}},"502":{"description":"502 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/subject":{"get":{"tags":["Subject"],"summary":"Get list of subjects","description":"Returns a list of subjects","parameters":[{"name":"sort","in":"query","description":"Sort the list of subjects in ascending or descending order. Currently supported columns: SubjectID and SubjectName. Use + to sort in Ascending order, - to sort in descendig order. Ex: +SubjectName.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"valid","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"boolean","default":false}},{"name":"pagesize","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"searchon","in":"query","description":"List of colums to search on. Currently limited to ScientificName and SubjectName","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"division","in":"query","description":"A comma separated list of division id's. Divisions can be found under /division.","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,2,3"},{"name":"category","in":"query","description":"A comma separated list of category id's. Categories can be found under /category.","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,2,3"}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/subjectlist"}}}},"400":{"description":"Bad request. Please check the request parameters for a valid list of filters and valid combinations.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"502":{"description":"502 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Subject"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createsubject"}}},"required":true},"responses":{"201":{"description":"Subject added succesfully. Returns the id of the created subject.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"subjectid":{"type":"integer"}}}}}},"400":{"description":"Bad request data. Please refer to the subject schema for the correct json schema defenition.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"403":{"description":"403 response indicating the user does not have required permission to create subjects. Currently, only node admins have access to create subjects. Please contact the Bugwood Center to request access.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/403"}}}},"502":{"description":"502 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}/sites/{siteid}":{"get":{"tags":["Project"],"summary":"Get details about a site in a project.","description":"Returns the details about a site.","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"put":{"tags":["Project"],"summary":"Update sites in a project","description":"Update sites in a project","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postsite"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"delete":{"tags":["Project"],"summary":"Delete site from a project","description":"Delete site from a project","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}/sites/{siteid}/event":{"get":{"tags":["Project"],"summary":"Get list of events for a sites","description":"Get list of events for a sites","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"post":{"tags":["Project"],"summary":"Create events at a site","description":"Create events at a site","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postsite"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"put":{"tags":["Project"],"summary":"Update events already existing at a site","description":"Update events already existing at a site","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postsite"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"delete":{"tags":["Project"],"summary":"Mark an event deleted at a site","description":"Mark an event deleted at a site","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/occurrence/{occurrenceid}/image":{"post":{"tags":["Occurrence"],"summary":"Post images to a occurrence record","description":"Post a base64 encoded image to an occurrence record","parameters":[{"name":"occurrenceid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postImage"}}},"required":true},"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects":{"get":{"tags":["Project"],"summary":"Get list of projects","description":"Returns a list of all public EDDMapS projects","parameters":[{"name":"search","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"pagesize","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"nextpage":{"type":"string","format":"url"},"previouspage":{"type":"string","format":"url"},"totalrows":{"type":"integer","minimum":0},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"projectid":{"type":"integer"},"projectname":{"type":"string"},"projectlogo":{"type":"string"},"projectdescription":{"type":"string"},"projecthome":{"type":"string"},"projectowner":{"type":"string"},"sitesupport":{"type":"boolean"},"forecastsupport":{"type":"boolean"}}}]}}}}}}},"400":{"description":"400 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"502":{"description":"502 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Project"],"description":"API resource to create a project.","requestBody":{"description":"Model describing the structure of JSON to create a project.","content":{"application/json":{"schema":{"type":"object","properties":{"project":{"type":"string"},"projectdescription":{"type":"string"},"projecthome":{"type":"string","format":"URL"},"sitesupport":{"type":"boolean"},"forecastsupport":{"type":"boolean"},"reportingcolumns":{"type":"string"},"numberoftraps":{"type":"integer"},"verifiersupport":{"type":"boolean"},"expertsupport":{"type":"boolean"},"monitoringzonesupport":{"type":"boolean"},"monitoringzonesetting":{"type":"object","properties":{"defaultsubject":{"type":"integer"}}},"photopointsupport":{"type":"boolean"},"publiclyavailable":{"type":"boolean"},"acceptingdata":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"type":"object","properties":{"projectid":{"type":"integer"}}}}}},"401":{"description":"Token invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401"}}}},"502":{"description":"502 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/user/me/subject/{subjectid}":{"delete":{"tags":["User"],"parameters":[{"name":"subjectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/collection/{collectionid}/content/{itemid}":{"put":{"tags":["Collection"],"summary":"Updates the information for a piece of content in a collection ","description":"Adds a piece of content to a collection.  Multiple items can be updated by passing an array of values.","parameters":[{"name":"itemid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"collectionid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"delete":{"tags":["Collection"],"summary":"Removes a piece of content from a collection ","description":"Removes a piece of content from a collection","parameters":[{"name":"itemid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"collectionid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/user/{userid}":{"get":{"tags":["User"],"parameters":[{"name":"userid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"email":{"type":"string","format":"email"},"organization":{"type":"string"},"organizationid":{"type":"string","format":"uuid"},"websites":{"type":"string"},"profile":{"type":"string"},"education":{"type":"string"},"research":{"type":"string"},"recognition":{"type":"string"},"teaching":{"type":"string"},"cv":{"type":"string","format":"uri"},"logo":{"type":"object","properties":{"orignial":{"type":"string","format":"uri"},"240x160":{"type":"string","format":"uri"},"480x320":{"type":"string","format":"uri"},"960x640":{"type":"string","format":"uri"}}},"photo":{"type":"object","properties":{"orignial":{"type":"string","format":"uri"},"256x256":{"type":"string","format":"uri"},"512x512":{"type":"string","format":"uri"},"1024x1024":{"type":"string","format":"uri"}}},"area":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"areaid":{"type":"integer"},"areaname":{"type":"string"}}}]}},"domain":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"domainid":{"type":"integer"},"domainname":{"type":"string"}}}]}},"taxa":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"displayname":{"type":"string"},"subjectid":{"type":"integer"}}}]}},"taxa_excludes_children":{"type":"boolean"},"pests":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"displayname":{"type":"string"},"subjectid":{"type":"integer"}}}]}},"pest_exclude_children":{"type":"boolean"},"controlagent":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"displayname":{"type":"string"},"subjectid":{"type":"integer"}}}]}},"controlagent_excludes_children":{"type":"boolean"},"regionserverd":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"fips":{"type":"string"}}}]}},"collaborations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string","format":"uuid"}}}]}},"expertisebadges":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"dateawarded":{"type":"string","format":"date"},"image":{"type":"string","format":"uri"}}}]}},"achievementbadges":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"dateawarded":{"type":"string","format":"date"},"image":{"type":"string","format":"uri"}}}]}},"recentreports":{"type":"array","items":{"$ref":"#/components/schemas/occurrencelist_inner"}},"recentimages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"imagenumber":{"type":"integer"},"subjectid":{"type":"integer"},"scientificname":{"type":"string"},"subjectname":{"type":"string"},"contactid":{"type":"integer"},"photographer":{"type":"string"},"organization":{"type":"string"},"baseimageurl":{"type":"string"},"orientation":{"type":"string"},"description":{"type":"string"},"citation":{"type":"string"}}}]}},"recentresoures":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"thumb":{"type":"string"},"citation":{"type":"string"},"publisher":{"type":"string"},"numberofversions":{"type":"integer"},"detailsurl":{"type":"string"}}}]}},"recentpresentations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"presentationdate":{"type":"string"},"presentationnumber":{"type":"string"},"presentationurl":{"type":"string"},"slides":{"type":"integer"}}}]}},"recenetvideos":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"videonumber":{"type":"string"},"title":{"type":"string"},"aspect":{"type":"string"},"length":{"type":"string","format":"time"},"description":{"type":"string"},"type":{"type":"string"},"videourl":{"type":"string","format":"url"},"thumbnail":{"type":"string","format":"url"}}}]}}}}}}},"404":{"description":"404 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{}}}},"put":{"tags":["User"],"summary":"Updates information for a specific user","parameters":[{"name":"userid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/user"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}},"502":{"description":"502 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}/subject/{subjectid}":{"get":{"tags":["Project"],"parameters":[{"name":"subjectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}}}},"/logout":{"post":{"tags":["Authentication"],"summary":"User logout","description":"Logs out the currently authenticated user by invalidating their authentication token.\n\nThe client should remove the token from its storage (e.g., browser local storage or memory) after receiving a successful response.\n\nA valid token must be included in the `Authorization` header as a Bearer token to identify which session to log out.\n\nExample:\n```\nAuthorization: Bearer <access_token>\n```\n\nIf the token is missing or invalid, a 401 Unauthorized response will be returned.\n","responses":{"205":{"description":"Succesfully logged out.","headers":{"Access-Control-Allow-Origin":{"style":"simple","schema":{"type":"string"}}}},"403":{"description":"The bearer token used is invalid.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/403"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}/sites/{siteid}/report":{"get":{"tags":["Project"],"summary":"Get reports at  a site","description":"Get a list of all the site monitoring reports at this site.","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}},"502":{"description":"502 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"504 response","content":{}}},"security":[{"EDDMaps_Authentication":[]}]},"post":{"tags":["Project"],"summary":"Submit reports at a site","description":"While monitoring organisms at a site, this endpoint is used for recording trap and monitoring data","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"description":"Model describing the structure of JSON while posting a report at a site/trap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schema3"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/objectids"}}}},"403":{"description":"403 response- When the user is not part of the project.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}},"400":{"description":"400 response- When the JSON does not conform to the defined schema.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/occurrence/{occurrenceid}/revisit":{"get":{"tags":["Occurrence"],"summary":"Returns a list of revisits for a given record","description":"Returns a list of revisits for a given record","parameters":[{"name":"occurrenceid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/revisit"}}}}}},"post":{"tags":["Occurrence"],"summary":"Revisit an occurrence record","description":"Revisist an existing occurrence record and update the status of that report with a new report.","parameters":[{"name":"occurrenceid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"description":"Model describing the structure of JSON while posting a report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/postoccurrence"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/objectids"}}}},"400":{"description":"400 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/user/me/projects/{projectid}/sites/{siteid}/locations":{"get":{"tags":["User"],"description":"This endponint returns the list of sites and traps within a management zone that are assigned to the user. Along with the sites, this endpoint also returns the form schema for reporting in those sites.","parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","schema":{"type":"integer"}},{"name":"siteid","in":"path","required":true,"style":"simple","schema":{"type":"integer"}}],"responses":{"200":{"description":"Get Management zone sites and traps that are assigned to the user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getlocations"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/user/me/subject":{"get":{"tags":["User"],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"put":{"tags":["User"],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"post":{"tags":["User"],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/user/me/projects":{"get":{"tags":["User"],"description":"Returns a list of projects the user is part of along with the role in the project.","summary":"Get user projects","parameters":[{"name":"subjectid","in":"query","required":false,"style":"form","explode":true,"description":"A comma separated list of subjectids to filter the projects and return only the projects that contain that subject. Subject ids can be found under /subject","example":"2425,2324","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns a list of projects.","content":{"application/json":{"schema":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string"},"roleid":{"type":"integer"},"projectname":{"type":"string"},"projectid":{"type":"integer"},"monitoringzone":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"siteid":{"type":"integer"},"sitename":{"type":"string"}}}]}},"sites":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"siteid":{"type":"integer"},"sitename":{"type":"string"},"sitecategory":{"type":"string"},"sitegroup":{"type":"boolean"}}}]}},"subjects":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subjectid":{"type":"integer"},"scientificname":{"type":"string"},"subjectname":{"type":"string"}}}]}}}}]}}}}},"401":{"description":"Missing Authentication token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401"}}}},"403":{"description":"Token expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/403"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/user/me/collection":{"get":{"tags":["User"],"responses":{"200":{"description":"Retunrs user collections.","content":{"application/json":{"schema":{"type":"object","properties":{"page":{"type":"integer"},"totalrows":{"type":"integer"},"previouspage":{"type":"string","format":"uri"},"nextpage":{"type":"string","format":"uri"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"collectionid":{"type":"integer"},"collectionname":{"type":"string"},"description":{"type":"string"},"subjectid":{"type":"integer"}}}]}}}}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}/update":{"get":{"tags":["Project"],"parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}}}},"/projects/{projectid}/projectareas":{"get":{"summary":"Returns project areas for a project","description":"Any project can establish areas for data collection, grouping of observations, assignement of users to a geographic area associated with observations.  This returns only the site groups that have sites.  For example, if a site group for 'Chicago' has a sub group called 'Northeast' and only 'Northeast' has sites directly associated with it, this returns only 'Northeast'.","tags":["Project"],"parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}/projectareas/{siteid}/locations":{"get":{"summary":"Returns details for all content in a collection","description":"Returns details for all content in a collection","tags":["Project"],"parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getlocations"}}}}}}},"/projects/{projectid}/projectareas/manage":{"get":{"summary":"Returns current sites, site groups, and traps associated with a project area","description":"Returns current sites, site groups, and traps associated with a project area","tags":["Project"],"parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns list of sites.","content":{"application/json":{"schema":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"siteid":{"type":"integer"},"name":{"type":"string"},"parentid":{"type":"integer"},"latitude":{"type":"number"},"longitude":{"type":"number"},"inactive":{"type":"boolean"},"wkt":{"type":"string"},"sitecat":{"type":"string"},"sitegroup":{"type":"boolean"},"project":{"type":"integer"},"sitebasis":{"type":"integer"},"users":{"type":"array","items":{"anyOf":[{"type":"integer"}]}},"species":{"type":"array","items":{"anyOf":[{"type":"integer"}]}}}}]}}}}}},"security":[{"EDDMaps_Authentication":[]}]},"put":{"summary":"Used to update existing sites, site groups, and traps associated with a project area","description":"Used to update existing sites, site groups, and traps associated with a project area","tags":["Project"],"parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"post":{"summary":"Used to create new sites, site groups, and traps associated with a project area","description":"Used to create new sites, site groups, and traps associated with a project area","tags":["Project"],"parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"delete":{"summary":"Used to inactive sites, site groups, and traps associated with a project area","description":"Used to inactive sites, site groups, and traps associated with a project area","tags":["Project"],"parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/collection/{collectionid}/content":{"get":{"tags":["Collection"],"summary":"Returns details for all content in a collection","description":"Returns details for all content in a collection","parameters":[{"name":"collectionid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}},"Access-Control-Allow-Methods":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"collectionid":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"datecreated":{"type":"string","format":"date-type"},"series":{"type":"boolean"},"dateedited":{"type":"string","format":"date-time"},"topimage":{"type":"string"},"totalrecords":{"type":"integer"},"items":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"position":{"type":"integer"},"rowid":{"type":"integer"},"system":{"type":"integer"},"contentid":{"type":"string","format":"number"},"versionid":{"format":"string"},"publisher":{"type":"string"},"embed":{"type":"string","format":"uri"},"url":{"type":"string","format":"uri"},"thumb":{"type":"string","format":"uri"},"name":{"type":"string"},"caption":{"type":"string"},"citation":{"type":"string"},"systemname":{"type":"string"},"formatname":{"type":"string"}}}]}}}}}}},"404":{"description":"404 response","content":{}}}},"post":{"tags":["Collection"],"summary":"Adds a piece of content to a collection","description":"Adds a piece of content to a collection.  Multiple items can be added by passing an array of values.","parameters":[{"name":"collectionid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"position":{"type":"integer"},"system":{"type":"integer","enum":[2,3,4,5]},"contentid":{"type":"string"},"versionid":{"type":"integer"},"caption":{"type":"string"}},"required":["system","contentid"]}]}}}},"required":true},"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}},"400":{"description":"400 Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"401":{"description":"401 Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/401"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}":{"get":{"tags":["Project"],"summary":"Get project details","description":"Returns all details for a project","parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"projectid":{"type":"integer"},"projectname":{"type":"string"},"projectlogo":{"type":"string"},"projectdescription":{"type":"string"},"projecthome":{"type":"string"},"projectowner":{"type":"string"},"sitesupport":{"type":"boolean"},"ispublic":{"type":"boolean"},"forecastsupport":{"type":"boolean"},"acceptingdata":{"type":"boolean"},"subjects":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subjectid":{"type":"integer"},"subjectname":{"type":"string"},"namepart1":{"type":"string"},"namepart2":{"type":"string"},"namepart3":{"type":"string"},"taxonrank":{"type":"string"},"category1":{"type":"integer"},"category1name":{"type":"string"},"category2":{"type":"integer"},"category2name":{"type":"string"},"division":{"type":"integer"},"divisionname":{"type":"string"}}}]}}}}}}},"400":{"description":"400 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"404":{"description":"404 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{}},"502":{"description":"502 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectid}/users/{userid}":{"get":{"tags":["Project"],"summary":"Get role for a user within a project","description":"Get role for a user within a project","parameters":[{"name":"userid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}}},"put":{"tags":["Project"],"summary":"Updates role of a user within a project","description":"Updates role of a user within a project","parameters":[{"name":"userid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"description":"Model describing the structure of JSON while updating role","content":{"application/json":{"schema":{"$ref":"#/components/schemas/userrole"}}},"required":true},"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"delete":{"tags":["Project"],"summary":"Removes a user from a project","description":"Removes a user from a project","parameters":[{"name":"userid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}/sites/{siteid}/users/{userid}":{"get":{"tags":["Project"],"summary":"Get role for a user at a site within a project","description":"Get role for a user at a site within a project","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"userid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}}},"put":{"tags":["Project"],"summary":"Updates role of a user at a site within a project","description":"Updates role of a user at a site within a project","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"userid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"description":"Model describing the structure of JSON while updating role","content":{"application/json":{"schema":{"$ref":"#/components/schemas/userrole"}}},"required":true},"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"delete":{"tags":["Project"],"summary":"Removes a user from a site within a project","description":"Removes a user from a site within a project","parameters":[{"name":"siteid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"userid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/user":{"get":{"tags":["User"],"parameters":[{"name":"page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"pagesize","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/users"}}}},"502":{"description":"502 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["User"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/user"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}},"403":{"description":"403 response","content":{}},"409":{"description":"409 response","content":{}}},"security":[{"EDDMaps_Authentication":[]}]}},"/EDDMaps_Authentication":{"x-amazon-apigateway-any-method":{"responses":{"200":{"description":"200 response","content":{}}}}},"/projects/{projectid}/users":{"get":{"tags":["Project"],"summary":"Get list of users within a project","description":"Returns all list of all users within a project","parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]},"post":{"tags":["Project"],"summary":"Add user to a project","description":"Add a user to a project","parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"description":"Model describing the structure of JSON while creating or updating a report at a site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/assignuser"}}},"required":true},"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/occurrence/{occurrenceid}":{"get":{"tags":["Occurrence"],"summary":"Get details for an occurrence record","description":"Returns the full information of occurrence report.","parameters":[{"name":"occurrenceid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/occurrencelist_inner"}}}}}},"put":{"tags":["Occurrence"],"summary":"Updates an existing occurrence record.","description":"Updates an existing new occurrence record.","parameters":[{"name":"occurrenceid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postoccurrence"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/projects/{projectid}/subject":{"get":{"tags":["Project"],"summary":"Get subjects in a project","description":"Returns a list of subjects in the project.","parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of subjects in the project.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subjectid":{"type":"integer"},"subjectname":{"type":"string"},"namepart1":{"type":"string"},"namepart2":{"type":"string"},"namepart3":{"type":"string"},"taxonrank":{"type":"string"},"category1":{"type":"integer"},"category1name":{"type":"string"},"category2":{"type":"integer"},"category2name":{"type":"string"},"division":{"type":"integer"},"divisionname":{"type":"string"}}}]}}}}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/404"}}}}}},"post":{"tags":["Project"],"summary":"Adds a subject to a project","description":"Allows a project member to attempt to add a subject to a project.  This attempts to automatically resolve the name provided to a subject.  If a match is not found, it is placed in a list to have a subject added after verification of the taxonomy or classification.  For living things, the scientific name should be provided.  Abiotic disorders and non-living things can be submitted as common names","parameters":[{"name":"projectid","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/projectsubject"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/collection":{"get":{"tags":["Collection"],"summary":"Get list of Collections","description":"Returns a list of all collections","responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}}},"post":{"tags":["Collection"],"summary":"Creates a collection","description":"Creates a collection that can have images, resources, vidoes, presentations and other content added to it","responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/presentation":{"get":{"tags":["Presentations"],"summary":"Get a list of presentations in the bugwood system","description":"Bugwood Presents was started by the University of Georgia Center for Invasive Species and Ecosystem Health in 2011 to provide an easily accessible archive of high quality presentations for use in educational applications. The focus of Bugwood Presents is on species of economic concern. Presentations cover invasive species, forestry, agriculture, integrated pest management, plants, insects, diseases, fungi, wildlife, fire and other natural resource issues, and are reviewed for content and quality.","parameters":[{"name":"page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":1},{"name":"pagesize","description":"Number of records returned per page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":50},{"name":"subject","description":"The species or topic that pertains to a resource. Subject IDs can be looked up under /subject","in":"query","required":false,"schema":{"type":"integer"},"example":2425},{"name":"author","in":"query","description":"The individual or organization responsible for the publishing of a given resource. User IDs are used here and can be found at /user.","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":35926},{"name":"area","in":"query","required":false,"style":"form","explode":true,"description":"Areas are commodities and other specific settings related to a resource. Areas are listed in /area under lookups","schema":{"type":"integer"},"example":163},{"name":"type","in":"query","required":false,"description":"The type of presentation. One of Generic Presentation(1), Meeting Presentation(2) or Poster(3)","style":"form","explode":true,"schema":{"type":"integer"},"example":3},{"name":"language","in":"query","description":"The language that a resource is available in. List of languages ids are available under /language.","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":1},{"name":"location","description":"The country, state, and/or counties that a image perstains to.  Since these can vary in scope, a location Identifier can be a 2 letter country, 2 letter country with a state FIPS code, or 2 letter country code with 5 character FIPS code, or 3 letter country code with FIPS code.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"organization","in":"query","description":"The organization of the author responsible for the publishing of a given image. IDs are used here and can be found at /user.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"startdate","in":"query","description":" Used to filter presentations based on earliest date they were updated. ","schema":{"type":"string","format":"date-time"},"example":"2024-01-01 14:50:07.583"},{"name":"enddate","in":"query","description":" Used to filter presentations based on last date they were updated. ","schema":{"type":"string","format":"date-time"},"example":"2025-01-01 14:50:07.583"},{"name":"invasivespecieslist","in":"query","description":"A comma separated list of integers to get presentations of subjects listed in various invasive species lists. Use /invasivespecieslist under Lookups to get invasive species lists.","schema":{"type":"string"},"example":"1,2,3"},{"name":"mappingproject","in":"query","description":"A comma separated list of integers to get presentations that are part of those projects. Use /project under Projects to get project ids. ","schema":{"type":"string"},"example":"123,122"}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getpresentations"}}}},"400":{"description":"400 Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}}},"/presentation/{presentationid}":{"get":{"tags":["Presentations"],"description":"Get details about a presentation.","parameters":[{"name":"presentationid","in":"path","required":true,"explode":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Details about the presentation","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"presentationdate":{"type":"string"},"presentationnumber":{"type":"string"},"presentationurl":{"type":"string","format":"url"},"commodities":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"areaid":{"type":"integer"},"area":{"type":"string"},"domainid":{"type":"integer"},"domain":{"type":"string"}}}]}},"authors":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"authorid":{"type":"integer"},"name":{"type":"string"},"organization":{"type":"integer"},"organizationid":{"type":"string"}}}]}},"subjects":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subjectid":{"type":"integer"},"subjectname":{"type":"string"}}}]}},"locations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"countryid":{"type":"integer"},"country":{"type":"string"},"stateid":{"type":"integer"},"state":{"type":"string"}}}]}},"language":{"type":"object","properties":{"language":{"type":"string"},"languageid":{"type":"integer"}}}}}}}},"404":{"description":"Presentation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/404"}}}}}}},"/presentation/filter":{"get":{"tags":["Presentations"],"summary":"Returns a count of presentations for each option images can be filtered by for a given filter","description":"Returns a count of presentations for each option presentations can be filtered by.","parameters":[{"name":"filter","description":"Attribute of an presentation","in":"query","required":true,"schema":{"type":"string","enum":["author","area","subject","type","language","organization","location"]}},{"name":"area","description":"Areas are commodities and other specific settings related to a presentation.  Areas are listed in /area under Lookups. Example: 163,105","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"author","description":"The individual or organization responsible for the publishing of a given presentation.  User IDs are used here and can be found at /user under Lookups. Example: 55566,30.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"type","description":"The type of presentation. One of Generic Presentation(1), Meeting Presentation(2) or Poster(3)","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"organization","description":"The organization of the author responsible for the publishing of a given presentation. IDs are used here and can be found at /user. Example: 341,106.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"subject","description":"The species or topic that pertains to a presentation. Subject IDs can be looked up under /subject","in":"query","required":false,"schema":{"type":"integer"},"example":2425},{"name":"language","in":"query","description":"The language that a presentation is available in. List of languages ids are available under /language.","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":1},{"name":"location","description":"The country, state, and/or counties that presentation pertains to.  Since these can vary in scope, a location Identifier can be a 2 letter country, 2 letter country with a state FIPS code, or 2 letter country code with 5 character FIPS code.Example: US_13, US_01001","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"page","description":"Page number for paging control.","in":"query","required":false,"schema":{"type":"integer","default":1}},{"name":"pagesize","description":"Number of records to return per request.","in":"query","required":false,"schema":{"type":"integer","default":50}},{"name":"search","description":"Search and filter the results.","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFilters"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"502":{"description":"Internal Server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/video":{"get":{"tags":["Video"],"description":"Bugwood Video was started by the University of Georgia Center for Invasive Species and Ecosystem Health in 2011 to provide an easily accessible archive of high quality videos for use in educational applications.","parameters":[{"name":"page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":1},{"name":"pagesize","description":"Number of records returned per page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":50},{"name":"startdate","in":"query","description":" Used to filter videos based on earliest date they were updated. ","schema":{"type":"string","format":"date-time"},"example":"2024-01-01 14:50:07.583"},{"name":"enddate","in":"query","description":" Used to filter videos based on last date they were updated. ","schema":{"type":"string","format":"date-time"},"example":"2025-01-01 14:50:07.583"}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getvideos"}}}},"400":{"description":"400 Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}}},"/video/{videoid}":{"get":{"tags":["Video"],"parameters":[{"name":"videoid","in":"path","required":true,"explode":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Details about the video","content":{"application/json":{"schema":{"type":"object","properties":{"videonumber":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"length":{"type":"string"},"height":{"type":"integer"},"width":{"type":"integer"},"aspect":{"type":"string"},"framerate":{"type":"number"},"dateproduced":{"type":"string"},"datereleased":{"type":"string"},"caption":{"type":"string"},"location":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"dateupdated":{"type":"string"},"reviewdate":{"type":"string"},"priginalvideocodec":{"type":"string"},"originalaudiocodec":{"type":"string"},"originalformat":{"type":"string"},"uploadate":{"type":"string"},"subjects":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subjectname":{"type":"string"},"subjectid":{"type":"integer"}}}]}},"hosts":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"hostname":{"type":"string"},"hostid":{"type":"integer"}}}]}},"commodities":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"areaid":{"type":"integer"},"area":{"type":"string"},"domainid":{"type":"integer"},"domain":{"type":"string"}}}]}},"authors":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"authorid":{"type":"integer"},"name":{"type":"string"},"organization":{"type":"integer"},"organizationid":{"type":"string"}}}]}},"languages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"languageid":{"type":"integer"},"langauge":{"type":"string"}}}]}}}}}}},"404":{"description":"Video not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/404"}}}}}}},"/map/point":{"get":{"tags":["Map"],"summary":"Get list of occurence records","description":"Returns all list of all occurence records.  This returns only a summary of the record used for rendering on a map.  For full details of an occurrence, use the occurrence end points.","parameters":[{"name":"page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":1},{"name":"pagesize","description":"Number of records returned per page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":50},{"name":"startdate","in":"query","description":"Start date of observations","required":false,"style":"form","explode":true,"schema":{"type":"string","format":"date"},"example":"2020/01/01"},{"name":"enddate","in":"query","description":"End date of observations","required":false,"style":"form","explode":true,"schema":{"type":"string","format":"date"},"example":"2020/01/01"},{"name":"dateenteredstart","in":"query","description":"Earliest date observations were entered.","required":false,"style":"form","explode":true,"schema":{"type":"string","format":"date"},"example":"2020/01/01"},{"name":"dateenteredend","in":"query","description":"The most recent date observations were entered.","required":false,"style":"form","explode":true,"schema":{"type":"string","format":"date"},"example":"2020/01/01"},{"name":"dateupdatedstart","in":"query","description":"Earliest date observations were updated.","required":false,"style":"form","explode":true,"schema":{"type":"string","format":"date"},"example":"2020/01/01"},{"name":"dateupdatedend","in":"query","description":"The most recent date observations were updated.","required":false,"style":"form","explode":true,"schema":{"type":"string","format":"date"},"example":"2020/01/01"},{"name":"subjectid","in":"query","description":"A comma separated list of subject ids","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"2425,2426"},{"name":"eradicationstatusid","description":"A comma separated status of the species in the record [ 1 = Positive, 2 = Treated, 3 = Eradicated , 4 = Negative]","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"2,4"},{"name":"project","in":"query","description":"A comma separated list of project ids","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"90,92"},{"name":"hostid","in":"query","description":"A comma separated list of host ids of invasive insect or disease","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,2,3"},{"name":"reporter","in":"query","description":"A comma separated list of reporters. Reporter ids can be found using /user endpoint.","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,2,3"},{"name":"usergroup","in":"query","description":"A comma separated list of usergroups.","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,2,3"},{"name":"category","in":"query","description":"A comma separated list of categories.","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,2,3"},{"name":"division","in":"query","description":"A comma separated list of subject divisions.","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,2,3"},{"name":"habitat","in":"query","description":"A comma separated list of habitat ids","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,2,3"},{"name":"layer","in":"query","description":"A comma separated list of mapping layers.","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,2,3"},{"name":"fips","in":"query","description":"A comma separated list of FIPS codes.","required":false,"schema":{"type":"string"}},{"name":"invasivespecieslist","in":"query","required":false,"description":"A comma separated list invasive species lists.","schema":{"type":"string"}},{"name":"invasivespeciesrank","in":"query","required":false,"description":"The invasive species ranks.","schema":{"type":"string"}},{"name":"keys","in":"query","required":false,"style":"form","explode":true,"description":"A comma separated list of additional data fields returned in the response. Currently supported keys : eradicationstatusid ,reportername ,observationdate ,observationyear ,scientificname ,subjectnumber ,phenology ,quantity ,severity ,host ,hostname ,visittype ,incidence","example":"eradicationstatusid,reportername,observationdate","schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Getmappoints"}}}},"400":{"description":"400 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"502":{"description":"502 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/map/cache":{"post":{"tags":["Map"],"description":"API resouce to generate a chached image of a map.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mapCache"}}},"required":true},"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/map/explore/point":{"get":{"tags":["Map"],"parameters":[{"name":"lat","in":"query","required":true,"style":"form","schema":{"type":"number"},"example":31.45423},{"name":"lon","in":"query","required":true,"style":"form","schema":{"type":"number"},"example":-83.520967},{"name":"page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":1},{"name":"pagesize","description":"Number of records returned per page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"List of point reports","content":{"application/json":{"schema":{"type":"object","properties":{"nextpage":{"type":"string"},"previouspage":{"type":"string"},"totalrows":{"type":"integer"},"page":{"type":"integer"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"objectid":{"type":"integer"},"latitude_decimal":{"type":"number"},"longitude_decimal":{"type":"number"},"eradicationstatus":{"type":"integer"}}}]}}}}}}},"400":{"description":"400 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}}},"/map/explore/reports":{"get":{"tags":["Map"],"parameters":[{"name":"lat","in":"query","required":true,"style":"form","schema":{"type":"number"},"example":31.45423},{"name":"lon","in":"query","required":true,"style":"form","schema":{"type":"number"},"example":-83.520967}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"type":"object","properties":{"nextpage":{"type":"string"},"previouspage":{"type":"string"},"totalrows":{"type":"integer"},"page":{"type":"integer"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"objectid":{"type":"integer"},"latitude_decimal":{"type":"number"},"longitude_decimal":{"type":"number"},"namepart1":{"type":"string"},"namepart2":{"type":"string"},"namepart3":{"type":"string"},"subjectname":{"type":"string"},"displayname":{"type":"string"},"observationdate":{"type":"string","format":"date-time"},"subjectnumber":{"type":"integer"},"images":{"type":"array","items":{"anyOf":[{"type":"string","format":"uri","pattern":"^(https)://"}]}}}}]}}}}}}},"400":{"description":"400 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}}},"/map/explore/subjects":{"get":{"tags":["Map"],"description":"Get 25 most frequently reported subjects within a 10mile radius","parameters":[{"name":"lat","in":"query","required":true,"style":"form","schema":{"type":"number"},"example":31.45423},{"name":"lon","in":"query","required":true,"style":"form","schema":{"type":"number"},"example":-83.520967}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"namepart1":{"type":"string"},"namepart2":{"type":"string"},"namepart3":{"type":"string"},"subjectname":{"type":"string"},"displayname":{"type":"string"},"totalrecords":{"type":"integer"},"subjectnumber":{"type":"integer"},"image":{"type":"string","format":"uri","pattern":"^(https)://"}}}]}}}}}}},"400":{"description":"400 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}}},"/occurrence/{occurrenceid}/revisit/{revisitid}/image":{"post":{"tags":["Occurrence"],"parameters":[{"name":"occurrenceid","in":"path","required":true,"style":"simple","explode":true,"schema":{"type":"string"},"example":"1,2,3"},{"name":"revisitid","in":"path","required":true,"style":"simple","explode":true,"schema":{"type":"string"},"example":"1,2,3"}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/resource":{"get":{"tags":["Resource"],"description":"Get list of available resources in the Regional IPM Center's Resource Database","summary":"Search for resources.","parameters":[{"name":"status","description":"Filters based on the status of the resoruce.  When not authenticated, this returns only publicly available resources.  See /status for a list of statuses","in":"query","required":false,"style":"form","explode":false,"schema":{"type":"integer"},"example":4},{"name":"domain","description":"Domains are groupings of Areas that define a commodity or setting related to a resource. Domains are listed in /domain.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"2,7"},{"name":"area","description":"Areas are commodities and other specific settings related to a resource.  Areas are listed in /area under lookups","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"163,105"},{"name":"publisher","description":"The individual or organization responsible for the publishing of a given resource.  User IDs are used here and can be found at /user.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"55566,30"},{"name":"subject","description":"The species or topic that pertains to a resource.  Subject IDs can be looked up under /subject","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"2425,7171"},{"name":"location","description":"The country, state, and/or counties that a image perstains to.  Since these can vary in scope, a location Identifier can be a 2 letter country, 2 letter country with a state FIPS code, or 2 letter country code with 5 character FIPS code, or 3 letter country code with FIPS code.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"92613001,2604545"},{"name":"language","description":"The language that a resource is available in. List of languages ids are available under /language. ","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1"},{"name":"contributor","description":"The individual or organization contributing to a given resource.  User IDs are used here and can be found at /user.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"35926,29862"},{"name":"format","description":"The format that a version of resource is delivered in (e.g. PDF, Website, Sitemap, Linking Data, etc.)","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"12,3"},{"name":"resourcetype","description":"The type of resource (e.g. expert system, factsheet, field guide, working group, smart phone app, etc.)","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,6"},{"name":"division","description":"Divisions are groups of categories pertaining to a subjects and assiciated with a resource.  This provides a rough grouping of resources related to insects, diseases, wildlife, and other broad topics.  Divisions are avaiable under /division","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"1,3"},{"name":"category","description":"Categories are groups of subjects that have been associated with a resource.  Categories are available under /category","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"68,123"},{"name":"organization","description":"The organization a contributor of a given resource belongs to.  This differs from publisher in that there is only one publisher per resource even though multiple groups may be contributing to the resource.  User IDs are used here and can be found at /user.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"341,106"},{"name":"startdate","in":"query","description":" Used to filter images based on earliest date they were updated. ","schema":{"type":"string","format":"date-time"},"example":"2024-01-01 14:50:07.583"},{"name":"enddate","in":"query","description":" Used to filter images based on last date they were updated. ","schema":{"type":"string","format":"date-time"},"example":"2025-01-01 14:50:07.583"},{"name":"invasivespecieslist","in":"query","description":"A comma separated list of integers to get images of subjects listed in various invasive species lists. Use /invasivespecieslist under Lookups to get invasive species lists.","schema":{"type":"string"},"example":"1,2,3"},{"name":"mappingproject","in":"query","description":"A comma separated list of integers to get images that are part of those projects. Use /project under Projects to get project ids. ","schema":{"type":"string"},"example":"123,122"}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetResources"}}}},"400":{"description":"400 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}},"post":{"tags":["Resource"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/addresource"}}},"required":true},"responses":{"201":{"description":"201 response to indicate subject was created","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"resourceid":{"type":"integer"}}}}}},"400":{"description":"400 response to indicate bad request data. Please refer to the subject schema for the correct schema defenition.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"403":{"description":"403 response indicating the user does not have required permission to create subjects. Currently, only node admins have access to create resources. Please contact the bugwood center to request access.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/403"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/resource/filter":{"get":{"tags":["Resource"],"parameters":[{"name":"filter","description":"Attribute of an resource","in":"query","required":true,"schema":{"type":"string","enum":["category","type","language","location","format","author","publisher","subject","domain","division","area"]}},{"name":"category","description":"Categories are groups of subjects that have been associated with a image.  Categories are available under [/category](#/category/get)","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","description":"The type of resource (e.g. expert system, factsheet, field guide, working group, smart phone app, etc.). List of resource types can be found under [/type](#/type/get)","in":"query","required":false,"schema":{"type":"string"}},{"name":"language","description":"The language that a resource is available in. The list of languages canbe found under [/language](#/language/get)","in":"query","required":false,"schema":{"type":"string"}},{"name":"location","description":"The country, state, and/or counties that a resource perstains to.","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","description":"The format that a version of resource is delivered in (e.g. PDF, Website, Sitemap, Linking Data, etc","in":"query","required":false,"schema":{"type":"string"}},{"name":"author","description":"The individual or organization contributing to a given resource. User IDs are used here and can be found at [/user](#/user/get).","in":"query","required":false,"schema":{"type":"string"}},{"name":"publisher","description":"The individual or organization responsible for the publishing of a given resource. User IDs are used here and can be found at [/user](#/user/get).","in":"query","required":false,"schema":{"type":"string"}},{"name":"subject","description":"The species or topic that pertains to a resource. Subject IDs can be looked up under [/subject](#/subject/get)","in":"query","required":false,"schema":{"type":"string"}},{"name":"domain","description":"Domains are groupings of Areas that define a commodity or setting related to a resource. Domains are listed in [/domain](#/domain/get).","in":"query","required":false,"schema":{"type":"string"}},{"name":"division","description":"Divisions are groups of categories pertaining to a subjects and assiciated with a resource. This provides a rough grouping of resources related to insects, diseases, wildlife, and other broad topics. Divisions are avaiable under [/division](#/division/get) under Lookups.","in":"query","required":false,"schema":{"type":"string"}},{"name":"area","description":"Areas are commodities and other specific settings related to a resource. Areas are listed in [/area](#/area/get).","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","description":"Search and filter the results.","in":"query","schema":{"type":"string"}},{"name":"page","description":"Page number for paging control.","in":"query","required":false,"schema":{"type":"integer","default":1}},{"name":"pagesize","description":"Number of records to return per request.","in":"query","required":false,"schema":{"type":"integer","default":50}}],"responses":{"200":{"description":"Count of resources available for that filter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFilters"}}}},"400":{"description":"Bad request. Please check the parameters to ensure they are valid integers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"404":{"description":"No results found for the given filters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"502":{"description":"Internal Serever Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/resource/{resourceid}/version":{"post":{"tags":["Resource"],"parameters":[{"name":"resourceid","description":"The identifier for a resource","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"integer"},"example":23878}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/addversion"}}},"required":true},"responses":{"200":{"description":"200 response to indicate subject was created","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}}},"400":{"description":"400 response to indicate bad request data. Please make sure the resource id is a valid integer.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"403":{"description":"403 response indicating the user does not have required permission to access the resources. Resources that have not been made public are only visible to admins and resource owners.","headers":{"Access-Control-Allow-Origin":{"style":"simple","explode":false,"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/403"}}}}},"security":[{"EDDMaps_Authentication":[]}]}},"/resource/{resourceid}":{"get":{"tags":["Resource"],"parameters":[{"name":"resourceid","description":"The identifier for a resource","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"integer"},"example":23878}],"responses":{"200":{"description":"Resource details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetResource"}}}},"404":{"description":"Resouce not found. Please check the resource id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"400":{"description":"Bad request. Please check to make sure resourceid is a valid integer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}}},"/image":{"get":{"summary":"Returns a listing of images","description":"Returns a list of images in the Bugwood Database. Images can also be viewed at ipmimages.org .","tags":["Image"],"parameters":[{"name":"area","description":"Areas are commodities and other specific settings related to a image.  Areas are listed in /area under Lookups.Example: 163,105","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"author","description":"The individual or organization responsible for the publishing of a given image.  User IDs are used here and can be found at /user. Example: 55566","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"domain","description":"Domains are groupings of Areas that define a commodity or setting related to a image. Domains are listed in /domain under Lookups.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"subject","description":"The species or topic that pertains to a image.  Subject IDs can be looked up under /subject.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"location","description":"The country, state, and/or counties that a image perstains to.  Since these can vary in scope, a location Identifier can be a 2 letter country, 2 letter country with a state FIPS code, or 2 letter country code with 5 character FIPS code, or 3 letter country code with FIPS code. ","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"9261300, 'US_13', 'US_13010', 92613013,26035355,26092003"},{"name":"contributor","description":"The individual or organization contributing to a given image.  User IDs are used here and can be found at /user.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"imagetype","description":"Image type is used to describe the setting of an image (e.g. expert system, factsheet, field guide, working group, smart phone app, etc.)","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"division","description":"Divisions are groups of categories pertaining to a subjects and associated with a image.  This provides a rough grouping of images related to insects, diseases, wildlife, and other broad topics.  Divisions are avaiable under /division","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"category","description":"Categories are groups of subjects that have been associated with a image.  Categories are available under /category","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"organization","description":"The organization of the author responsible for the publishing of a given image. IDs are used here and can be found at /user.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"class","description":"The taxonomic class of subjects. Use [/subject](#/Subject/get_subject) to get a list of class ids","in":"query","schema":{"type":"string"}},{"name":"famliy","description":"The taxonomic family of subjects. Use [/subject](#/Subject/get_subject) to get a list of family ids.","in":"query","schema":{"type":"string"}},{"name":"descriptor","description":"The image descriptor.","in":"query","schema":{"type":"string"}},{"name":"gender","description":"The gender of the specimen in image. Use [/gender](#/Lookups/get_gender) under Lookups  to get a list of avaiable genders","in":"query","schema":{"type":"string"}},{"name":"host","description":"The host present in the image. Hosts can be found using [/subject](#/Subject/get_subject)","in":"query","schema":{"type":"string"}},{"name":"license","in":"query","schema":{"type":"string"},"description":"List of avaiable commercial licences for the images. Use /license under Lookups to get a list of available licences."},{"name":"node","in":"query","schema":{"type":"string"},"description":"Filter images by available nodes. User /user to look up the nodes."},{"name":"order","in":"query","schema":{"type":"string"},"description":"The taxonomic order of the subject present in the image. Use /subject to get the ids of order.","example":"12,13"},{"name":"orientation","in":"query","schema":{"type":"integer","enum":[0,1]},"description":"The orientation of the image. Use 0 for Portrait and 1 for Landscape."},{"name":"person","in":"query","schema":{"type":"integer","enum":[0,1]},"description":"Use to indicate if a person is present in the image."},{"name":"project","in":"query","schema":{"type":"string"},"description":"The project an image belongs to. Project ids are used and can be found under /projects"},{"name":"resolution","in":"query","schema":{"type":"string"},"description":"A comma separated list of image resolutions.  Available resoultions; 4:Small Print, 5:Large Print, 3:Powerpoint, 2:384x256, 1:192x128"},{"name":"view","in":"query","schema":{"type":"string"},"description":"View refers to the side of the specimen that was photographed or the scale at which the photo was taken(e.g. Face, Lateral / Side, Dorsal). The list of avaiable image views can be found in /lookups"},{"name":"voucher","in":"query","description":"Boolean value indicating if the image is a voucher specimen.","schema":{"type":"integer","enum":[0,1]}},{"name":"specimen","in":"query","description":"A comma separeated list of specimen ids","schema":{"type":"string"}},{"name":"startdate","in":"query","description":" Used to filter images based on earliest date they were updated. ","schema":{"type":"string","format":"date-time"},"example":"2024-01-01 14:50:07.583"},{"name":"enddate","in":"query","description":" Used to filter images based on last date they were updated. ","schema":{"type":"string","format":"date-time"},"example":"2025-01-01 14:50:07.583"},{"name":"invasivespecieslist","in":"query","description":"A comma separated list of integers to get images of subjects listed in various invasive species lists. Use /invasivespecieslist under Lookups to get invasive species lists.","schema":{"type":"string"},"example":"1,2,3"},{"name":"mappingproject","in":"query","description":"A comma separated list of integers to get images that are part of those projects. Use /project under Projects to get project ids. ","schema":{"type":"string"},"example":"123,122"}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetImages"}}}},"404":{"description":"404 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"400":{"description":"404 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}}},"/image/filter":{"get":{"summary":"Returns a count of images for each option images can be filtered by for a given filter","description":"Returns a count of images for each option images can be filtered by for a given filter.","tags":["Image"],"parameters":[{"name":"filter","description":"Attribute of an image","in":"query","required":true,"schema":{"type":"string","enum":["author","area","category","class","domain","descriptor","division","family","gender","host","license","location","node","order","organization","orientation","person","photographer","project","resolution","specimen","specimensource","subject","type","view","specimentype","specimenmuseum","specimenidentificationmethod","specimenknownage","specimenyearclass","specimenlength","specimenweight","collector"]}},{"name":"area","description":"Areas are commodities and other specific settings related to a image.  Areas are listed in /area under Lookups. Example: 163,105","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"author","description":"The individual or organization responsible for the publishing of a given image.  User IDs are used here and can be found at /user under Lookups. Example: 55566,30.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"domain","description":"Domains are groupings of Areas that define a commodity or setting related to a image. Domains are listed in /domain under Lookups. Example: 2,7 ","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"subject","description":"The species or topic that pertains to a image.  Subject IDs can be looked up under /subject. Example: 2425, 7171.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"location","description":"The country, state, and/or counties that a image perstains to.  Since these can vary in scope, a location Identifier can be a 2 letter country, 2 letter country with a state FIPS code, or 2 letter country code with 5 character FIPS code.Example: US_13, US_01001, 92613001","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"contributor","description":"The individual or organization contributing to a given image.  User IDs are used here and can be found at /user. Example: 35926, 29862.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"imagetype","description":"Image type is used to describe the setting of an image (e.g. expert system, factsheet, field guide, working group, smart phone app, etc.)","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"division","description":"Divisions are groups of categories pertaining to a subjects and associated with a image.  This provides a rough grouping of images related to insects, diseases, wildlife, and other broad topics.  Divisions can be found at /division under Lookups. Example: 1,3.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"category","description":"Categories are groups of subjects that have been associated with a image.  Categories are available under /category under Lookups. Example: 68,123.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"organization","description":"The organization of the author responsible for the publishing of a given image. IDs are used here and can be found at /user. Example: 341,106.","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"class","description":"The taxonomic class of subjects. Use /subject to get a list of class ids. Example: 12,42","in":"query","schema":{"type":"string"}},{"name":"famliy","description":"The taxonomic family of subjects. Use /subject to get a list of family ids. Example: 12,42","in":"query","schema":{"type":"string"}},{"name":"descriptor","description":"The image descriptor.","in":"query","schema":{"type":"string"}},{"name":"gender","description":"The gender of the specimen in image. Use /gender under Lookups to get a list of avaiable genders. Example: 1,2.","in":"query","schema":{"type":"string"}},{"name":"host","description":"The host present in the image. Hosts can be found using /subject","in":"query","schema":{"type":"string"}},{"name":"license","in":"query","schema":{"type":"string"},"description":"List of avaiable commercial licences for the images. Use /license under Lookups to get a list of available licences."},{"name":"node","in":"query","schema":{"type":"string"},"description":"Filter images by available nodes. User /user to look up the nodes."},{"name":"order","in":"query","schema":{"type":"string"},"description":"The taxonomic order of the subject present in the image. Use /subject to get the ids of order."},{"name":"orientation","in":"query","schema":{"type":"integer","enum":[0,1]},"description":"The orientation of the image. Use 0 for Portrait and 1 for Landscape."},{"name":"person","in":"query","schema":{"type":"integer","enum":[0,1]},"description":"Use to indicate if a person is present in the image."},{"name":"project","in":"query","schema":{"type":"string"},"description":"The project an image belongs to. Project ids are used and can be found under /projects"},{"name":"resolution","in":"query","schema":{"type":"string"},"description":"A comma separated list of image resolutions.  Available resoultions; 4:Small Print, 5:Large Print, 3:Powerpoint, 2:384x256, 1:192x128. Example: 1,2"},{"name":"view","in":"query","schema":{"type":"string"},"description":"View refers to the side of the specimen that was photographed or the scale at which the photo was taken(e.g. Face, Lateral / Side, Dorsal). The list of avaiable image views can be found in /view under Lookups."},{"name":"voucher","in":"query","description":"Boolean value indicating if the image is a voucher specimen.","schema":{"type":"integer","enum":[0,1]}},{"name":"specimen","in":"query","description":"A comma separeated list of specimen ids","schema":{"type":"string"}},{"name":"specimenmuseum","in":"query","description":"The museum or repositoy a specimen belongs to","schema":{"type":"string"}},{"name":"specimentype","in":"query","description":"The type of the specimen","schema":{"type":"string","enum":["No","Allotype","Holotype","Homotype","Isotype","Lectotype","Neotype","Paratype","Paralectotype","Syntype","Type"]}},{"name":"specimentidentificationmethod","in":"query","description":"The method used to identify the specimen","schema":{"type":"string"}},{"name":"search","in":"query","description":"Search and filter the results.","schema":{"type":"string"}},{"name":"page","description":"Page number for paging control.","in":"query","required":false,"schema":{"type":"integer","default":1}},{"name":"pagesize","description":"Number of records to return per request.","in":"query","required":false,"schema":{"type":"integer","default":50}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFilters"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"502":{"description":"Internal Server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/image/{imageid}":{"get":{"tags":["Image"],"description":"Returns the complete details of an image.","parameters":[{"name":"imageid","description":"The identifier for a image","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"integer"},"example":23878}],"responses":{"200":{"description":"Image details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetImage"}}}},"400":{"description":"Invalid image id. Please ensure the image id is a valid integer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}},"404":{"description":"Image not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/400"}}}}}}}},"components":{"schemas":{"403":{"title":"403 Error","type":"object","properties":{"error":{"type":"string"},"errorMessage":{"type":"string"}}},"401":{"title":"401 Error","type":"object","properties":{"error":{"type":"string"},"errorMessage":{"type":"string"}}},"400":{"title":"400 Error","type":"object","properties":{"error":{"type":"string"},"errorMessage":{"type":"string"}}},"404":{"title":"404 Error","type":"object","properties":{"error":{"type":"string"},"errorMessage":{"type":"string"}}},"Error":{"title":"5xx Errors","type":"object","properties":{"message":{"type":"string","default":"Internal Server Error"}}},"Empty":{"title":"200 OK","type":"object","properties":{"status":{"type":"string","default":"OK"}}},"getpresentations":{"title":"Get Presentaitons","type":"object","properties":{"nextpage":{"type":"string"},"previouspage":{"type":"string"},"totalrows":{"type":"integer"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"presentationdate":{"type":"string"},"presentationnumber":{"type":"string"},"presentationurl":{"type":"string"},"slides":{"type":"integer"}}}]}}}},"getvideos":{"title":"Get video","type":"object","properties":{"nextpage":{"type":"string"},"previouspage":{"type":"string"},"totalrows":{"type":"integer"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"videonumber":{"type":"string"},"title":{"type":"string"},"aspect":{"type":"string"},"length":{"type":"string","format":"time"},"description":{"type":"string"},"type":{"type":"string"},"videourl":{"type":"string","format":"url"},"thumbnail":{"type":"string","format":"url"}}}]}}}},"subject":{"title":"Subject details","type":"object","properties":{"subjectid":{"type":"integer","format":"int32"},"subjectname":{"type":"string"},"namepart1":{"type":"string"},"namepart2":{"type":"string"},"namepart3":{"type":"string"},"subjectidentifier":{"type":"string"},"division":{"type":"integer","format":"int32"},"commonnameresourceid":{"type":"integer","format":"int32"},"scientificnameresourceid":{"type":"integer","format":"int32"},"highertaxonomyresourceid":{"type":"integer","format":"int32"},"language":{"type":"integer","format":"int32"},"divisionname":{"type":"string"},"othercommonnames":{"type":"string"},"description":{"type":"string"},"commonnamereference":{"type":"string"},"scientificnamereference":{"type":"string"},"highertaxonomyreference":{"type":"string"},"languagename":{"type":"string"},"category":{"type":"integer","format":"int32"},"category1name":{"type":"string"},"category2":{"type":"integer","format":"int32"},"category2name":{"type":"string"},"taxonrank":{"type":"string"},"createddate":{"type":"string"},"createdby":{"type":"integer","format":"int32"},"createdbyfirstname":{"type":"string"},"createdbylastname":{"type":"string"},"updatedby":{"type":"integer","format":"int32"},"updatedate":{"type":"string"},"updatedbyfname":{"type":"string"},"updatedbylname":{"type":"string"},"synonyms":{"type":"array","items":{"$ref":"#/components/schemas/subject_synonyms"}},"taxonomy":{"type":"array","items":{"$ref":"#/components/schemas/subject_taxonomy"}},"othersystemids":{"type":"array","items":{"$ref":"#/components/schemas/subject_OtherSystemIds"}},"relations":{"type":"array","items":{"$ref":"#/components/schemas/subject_relations"}},"commoditycommonnames":{"type":"array","items":{"type":"object","title":"Common names in other commodities","properties":{"commodity":{"type":"string"},"name":{"type":"string"},"id":{"type":"integer"}}}}}},"subjectchangelog":{"title":"Subject Change log","type":"object","properties":{"nextpage":{"type":"string"},"previouspage":{"type":"string"},"page":{"type":"integer"},"totalrows":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"udpatedby":{"type":"string"},"updatedate":{"type":"string"},"change":{"type":"string"}}}}}},"revisit":{"title":"Revisits","type":"array","items":{"$ref":"#/components/schemas/revisit_inner"}},"postsite":{"title":"Create site","required":["CentroidLat","CentroidLong","FIPS","Owner","ParentSiteID","SiteName"],"type":"object","properties":{"SiteName":{"type":"string"},"Owner":{"type":"integer","format":"int32"},"Creator":{"type":"integer","format":"int32"},"FIPS":{"maxLength":5,"type":"string"},"Township":{"maxLength":10,"type":"string"},"CentroidLat":{"type":"number"},"CentroidLong":{"type":"number"},"Inactive":{"type":"boolean"},"InactiveDate":{"type":"string"},"ParentSiteID":{"type":"integer","format":"int32"},"SiteGroup":{"type":"integer","format":"int32"},"SiteNotes":{"type":"string"},"Official":{"type":"boolean"},"url":{"type":"string","format":"uri-template"},"SiteType":{"type":"integer"},"Photo":{"type":"string"},"GeogWKT":{"type":"string"},"PhysicalAddress":{"type":"string"},"ContactName":{"maxLength":50,"type":"string"},"ContatctPhone":{"type":"string"},"City":{"type":"string"}}},"login":{"title":"Login","required":["email","password"],"type":"object","properties":{"email":{"description":"The email used to signup for the account.","type":"string","format":"email","example":"user@example.com"},"password":{"type":"string","description":"The password of the user.","example":"password123"},"clientID":{"type":"string","format":"uuid"}}},"Email":{"title":"Reset password","required":["email"],"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"type":"string"},"resetkey":{"type":"string","format":"uuid"}},"description":"Send a request to reset the password. Send the email to request the reset key"},"projectsubject":{"title":"Add subject to project","description":"Schema defining structre of JSON to adda subject to a project","required":["subjectid"],"type":"object","properties":{"subjectid":{"type":"integer"},"collectionid":{"type":"integer"},"images":{"type":"integer"},"alternatename":{"type":"string"},"subjectgroup":{"type":"string"},"subjectsubgroup":{"type":"string"}}},"users":{"title":"Users","type":"object","properties":{"totalrows":{"type":"integer"},"nextpage":{"type":"string"},"previouspage":{"type":"string"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"imagesystemid":{"type":"integer"},"mappingsystemid":{"type":"integer"},"userid":{"type":"string"},"organization":{"type":"string"},"organizationid":{"type":"string"},"websites":{"type":"string"},"logo":{"type":"string"},"photo":{"type":"string"}}}]}}}},"postoccurrence":{"title":"Post occurrence record","required":["reports","requestid"],"type":"object","properties":{"requestid":{"title":"The Requestid Schema","type":"string","format":"uuid","description":"A unique UUID made per request - to prevent duplicate entries."},"reports":{"title":"Reports","type":"array","items":{"$ref":"#/components/schemas/The_Items_Schema"}}}},"GetResource":{"type":"object","title":"Get resource","properties":{"id":{"type":"integer"},"title":{"type":"string"},"description":{"type":"string"},"updateddate":{"type":"string"},"publisher":{"type":"string"},"publisherid":{"type":"integer"},"numberofversions":{"type":"integer"},"status":{"type":"integer"},"node":{"type":"integer"},"thumb":{"type":"string"},"citation":{"type":"string"},"resourceurl":{"type":"string"},"versions":{"type":"array","title":"Version","description":"A list of version available for the resource.","items":{"anyOf":[{"type":"object","properties":{"versionid":{"type":"integer"},"revisionnumber":{"type":"string"},"versiondate":{"type":"string"},"current":{"type":"boolean"},"available":{"type":"boolean"},"revisionnotes":{"type":"string"},"format":{"type":"string"},"language":{"type":"string"},"languageid":{"type":"integer"},"formatid":{"type":"integer"},"fileurl":{"type":"string"},"embedurl":{"type":"string"}}}]}},"subjects":{"type":"array","title":"Subjects","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"genus":{"type":"string"},"species":{"type":"string"},"variety":{"type":"string"}}}]}},"area":{"type":"array","title":"Commodities","description":"A list of commodities associated with the resource.","items":{"anyOf":[{"type":"object","title":"Commodities","properties":{"area_id":{"type":"integer"},"area_name":{"type":"string"},"dom_name":{"title":"Domain name","type":"string"},"dom_id":{"title":"Domain id","type":"integer"}}}]}},"location":{"type":"array","title":"Locations","description":"A list of locations associated with the resource.","items":{"anyOf":[{"type":"object","properties":{"state":{"type":"string"},"country":{"type":"string"},"county":{"type":"string"},"stateid":{"type":"string"},"countyid":{"type":"string"},"countryid":{"type":"string"}}}]}}}},"addresource":{"type":"object","title":"Add resource","description":"The root schema comprises the entire JSON document.","required":["resourcename","publisher","status","node","resourcetype","authors"],"properties":{"resourcename":{"type":"string","title":"The resourcename schema","description":"An explanation about the purpose of this instance.","default":"","example":"example string"},"publisher":{"type":"integer","description":"The publisher of the resource.","default":0,"example":1},"notes":{"type":"string","description":"Notes or comments about the resource.","default":"","example":"Lorem ipsum dolem sit"},"status":{"type":"integer","title":"The status schema","description":"Status of the resource. List of statuses can be looked up in /lookups.","example":1},"node":{"type":"integer","title":"The node schema","description":"An explanation about the purpose of this instance.","default":0,"example":2},"resourcetype":{"type":"integer","title":"The resourcetype schema","description":"An explanation about the purpose of this instance.","default":0,"example":3},"authors":{"type":"array","title":"Authors","description":"A list of resource authors. User ids are used here and can be looked up using /user","default":[],"example":[1,2],"items":{"anyOf":[{"type":"integer","default":0,"example":[1]}]}},"subjects":{"type":"array","title":"Subjects","description":"A list of subjects associated with the resource.","default":[],"example":[1,2],"items":{"anyOf":[{"type":"integer","default":0,"example":[1,2]}]}},"commodities":{"type":"array","title":"Commodities","description":"A list of commodities associated with the resource.","default":[],"example":[1,2],"items":{"anyOf":[{"type":"integer","default":0,"minimum":0,"example":[1,2]}]}},"location":{"type":"array","title":"Locations","default":[],"example":[12,"13001"],"items":{"anyOf":[{"type":"integer","default":0,"example":[12,13001]}]}}}},"addversion":{"type":"object","title":"Add version","description":"Schema to add a version to a resource.","example":[{"format":1,"revisionnumber":"1231-23123","resourceurl":"Lorem ipsum dolem sit","resourcedate":"02/15/2020","current":true,"available":true,"language":97,"nodes":"Lorem ipsum doler sit","deleted":false}],"required":["format","resourcedate","current","available","language","deleted"],"properties":{"format":{"type":"integer","description":"An explanation about the purpose of this instance.","default":0,"example":[1]},"revisionnumber":{"type":"string","title":"The revisionnumber schema","description":"An explanation about the purpose of this instance.","example":["1231-23123"]},"resourceurl":{"type":"string","format":"url","example":["https://developers.bugwoodcloud.org"]},"resourcedate":{"type":"string","title":"The resourcedate schema","format":"date","example":["02/15/2020"]},"current":{"type":"boolean","example":[true]},"available":{"type":"boolean","default":false,"example":[true]},"language":{"type":"integer","example":[97]},"notes":{"type":"string","example":["Lorem ipsum doler sit"]},"deleted":{"type":"boolean","example":[false]}}},"GetResources":{"type":"object","title":"Resources","description":"A list of available resources.","properties":{"nextpage":{"type":"string"},"previouspage":{"type":"string"},"totalrows":{"type":"integer"},"page":{"type":"integer"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"thumb":{"type":"string"},"citation":{"type":"string"},"publisher":{"type":"string"},"numberofversions":{"type":"integer"},"detailsurl":{"type":"string"}}}]}}}},"GetImage":{"type":"object","title":"Get image","description":"Get the image details.","properties":{"imgnum":{"type":"integer"},"subjectid":{"type":"integer"},"subjectname":{"type":"string"},"class":{"type":"string"},"classid":{"type":"integer"},"subjectorder":{"type":"string"},"orderid":{"type":"integer"},"family":{"type":"string"},"familyid":{"type":"integer"},"namepart1":{"type":"string"},"namepart2":{"type":"string"},"namepart3":{"type":"string"},"identifier":{"type":"string"},"hostid":{"type":"integer"},"hostname":{"type":"string"},"hostidentifier":{"type":"string"},"contact":{"type":"integer"},"photographer":{"type":"string"},"organization":{"type":"string"},"photographerwebsite":{"type":"string"},"clname":{"type":"string"},"cfname":{"type":"string"},"corg":{"type":"string"},"contactid":{"type":"integer"},"descriptorid":{"type":"integer"},"descriptorname":{"type":"string"},"description":{"type":"string"},"dateupdated":{"type":"string"},"maxresolution":{"type":"integer"},"node":{"type":"integer"},"dateacquired":{"type":"string"},"datetaken":{"type":"string"},"height":{"type":"integer"},"width":{"type":"integer"},"filename":{"type":"string"},"imagestatus":{"type":"integer"},"citation":{"type":"string"},"versions":{"type":"array","title":"Image versions","description":"A list of available versions of the image.","items":{"anyOf":[{"type":"object","properties":{"versionid":{"type":"integer"},"version":{"type":"string"},"size":{"type":"string"}}}]}}}},"GetFilters":{"type":"object","title":"Get filters","properties":{"nextpage":{"type":"string"},"previouspage":{"type":"string"},"totalrows":{"type":"integer"},"page":{"type":"integer"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer"},"text":{"type":"string"},"count":{"type":"integer"}}}]}}}},"GetImages":{"type":"object","title":"Images","properties":{"nextpage":{"type":"string"},"previouspage":{"type":"string"},"totalrows":{"type":"integer"},"page":{"type":"integer"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"imagenumber":{"type":"integer"},"subjectid":{"type":"integer"},"scientificname":{"type":"string"},"subjectname":{"type":"string"},"contactid":{"type":"integer"},"photographer":{"type":"string"},"organization":{"type":"string"},"baseimageurl":{"type":"string"},"orientation":{"type":"string"},"description":{"type":"string"},"citation":{"type":"string"}}}]}}}},"Location":{"title":"Location information","description":"JSON schema for location lookup.","type":"object","properties":{"adm_level":{"type":"integer"},"country":{"type":"integer"},"countryCentroidLat":{"type":"number"},"countryCentroidLong":{"type":"number"},"countryISO":{"type":"integer"},"countryImage":{"type":"integer"},"countryName":{"type":"string"},"county":{"type":"string"},"countyCentroidLat":{"type":"string"},"countyCentroidLong":{"type":"string"},"countyFIPS":{"type":"string"},"countyName":{"type":"string"},"state":{"type":"string"},"stateCentroidLat":{"type":"number"},"stateCentroidLong":{"type":"string"},"stateName":{"type":"string"},"township":{"type":"string"},"townshipCentroidLat":{"type":"number"},"townshipCentroidLong":{"type":"number"},"townshipName":{"type":"string"}}},"Getmappoints":{"title":"Get map data","type":"object","properties":{"nextpage":{"type":"string"},"previouspage":{"type":"string"},"page":{"type":"integer"},"totalrows":{"type":"integer"},"keys":{"type":"array","items":{"anyOf":[{"type":"string"}]}},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"objectid":{"type":"integer"},"latitude_decimal":{"type":"number"},"longitude_decimal":{"type":"number"},"keys":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"eradicationstatusid":{"type":"integer"},"reportername":{"type":"string"},"observationdate":{"type":"string"},"observationyear":{"type":"integer"},"scientificname":{"type":"string"},"subjectnumber":{"type":"integer"},"phenology":{"type":"string"},"quantity":{"type":"string"},"severity":{"type":"string"},"host":{"type":"integer"},"hostname":{"type":"string"},"visittype":{"type":"string"},"incidence":{"type":"string"}}}]}}}}]}}},"description":"The schema returns minimal occurrence data that can be used to display data on a map."},"postImage":{"title":"Add images","required":["images"],"type":"object","properties":{"images":{"type":"array","items":{"$ref":"#/components/schemas/postImage_images"}}}},"assignuser":{"title":"Add user","required":["userid"],"type":"object","properties":{"userid":{"title":"The Userid Schema","type":"integer","default":0}},"description":"JSON schema to add user to a project or a site."},"userrole":{"title":"User role","required":["role"],"type":"object","properties":{"role":{"type":"integer"}}},"subjectlist":{"title":"Subjects","type":"array","items":{"$ref":"#/components/schemas/subjectlist_inner"}},"occurrencelist":{"title":"Occurrence records","type":"object","properties":{"nextpage":{"type":"string","format":"uri"},"previouspage":{"type":"string","format":"uri"},"page":{"type":"integer"},"totalRows":{"type":"integer"},"data":{"type":"array","items":{"$ref":"#/components/schemas/occurrencelist_inner"}}}},"user":{"title":"User details","required":["email","firstname","lastname"],"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"minLength":8,"type":"string"},"firstname":{"minLength":1,"type":"string"},"lastname":{"type":"string"},"title":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"},"project":{"type":"integer"},"State":{"type":"integer"},"country":{"type":"integer"},"unit":{"type":"string"},"externaluserid":{"type":"string"},"logo":{"type":"string"},"photo":{"type":"string"},"profile":{"type":"string"},"profilepublic":{"type":"boolean"}}},"mapCache":{"type":"object","title":"Cache map","properties":{"url":{"type":"string"},"destination":{"type":"string"},"name":{"type":"string"}}},"subject_synonyms":{"type":"object","title":"Subject synonyms","properties":{"subject":{"type":"integer","format":"int32"},"namepart1":{"type":"string"},"namepart2":{"type":"string"},"namepart3":{"type":"string"},"subjectidentifier":{"type":"string"},"resourcename":{"type":"string"},"synonymcategory":{"type":"string"}}},"subject_taxonomy":{"type":"object","title":"Subject taxonomy","properties":{"rank":{"type":"string"},"id":{"type":"integer","format":"int32"},"name":{"type":"string"}}},"subject_OtherSystemIds":{"type":"object","title":"Other system ids","properties":{"systemid":{"type":"string"},"resourcename":{"type":"string"}}},"subject_relations":{"type":"object","title":"Subject relations","properties":{"relationcount":{"type":"integer"},"relationtype":{"type":"string"}}},"revisit_inner":{"title":"Revisit details","type":"object","properties":{"RevisitID":{"type":"integer","format":"int32"},"RevisitDate":{"type":"string"},"VisitType":{"type":"string"},"Reporter":{"type":"string"},"RecordStatus":{"type":"string"}}},"postImage_images":{"title":"Images","required":["base64Encoded","filename"],"type":"object","properties":{"filename":{"type":"string"},"imageby":{"type":"string"},"base64Encoded":{"type":"string"},"caption":{"type":"string"}}},"subjectlist_inner":{"title":"Subject details","type":"object","properties":{"subjectid":{"type":"integer","format":"int32"},"subjectname":{"type":"string"},"namepart1":{"type":"string"},"namepart2":{"type":"string"},"namepart3":{"type":"string"},"subjectidentifier":{"type":"string"},"division":{"type":"integer","format":"int32"},"divisionname":{"type":"string"},"othercommonnames":{"type":"string"},"description":{"type":"string"},"commonnamereference":{"type":"string"},"scientificnamereference":{"type":"string"},"highertaxonomyreference":{"type":"string"},"category1":{"type":"integer","format":"int32"},"category1name":{"type":"string"},"category2":{"type":"integer","format":"int32"},"category2name":{"type":"string"},"taxonrank":{"type":"string"},"image":{"type":"string"},"validid":{"type":"integer"},"validname":{"type":"string"},"subjectadded":{"type":"string"},"synonyms":{"type":"string"},"displayname":{"type":"string"},"hosts":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"hostid":{"type":"integer"},"hostname":{"type":"string"},"hostphenology":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"hostphenologyid":{"type":"integer"},"hostphenologytext":{"type":"string"}}}]}}}}]}}}},"occurrencelist_inner":{"title":"Occurrence details","type":"object","properties":{"objectid":{"type":"string"},"scientificname":{"type":"string"},"displayname":{"type":"string"},"subjectnumber":{"type":"string"},"habitat":{"type":"string"},"locality":{"type":"string"},"location":{"type":"string"},"coordinates":{"type":"string"},"township":{"type":"string"},"local_ownership":{"type":"string"},"sitename":{"type":"string"},"coordinateuncertaintyinmeters":{"type":"integer"},"waterbodyname":{"type":"string"},"numbercollected":{"type":"string"},"abundance":{"type":"integer"},"density":{"type":"string"},"grossarea":{"type":"string"},"grossareaunits":{"type":"string"},"infestedarea":{"type":"string"},"infestedareaunits":{"type":"string"},"treatment":{"type":"string"},"treatmentarea":{"type":"string"},"treatmentcomments":{"type":"string"},"disturbance":{"type":"string"},"appxquantity":{"type":"string"},"percentcover":{"type":"string"},"eradicationdate":{"type":"string"},"plantstreated":{"type":"integer"},"infestationstatus":{"type":"string"},"eradicationstatus":{"type":"string"},"reporter":{"type":"string"},"observationdate":{"type":"string"},"yearaccuracy":{"type":"string"},"dateentered":{"type":"string"},"dateupdated":{"type":"string"},"updatedby":{"type":"string"},"surveyorid":{"type":"string"},"observationidentifier":{"type":"string"},"dateuncertaintyindays":{"type":"string"},"originalreportedsubject":{"type":"string"},"phenology":{"type":"string"},"sex":{"type":"string"},"host":{"type":"string"},"hostphenology":{"type":"string"},"incidence":{"type":"number"},"incidenceunit":{"type":"string"},"incidencestring":{"type":"string"},"severity":{"type":"number"},"severityunit":{"type":"string"},"severitystring":{"type":"string"},"verificationmethod":{"type":"string"},"identificationcredibility":{"type":"string"},"reviewidentifier":{"type":"string"},"identificationdate":{"type":"string"},"reviewed":{"type":"boolean"},"reviewer":{"type":"string"},"datereviewed":{"type":"string"},"publiccomments":{"type":"string"},"datacollectionmethod":{"type":"string"},"visittype":{"type":"string"},"surveyor":{"type":"string"},"othersurveyors":{"type":"string"},"reporteraffiliation":{"type":"string"},"url":{"type":"string"},"nadatum":{"type":"string"},"comments":{"type":"string"},"projectname":{"type":"string"},"quantity":{"type":"number"},"quantityunits":{"type":"string"},"traptype":{"type":"string"},"numberoftraps":{"type":"integer"},"targetname":{"type":"string"},"targetcount":{"type":"integer"},"targetrange":{"type":"string"},"wkt":{"type":"string"},"geogtype":{"type":"string"},"private":{"type":"boolean"},"recordbasis":{"type":"string"},"managementstatus":{"type":"string"},"populationstatus":{"type":"string"},"CentroidType":{"type":"string"},"revisits":{"type":"array","items":{"anyOf":[{"type":"integer"}]}},"images":{"type":"array","items":{"anyOf":[{"type":"string"}]}},"resistanceprofiles":{"type":"integer"},"layers":{"type":"array","items":{"anyOf":[{"type":"integer"}]}},"diagnostics":{"type":"array","items":{"anyOf":[{"type":"integer"}]}}}},"The_Items_Schema":{"type":"object","title":"Report details","required":["subjectnumber","eradicationstatus","negative","observationdate","project"],"properties":{"reportownershipid":{"type":"integer","minimum":0,"maximum":30},"subjectnumber":{"type":"integer","minimum":1},"eradicationstatus":{"type":"integer","minimum":1,"maximum":4},"negative":{"type":"string","enum":["true","false","1","0"]},"reviewstatus":{"type":"integer","minimum":1,"maximum":15},"hidden":{"type":"integer","maximum":1},"actionable":{"type":"integer","maximum":1},"observationdate":{"type":"string"},"dateupdated":{"type":"string"},"updatedby":{"type":"integer"},"dateentered":{"type":"string"},"project":{"type":"integer"},"country":{"type":"integer","description":"3 digit country code"},"fipscode":{"type":"string","description":"Five-digit Federal Information Processing Standards code which uniquely identified counties and county equivalents in the United States."},"state":{"type":"integer"},"county":{"type":"integer"},"private":{"type":"boolean"},"latitude_decimal":{"type":"number"},"longitude_decimal":{"type":"number"},"nadatum":{"type":"string","maxLength":10},"method":{"type":"string","maxLength":50},"coordinateuncertaintyinmeters":{"type":"number","minimum":0},"centroidtype":{"type":"string","maxLength":50},"abundance":{"type":"integer","minimum":1,"maximum":11},"infestedarea":{"type":"number","minimum":0},"infestedareaunits":{"type":"string","maxLength":20},"grossarea":{"type":"number","minimum":0},"grossareaunits":{"type":"string","maxLength":20},"percentcover":{"type":"string","maxLength":50},"density":{"type":"string","maxLength":50},"quantity":{"type":"integer","minimum":0},"quantityunits":{"type":"string","maxLength":50},"appxquantity":{"type":"string","maxLength":50},"numbercollected":{"type":"string","maxLength":255},"smallestobserved":{"type":"string"},"smallestobservedunits":{"type":"string","maxLength":50},"largestobserved":{"type":"string"},"largestobservedunits":{"type":"string","maxLength":50},"incidence":{"type":"integer","maxLength":10},"incidenceunit":{"type":"string"},"severity":{"type":"number"},"severityunit":{"type":"string"},"host":{"type":"integer"},"hostname":{"type":"string"},"hostphenology":{"type":"string"},"hostdamage":{"type":"string"},"managementstatus":{"type":"string","maxLength":50},"populationstatus":{"type":"string","maxLength":50},"nativecanopycover":{"type":"string","maxLength":10},"habitat":{"type":"integer"},"disturbance":{"type":"string","maxLength":250},"local_ownership":{"type":"string"},"city":{"type":"string","maxLength":50},"sitename":{"type":"string","maxLength":250},"siteid":{"type":"integer"},"townshipid":{"type":"string","maxLength":5},"recordbasis":{"type":"string","maxLength":50},"confidence":{"type":"string","maxLength":50},"herbarium":{"type":"string","maxLength":250},"herbariumrecord":{"type":"string","maxLength":50},"voucher":{"type":"integer"},"observationidentifier":{"type":"string"},"collectiontimeinminutes":{"type":"integer"},"srcname":{"type":"string"},"uuid":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"srcid":{"type":"string","maxLength":50},"reporteraffiliation":{"type":"string","maxLength":50},"reporteraffiliation2":{"type":"string","maxLength":50},"surveyor":{"type":"string"},"othersurveyors":{"type":"string"},"surveyorid":{"type":"string"},"agentsource":{"type":"string"},"yearaccuracy":{"type":"string"},"dateuncertaintyindays":{"type":"integer"},"visittype":{"type":"string"},"studytype":{"type":"string"},"traptype":{"type":"string"},"numberoftraps":{"type":"integer"},"targetname":{"type":"string"},"targetcount":{"type":"number"},"targetrange":{"type":"string"},"sourcetypeid":{"type":"integer","minimum":3,"maximum":19},"phenology":{"type":"string"},"lifestatus":{"type":"string"},"plantdamage":{"type":"boolean"},"sex":{"type":"string","maxLength":50},"url":{"type":"string","format":"uri"},"waterbodyname":{"type":"string"},"waterbodytype":{"type":"string"},"watervelocity":{"type":"string"},"waterclarity":{"type":"string","maxLength":25},"nutrientlevel":{"type":"string"},"salinity":{"type":"string","maxLength":25},"depth":{"type":"integer"},"depthunits":{"type":"string","maxLength":50},"percentplotcovered":{"type":"string","maxLength":25},"percentbodycovered":{"type":"string","maxLength":50},"aspect":{"type":"string","maxLength":50},"soilmoisture":{"type":"string","maxLength":50},"substrate":{"type":"string","maxLength":250},"reviewed":{"type":"boolean"},"reviewedby":{"type":"integer"},"reviewidentifier":{"type":"string"},"identificationdate":{"type":"string"},"datereviewed":{"type":"string"},"reviewer":{"type":"integer"},"verificationmethod":{"type":"string"},"identificationcredibility":{"type":"string"},"reviewercomments":{"type":"string"},"originalreportedsubject":{"type":"string"},"eradicationdate":{"type":"string"},"geogwkt":{"type":"string"},"treatmentsarea":{"type":"number"},"plantstreated":{"type":"integer"},"treatmentareaunits":{"type":"string","maxLength":25},"treatmentcomments":{"type":"string","maxLength":400},"formid":{"type":"string","maxLength":10},"alertsent":{"type":"integer"},"publiccomments":{"type":"string"},"reference":{"type":"string"},"physical_addrss":{"type":"string","maxLength":255},"locality":{"type":"string"},"comments":{"type":"string"},"severitystring":{"type":"string","maxLength":100},"anonymous":{"type":"boolean"},"incidencestring":{"type":"string"},"datacollectionmethod":{"type":"string","maxLength":50},"createddate":{"type":"string"}}},"getlocations":{"title":"Get management area locations","type":"object","description":"The response JSON providing a list of sites and traps for reporting under a management zone.","properties":{"formschema":{"type":"array","title":"The formschema schema","items":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"formid":{"type":"string"},"subjectid":{"type":"integer"},"subjectname":{"type":"string"},"fields":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"fieldname":{"type":"string"},"module":{"type":"string"},"required":{"type":"boolean"},"label":{"type":"string"},"tooltip":{"type":"string"},"notetouser":{"type":"string"},"moduleattributes":{"type":"object","properties":{"looksat":{"type":"array","items":{"anyOf":[{"type":"string"}]}},"options":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"string"}}}]}}}}}}]}}}}]}},"sites":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"siteid":{"type":"integer"},"parent":{"type":"integer"},"lat":{"type":"number"},"lon":{"type":"number"},"sitetype":{"type":"string"},"wkt":{"type":"string"},"form":{"type":"array","items":{"anyOf":[{"type":"string"}]}}}}]}}}},"addchildsubjects":{"type":"array","title":"Add children to subject","items":{"anyOf":[{"type":"integer","minimum":0}]}},"createsubject":{"description":"JSON schema defining the structure of body to create a new subject.","title":"Add subject","type":"object","required":["subjectname","scientificnameresource","commonnameresource","scientificname","notes","rank","parent"],"properties":{"subjectname":{"type":"string","title":"Preferred common name","description":"Preferred common name for the new subject.","default":"","example":"preferred common name"},"scientificnameresource":{"type":"integer","title":"Scientific name reference","description":"The id of resource for reference. Use /resource lookup to get the correct id.","example":0},"commonnameresource":{"type":"integer","title":"Common name reference","description":"The id of resource used as reference for common name. Use /resource lookup to get the id.","example":1},"scientificname":{"type":"string","title":"The Scientific name","description":"The scientific name of the new subject.","example":"scientifcanme"},"notes":{"type":"string","title":"Subject notes","description":"Any additional comments/notes about the subject.","default":"","example":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."},"rank":{"type":"integer","title":"The rank schemaRank","description":"The taxonomic rank of the subject being added. please use the /lookups to get the correct taxonomic rank.","default":0,"example":1},"parent":{"type":"integer","title":"Subject Parent","description":"The parent of the subject being added. The parent should be of a higher taxonomic rank. All subjects should have a parent. if the parent is not present, please add the higher taxonomic parent before adding the subject. If adding Kingdom, please use 0 as parent.","default":0,"example":1},"synonymfor":{"type":"integer","title":"Synonym","description":"The subject number to which the current subject is a synonym."},"synonymcategory":{"type":"string","title":"Synonym Category","description":"Type of synonym being added.","enum":["Synonym","Anamorph","Teleomorph","Misspelling"]},"othercommonnames":{"type":"array","title":"Other common names","description":"A list of common names associated with different commodities.","default":[],"items":{"anyOf":[{"type":"object","required":["commodity","name"],"properties":{"commodity":{"type":"integer","title":"Commodity id.","description":"The id of the commodity. Please use commodity lookup for the id"},"name":{"type":"string","title":"Common name","description":"Common name of the subject associated with the commodity"}}}]}}}},"refresh":{"title":"Refresh bearer token","description":"Schema defining body for refreshing bearer token. ","type":"object","properties":{"refreshtoken":{"type":"string","maxLength":450}}},"Schema3":{"title":"Trap report","description":"Schema defining JSON object to post a report at a monitoring zone","type":"object","required":["reports","requestid"],"properties":{"requestid":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"reports":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subjectnumber":{"type":"integer","minimum":0},"eradicationstatus":{"type":"integer","minimum":1,"maximum":4},"observationdate":{"type":"string"},"quantity":{"type":"array","items":{"anyOf":[{"type":"object","required":["count"],"properties":{"count":{"type":"integer","minimum":0},"egg":{"type":"integer","minimum":0},"larvae":{"type":"integer","minimum":0},"adult":{"type":"integer","minimum":0},"nymph":{"type":"integer","minimum":0},"alata":{"type":"integer","minimum":0},"aptera":{"type":"integer","minimum":0},"instar1":{"type":"integer","minimum":0},"instar2":{"type":"integer","minimum":0},"instar3":{"type":"integer","minimum":0},"instar4":{"type":"integer","minimum":0},"instar5":{"type":"integer","minimum":0},"pupae":{"type":"integer","minimum":0},"male":{"type":"integer","minimum":0},"female":{"type":"integer","minimum":0}}}]}},"quantityunits":{"type":"string"},"incidence":{"type":"integer","minimum":0},"incidenceunit":{"type":"string"},"incidencestring":{"type":"string"},"severity":{"type":"integer","minimum":0},"severityunit":{"type":"string"},"severitystring":{"type":"string"},"collectiontimeinminutes":{"type":"integer","minimum":0},"uuid":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"sourcetypeid":{"type":"integer","enum":[3,4,5,8,17,18,19]},"formid":{"type":"string","maxLength":10},"comments":{"type":"string"}}}]}}}},"objectids":{"title":"Occurrence record added","type":"object","required":["objectids"],"properties":{"objectids":{"type":"array","items":{"anyOf":[{"type":"integer"}]}}}}},"securitySchemes":{"EDDMaps_Authentication":{"type":"apiKey","name":"Authorization","in":"header","x-amazon-apigateway-authtype":"custom"}}}}