|
1136 | 1136 | }
|
1137 | 1137 | },
|
1138 | 1138 | {
|
1139 |
| - "description": "Filter by ID (comma separated for multiple values)", |
1140 |
| - "in": "query", |
1141 |
| - "name": "id", |
1142 |
| - "schema": { |
1143 |
| - "description": "Filter by ID (comma separated for multiple values)", |
1144 |
| - "form": "id", |
1145 |
| - "type": "string" |
1146 |
| - } |
1147 |
| - }, |
1148 |
| - { |
1149 |
| - "description": "Filter by type (comma separated for multiple values)", |
| 1139 | + "description": "Filter by serial (prefix search enabled by appending * to the end of the string) (comma separated for multiple values)", |
1150 | 1140 | "in": "query",
|
1151 |
| - "name": "type", |
| 1141 | + "name": "serial", |
1152 | 1142 | "schema": {
|
1153 |
| - "description": "Filter by type (comma separated for multiple values)", |
1154 |
| - "example": "ZeroN", |
1155 |
| - "form": "type", |
| 1143 | + "description": "Filter by serial (prefix search enabled by appending * to the end of the string) (comma separated for multiple values)", |
| 1144 | + "example": "12001234", |
| 1145 | + "form": "serial", |
1156 | 1146 | "type": "string"
|
1157 | 1147 | }
|
1158 | 1148 | },
|
1159 | 1149 | {
|
1160 |
| - "description": "Filter by IMEI (exact match) (comma separated for multiple values)", |
| 1150 | + "description": "Tag to search for in fully qualified key:value format. Example device_type:truck. Partial searches with wildcards may be used, eg. device_type:* or device_type:veh_*", |
1161 | 1151 | "in": "query",
|
1162 |
| - "name": "imei", |
| 1152 | + "name": "tag", |
1163 | 1153 | "schema": {
|
1164 |
| - "description": "Filter by IMEI (exact match) (comma separated for multiple values)", |
1165 |
| - "form": "imei", |
| 1154 | + "description": "Tag to search for in fully qualified key:value format. Example device_type:truck. Partial searches with wildcards may be used, eg. device_type:* or device_type:veh_*", |
| 1155 | + "example": "device_type:truck", |
| 1156 | + "form": "tag", |
1166 | 1157 | "type": "string"
|
1167 | 1158 | }
|
1168 | 1159 | },
|
|
1178 | 1169 | }
|
1179 | 1170 | },
|
1180 | 1171 | {
|
1181 |
| - "description": "Only show devices connected since this date (super secret)", |
| 1172 | + "description": "Filter by reseller name (exact match)", |
1182 | 1173 | "in": "query",
|
1183 |
| - "name": "_connectedSince", |
| 1174 | + "name": "reseller", |
1184 | 1175 | "schema": {
|
1185 |
| - "description": "Only show devices connected since this date (super secret)", |
1186 |
| - "form": "_connectedSince", |
| 1176 | + "description": "Filter by reseller name (exact match)", |
| 1177 | + "example": "Name*", |
| 1178 | + "form": "reseller", |
1187 | 1179 | "type": "string"
|
1188 | 1180 | }
|
1189 | 1181 | },
|
1190 | 1182 | {
|
1191 |
| - "description": "Include additional data. Enums: config,users,knownDevices,subscription,subscription.plan,reseller,resellerPlan", |
| 1183 | + "description": "Only show devices connected since this date (super secret)", |
1192 | 1184 | "in": "query",
|
1193 |
| - "name": "_include", |
| 1185 | + "name": "_connectedSince", |
1194 | 1186 | "schema": {
|
1195 |
| - "description": "Include additional data. Enums: config,users,knownDevices,subscription,subscription.plan,reseller,resellerPlan", |
1196 |
| - "form": "_include", |
1197 |
| - "items": { |
1198 |
| - "type": "string" |
1199 |
| - }, |
1200 |
| - "type": "array", |
1201 |
| - "uniqueItems": false |
| 1187 | + "description": "Only show devices connected since this date (super secret)", |
| 1188 | + "form": "_connectedSince", |
| 1189 | + "type": "string" |
1202 | 1190 | }
|
1203 | 1191 | },
|
1204 | 1192 | {
|
1205 |
| - "description": "Filter by active status", |
| 1193 | + "description": "Filter by ID (comma separated for multiple values)", |
1206 | 1194 | "in": "query",
|
1207 |
| - "name": "active", |
| 1195 | + "name": "id", |
1208 | 1196 | "schema": {
|
1209 |
| - "description": "Filter by active status", |
1210 |
| - "example": true, |
1211 |
| - "form": "active", |
1212 |
| - "type": "boolean" |
| 1197 | + "description": "Filter by ID (comma separated for multiple values)", |
| 1198 | + "form": "id", |
| 1199 | + "type": "string" |
1213 | 1200 | }
|
1214 | 1201 | },
|
1215 | 1202 | {
|
1216 |
| - "description": "Filter by serial (prefix search enabled by appending * to the end of the string) (comma separated for multiple values)", |
| 1203 | + "description": "Filter by type (comma separated for multiple values)", |
1217 | 1204 | "in": "query",
|
1218 |
| - "name": "serial", |
| 1205 | + "name": "type", |
1219 | 1206 | "schema": {
|
1220 |
| - "description": "Filter by serial (prefix search enabled by appending * to the end of the string) (comma separated for multiple values)", |
1221 |
| - "example": "12001234", |
1222 |
| - "form": "serial", |
| 1207 | + "description": "Filter by type (comma separated for multiple values)", |
| 1208 | + "example": "ZeroN", |
| 1209 | + "form": "type", |
1223 | 1210 | "type": "string"
|
1224 | 1211 | }
|
1225 | 1212 | },
|
|
1245 | 1232 | }
|
1246 | 1233 | },
|
1247 | 1234 | {
|
1248 |
| - "description": "Tag to search for in fully qualified key:value format. Example device_type:truck. Partial searches with wildcards may be used, eg. device_type:* or device_type:veh_*", |
| 1235 | + "description": "Filter by current firmware version", |
1249 | 1236 | "in": "query",
|
1250 |
| - "name": "tag", |
| 1237 | + "name": "config.currentFW", |
1251 | 1238 | "schema": {
|
1252 |
| - "description": "Tag to search for in fully qualified key:value format. Example device_type:truck. Partial searches with wildcards may be used, eg. device_type:* or device_type:veh_*", |
1253 |
| - "example": "device_type:truck", |
1254 |
| - "form": "tag", |
| 1239 | + "description": "Filter by current firmware version", |
| 1240 | + "form": "config.currentFW", |
1255 | 1241 | "type": "string"
|
1256 | 1242 | }
|
1257 | 1243 | },
|
1258 | 1244 | {
|
1259 |
| - "description": "Filter by reseller name (exact match)", |
| 1245 | + "description": "Include additional data. Enums: config,users,knownDevices,subscription,subscription.plan,reseller,resellerPlan", |
1260 | 1246 | "in": "query",
|
1261 |
| - "name": "reseller", |
| 1247 | + "name": "_include", |
1262 | 1248 | "schema": {
|
1263 |
| - "description": "Filter by reseller name (exact match)", |
1264 |
| - "example": "Name*", |
1265 |
| - "form": "reseller", |
1266 |
| - "type": "string" |
| 1249 | + "description": "Include additional data. Enums: config,users,knownDevices,subscription,subscription.plan,reseller,resellerPlan", |
| 1250 | + "form": "_include", |
| 1251 | + "items": { |
| 1252 | + "type": "string" |
| 1253 | + }, |
| 1254 | + "type": "array", |
| 1255 | + "uniqueItems": false |
1267 | 1256 | }
|
1268 | 1257 | },
|
1269 | 1258 | {
|
1270 |
| - "description": "Filter by current firmware version", |
| 1259 | + "description": "Filter by active status", |
1271 | 1260 | "in": "query",
|
1272 |
| - "name": "config.currentFW", |
| 1261 | + "name": "active", |
1273 | 1262 | "schema": {
|
1274 |
| - "description": "Filter by current firmware version", |
1275 |
| - "form": "config.currentFW", |
| 1263 | + "description": "Filter by active status", |
| 1264 | + "example": true, |
| 1265 | + "form": "active", |
| 1266 | + "type": "boolean" |
| 1267 | + } |
| 1268 | + }, |
| 1269 | + { |
| 1270 | + "description": "Filter by IMEI (exact match) (comma separated for multiple values)", |
| 1271 | + "in": "query", |
| 1272 | + "name": "imei", |
| 1273 | + "schema": { |
| 1274 | + "description": "Filter by IMEI (exact match) (comma separated for multiple values)", |
| 1275 | + "form": "imei", |
1276 | 1276 | "type": "string"
|
1277 | 1277 | }
|
1278 | 1278 | },
|
|
3138 | 3138 | "ApiKeyAuth": []
|
3139 | 3139 | }
|
3140 | 3140 | ],
|
3141 |
| - "summary": "Gets a list of geofence lists", |
| 3141 | + "summary": "Gets geofence lists", |
3142 | 3142 | "tags": [
|
3143 |
| - "geofences" |
| 3143 | + "geofencelists" |
3144 | 3144 | ]
|
3145 | 3145 | },
|
3146 | 3146 | "put": {
|
|
3213 | 3213 | "ApiKeyAuth": []
|
3214 | 3214 | }
|
3215 | 3215 | ],
|
3216 |
| - "summary": "Creates a new geofence list", |
| 3216 | + "summary": "Creates a geofence list", |
3217 | 3217 | "tags": [
|
3218 |
| - "geofences" |
| 3218 | + "geofencelists" |
3219 | 3219 | ]
|
3220 | 3220 | }
|
3221 | 3221 | },
|
|
3318 | 3318 | ],
|
3319 | 3319 | "summary": "Deletes a geofence list",
|
3320 | 3320 | "tags": [
|
3321 |
| - "geofences" |
| 3321 | + "geofencelists" |
3322 | 3322 | ]
|
3323 | 3323 | },
|
3324 | 3324 | "get": {
|
|
3419 | 3419 | ],
|
3420 | 3420 | "summary": "Gets a geofence list",
|
3421 | 3421 | "tags": [
|
3422 |
| - "geofences" |
| 3422 | + "geofencelists" |
3423 | 3423 | ]
|
3424 | 3424 | }
|
3425 | 3425 | },
|
|
3531 | 3531 | "ApiKeyAuth": []
|
3532 | 3532 | }
|
3533 | 3533 | ],
|
3534 |
| - "summary": "Shares a geofence list with a user", |
| 3534 | + "summary": "Shares a geofence list", |
3535 | 3535 | "tags": [
|
3536 |
| - "geofences" |
| 3536 | + "geofencelists" |
3537 | 3537 | ]
|
3538 | 3538 | }
|
3539 | 3539 | },
|
|
3643 | 3643 | "ApiKeyAuth": []
|
3644 | 3644 | }
|
3645 | 3645 | ],
|
3646 |
| - "summary": "Deletes a user from a geofence list", |
| 3646 | + "summary": "Removes a user from a geofence list", |
3647 | 3647 | "tags": [
|
3648 |
| - "geofences" |
| 3648 | + "geofencelists" |
3649 | 3649 | ]
|
3650 | 3650 | },
|
3651 | 3651 | "put": {
|
|
3755 | 3755 | ],
|
3756 | 3756 | "summary": "Adds a user to a geofence list",
|
3757 | 3757 | "tags": [
|
3758 |
| - "geofences" |
| 3758 | + "geofencelists" |
3759 | 3759 | ]
|
3760 | 3760 | }
|
3761 | 3761 | },
|
|
3971 | 3971 | }
|
3972 | 3972 | },
|
3973 | 3973 | "/users/{userid}/geofences/{fenceid}": {
|
| 3974 | + "delete": { |
| 3975 | + "parameters": [ |
| 3976 | + { |
| 3977 | + "description": "User ID", |
| 3978 | + "in": "path", |
| 3979 | + "name": "userid", |
| 3980 | + "required": true, |
| 3981 | + "schema": { |
| 3982 | + "type": "integer" |
| 3983 | + } |
| 3984 | + }, |
| 3985 | + { |
| 3986 | + "description": "Geofence ID", |
| 3987 | + "in": "path", |
| 3988 | + "name": "fenceid", |
| 3989 | + "required": true, |
| 3990 | + "schema": { |
| 3991 | + "type": "integer" |
| 3992 | + } |
| 3993 | + } |
| 3994 | + ], |
| 3995 | + "responses": { |
| 3996 | + "204": { |
| 3997 | + "description": "No Content" |
| 3998 | + }, |
| 3999 | + "400": { |
| 4000 | + "content": { |
| 4001 | + "application/json": { |
| 4002 | + "schema": { |
| 4003 | + "$ref": "#/components/schemas/httputil.HTTPError" |
| 4004 | + } |
| 4005 | + } |
| 4006 | + }, |
| 4007 | + "description": "Bad Request" |
| 4008 | + }, |
| 4009 | + "401": { |
| 4010 | + "content": { |
| 4011 | + "application/json": { |
| 4012 | + "schema": { |
| 4013 | + "$ref": "#/components/schemas/httputil.HTTPError" |
| 4014 | + } |
| 4015 | + } |
| 4016 | + }, |
| 4017 | + "description": "Unauthorized" |
| 4018 | + }, |
| 4019 | + "403": { |
| 4020 | + "content": { |
| 4021 | + "application/json": { |
| 4022 | + "schema": { |
| 4023 | + "$ref": "#/components/schemas/httputil.HTTPError" |
| 4024 | + } |
| 4025 | + } |
| 4026 | + }, |
| 4027 | + "description": "Forbidden" |
| 4028 | + }, |
| 4029 | + "404": { |
| 4030 | + "content": { |
| 4031 | + "application/json": { |
| 4032 | + "schema": { |
| 4033 | + "$ref": "#/components/schemas/httputil.HTTPError" |
| 4034 | + } |
| 4035 | + } |
| 4036 | + }, |
| 4037 | + "description": "Not Found" |
| 4038 | + }, |
| 4039 | + "429": { |
| 4040 | + "content": { |
| 4041 | + "application/json": { |
| 4042 | + "schema": { |
| 4043 | + "type": "string" |
| 4044 | + } |
| 4045 | + } |
| 4046 | + }, |
| 4047 | + "description": "Limit exceeded", |
| 4048 | + "headers": { |
| 4049 | + "X-Ratelimit-Limit": { |
| 4050 | + "schema": { |
| 4051 | + "type": "integer" |
| 4052 | + } |
| 4053 | + }, |
| 4054 | + "X-Ratelimit-Remaining": { |
| 4055 | + "schema": { |
| 4056 | + "type": "integer" |
| 4057 | + } |
| 4058 | + }, |
| 4059 | + "X-Ratelimit-Reset": { |
| 4060 | + "schema": { |
| 4061 | + "type": "integer" |
| 4062 | + } |
| 4063 | + } |
| 4064 | + } |
| 4065 | + } |
| 4066 | + }, |
| 4067 | + "security": [ |
| 4068 | + { |
| 4069 | + "ApiKeyAuth": [] |
| 4070 | + } |
| 4071 | + ], |
| 4072 | + "summary": "Deletes a single geofence", |
| 4073 | + "tags": [ |
| 4074 | + "geofences" |
| 4075 | + ] |
| 4076 | + }, |
3974 | 4077 | "get": {
|
3975 | 4078 | "parameters": [
|
3976 | 4079 | {
|
|
4182 | 4285 | "ApiKeyAuth": []
|
4183 | 4286 | }
|
4184 | 4287 | ],
|
4185 |
| - "summary": "Deletes a geofence from the associated list", |
| 4288 | + "summary": "Deletes a geofence from a list", |
4186 | 4289 | "tags": [
|
4187 |
| - "geofences" |
| 4290 | + "geofencelists" |
4188 | 4291 | ]
|
4189 | 4292 | }
|
4190 | 4293 | },
|
|
4295 | 4398 | ],
|
4296 | 4399 | "summary": "Puts a geofence on a list",
|
4297 | 4400 | "tags": [
|
4298 |
| - "geofences" |
| 4401 | + "geofencelists" |
4299 | 4402 | ]
|
4300 | 4403 | }
|
4301 | 4404 | },
|
|
0 commit comments