Documentation for "/api/v1/wimn/sites/permit-actions":

Documentation score: Route: 100% Fields: 100%

Description:

SIC codes associated with a site

Search parameters:

One or more of the following search parameters need to be specified in order to retrieve data:
Parameter nameRequiredDescription
siteId Yes The query id for the site.

Additional parameters:

The following, optional, parameters may be specified:
Parameter nameDescription
format The desired return format. Valid formats are: {json, jsonp, text, csv, xls, ods, and tab}. The default is json.
callback The JSONP callback function name (Note that format needs to be "jsonp").
fields The comma-separated-list of the field names to return from the query. The default is to return all available fields.
nullValue Value to substitute in place of null values. The default is to return null values as "null" (per JSON.org).
limit The number of records to limit the result set to. Behaves like the SQL standard LIMIT clause.
offset Used with Limit-- the record number to start retrieving from. Behaves like the SQL standard OFFSET clause.

Result Set Definitions:

Field nameDescription
actionDate Date of an action at a tank site (generally installation, removal or maintenance of equipment) or leak site (administrative events like requesting information or issuing a letter). Not used for other types of actions.
actionId Indicates the order in which permit actions occurred. (Value is always 0 for tanks and investigation and cleanup events.)
actionTypeName A description of the action, which might be a permit action, a tank installation/removal, or an event that occurred in the course of investigating or cleaning up a potentially contaminated site.
activityName The name of the activity.
activitySystemId The system id for the activity.
activityTypeCode The code for the type of activity that the action is associated with.
activityTypeName The type of activity that the action is associated with.
activitySubtypeName The subtype of activity.
effectiveEndDate The end date of the action. For permits, this is the date that a permit ceased to be in effect, which may be different from the actual permit expiration date. If this field is blank for permit actions, it means that permit is still in effect.
effectiveStartDate The start date of the action. For permits, this is the date that a permit became effective, which may be different from the actual permit issuance date.
programName The name of the MPCA program associated with the activity.
siteId The query id for the site.

Example Queries: