{ "opencollection": "1.0.0", "info": { "name": "MarineTraffic Events AIS API Fleets API", "version": "1.0.0" }, "items": [ { "info": { "name": "Fleets", "type": "folder" }, "items": [ { "info": { "name": "Modify Fleet", "type": "http" }, "http": { "method": "GET", "url": "https://services.marinetraffic.com/api/setfleet/:api_key", "params": [ { "name": "api_key", "value": "", "type": "path", "description": "API key: 40-character hexadecimal number" }, { "name": "mmsi", "value": "", "type": "query", "description": "The Maritime Mobile Service Identity (MMSI) of the vessel you wish to handle, comma separated values supported

You can instead use imo or shipid" }, { "name": "imo", "value": "", "type": "query", "description": "The International Maritime Organization (IMO) number of the vessel you wish to handle, comma separated values supported" }, { "name": "shipid", "value": "", "type": "query", "description": "A uniquely assigned ID by MarineTraffic for the subject vessel, comma separated values supported" }, { "name": "fleet_id", "value": "", "type": "query", "description": "If used, vessel will be added to the specific fleet, otherwise default fleet is used" }, { "name": "active", "value": "", "type": "query", "description": "Possible values are: " }, { "name": "delete", "value": "", "type": "query", "description": "Set this parameter to 1 to delete a vessel from your fleet" } ] }, "docs": "Manage your MarineTraffic fleet.

To **create a new item** in a fleet, use the active parameter. If the item already exists, it will **update** item's status.

The active parameter can have values of 0, 1, 2 which corresponds to the three states of the fleet items (inactive, active, sat enabled)

The **delete** parameter must have a value of 1 and it **removes** the entry from the fleet.

If MMSI, IMO and SHIP ID are passed, the MMSI takes precedence and t" }, { "info": { "name": "Vessels in Fleet", "type": "http" }, "http": { "method": "GET", "url": "https://services.marinetraffic.com/api/getfleet/:api_key", "params": [ { "name": "api_key", "value": "", "type": "path", "description": "API key: 40-character hexadecimal number" }, { "name": "v", "value": "", "type": "query", "description": "Version of the service to be executed. Use version 2 to get the latest" }, { "name": "fleet_id", "value": "", "type": "query", "description": "If used, will return specific fleet otherwise default fleet is used" }, { "name": "page", "value": "", "type": "query", "description": "Specifies the number of the results page to return. Use this parameter to navigate through paginated results (with version 2) when the fleet contains more than 100 vessels." }, { "name": "protocol", "value": "", "type": "query", "description": "Response type. Use one of the following: