{"swagger":"2.0","info":{"version":"v3","title":"3dEye API","description":"# Getting started\r\nEvery API method can be called either by integrator or customer. This methods are marked with corresponding tags [Integrator] or [Customer]. Methods that don't require authorization marked with [Anonymous] tag.\r\n\r\nOn attempt to make an unauthorized request, you will get a response with status 401 (Unauthorized).\r\n\r\nEvery API request is authorized by API key and access token which should be sent in request headers. \r\nYou can obtain API key in Admin panel while access token is obtained using auth/token method. If either token or key is omitted or invalid you will get response with status 403 (Forbidden). See the example below for details.\r\nOn attempt to make an unauthorized request, you will get a response with status 401 (Unauthorized).\r\n\r\nEvery API request is authorized by API key and access token which should be sent in request headers. \r\nYou can obtain API key in Admin panel while access token is obtained using auth/token method. If either token or key is omitted or invalid you will get response with status 403 (Forbidden). See the example below for details.\r\n\r\n### Request to get access token\r\n\r\n```\r\n    curl --location --request POST \"https://staging.3deye.me/webapi/v3/auth/token\"\r\n\t--header \"accept: application/json\"\r\n  \t--header \"Content-Type: application/json\"\r\n  \t--header \"x-api-key: E73zF1Cdsl4nyGG7Q0nRN713mD6d0OmO89R61v3c\"\r\n  \t--data \"{\r\n\t    \"username\": \"integrator\",\r\n\t    \"password\": \"passwordExample\"\r\n\t}\"\r\n```\r\n\r\n#### Response example:\r\n\r\n```\r\n{\r\n    \"accessToken\": \"5RR1PBrDLp4hjYayzZLtL6p0FZKPs4hsJRTAj_oYcg3Hp11uIVfF-H18QILBFuN0qIMjOFGhF3cD-_DCHnM89A9jZELEQ3smK9nyFneVf4thi4TDAbFXETBBtsg1wiDsUhhQaYctGIxHYKSQYjOz9OD4qBuDZs1WRy9fNvT5zA7UzuvvLBHPdxJgxc0LgdYM8dH36UAw8WO5oGHTZ6cmaPnNMWS3b9PDJFRZc5iprCZ0tX65A6yr5BcCaxKxlFitymCfbNZI259QHPZNHWVl4efOlHVM99e-or_eQUO33hGhHN63INdtFrxobGaM2Xp0dUiFwswY4ck2iY0-TITa57SmXv3CH6hqMjKFYjtRCER4HcWWK1BfAzQKY4htQXsYOMffIqgpB0iNrKtnpH6Ti95KR8g\",\r\n\t\"tokenType\": \"bearer\",\r\n\t\"expiresIn\": 1800,\r\n\t\"refreshToken\": \"22c3241c4f41447ca9df4a566a4445d3\",\r\n\t\"clientId\": \"ExternalApi\",\r\n\t\"userName\": \"integrator\",\r\n\t\"accessTokenIssued\": \"Mon, 18 Nov 2019 09:53:22 GMT\",\r\n\t\"accessTokenExpires\": \"Mon, 18 Nov 2019 10:23:22 GMT\",\r\n\t\"refreshTokenIssued\": \"Mon, 18 Nov 2019 09:53:22 GMT\",\r\n\t\"refreshTokenExpires\": \"Mon, 09 Dec 2019 09:53:22 GMT\"\r\n}\r\n```\r\n\r\nThen you should use `accessToken` value from this response in requests header Authorization `Bearer {accessToken}`.\r\n\r\n### Example receiving billing plans for integrator:\r\n\r\n```\r\n    curl --location --request GET \"https://staging.3deye.me/webapi/v3/integrator/plans\"\r\n    --header \"Content-Type: application/json\"\r\n    --header \"x-api-key: E73zF1Cdsl4nyGG7Q0nRN713mD6d0OmO89R61v3c\"\r\n    --header \"Authorization: Bearer 5RR1PBrDLp4hjYayzZLtL6p0FZKPs4hsJRTAj_oYcg3Hp11uIVfF-H18QILBFuN0qIMjOFGhF3cD-_DCHnM89A9jZELEQ3smK9nyFneVf4thi4TDAbFXETBBtsg1wiDsUhhQaYctGIxHYKSQYjOz9OD4qBuDZs1WRy9fNvT5zA7UzuvvLBHPdxJgxc0LgdYM8dH36UAw8WO5oGHTZ6cmaPnNMWS3b9PDJFRZc5iprCZ0tX65A6yr5BcCaxKxlFitymCfbNZI259QHPZNHWVl4efOlHVM99e-or_eQUO33hGhHN63INdtFrxobGaM2Xp0dUiFwswY4ck2iY0-TITa57SmXv3CH6hqMjKFYjtRCER4HcWWK1BfAzQKY4htQXsYOMffIqgpB0iNrKtnpH6Ti95KR8g\"                                   \t\r\n```\r\n### Responses\r\n\r\nA response status of 2xx indicates the operation was successful. Other error codes indicate either a client error (4xx) or a server error (5xx).\r\n\r\n#### Models for error responses\r\n\r\n##### 400: Request error\r\n\r\n```\r\n{\r\n  \"message\": \"Error message\",\r\n  \"code\": \"Error code\"\r\n}\r\n```\r\n\r\n##### 404: Request error\r\n\r\n```\r\n{\r\n  \"errors\": {\r\n  \t  {\r\n  \t\t\"message\": \"Error message\",\r\n  \t\t\"code\": \"Error code\"\r\n  \t  } \t\r\n  }\r\n}\r\n```\r\n\r\n##### 401, 403: Unauthorized, Forbidden error\r\n\r\n```\r\n{\r\n\t\"errors\": {\r\n\t  {\r\n\t\t\"message\": \"Error message\",\r\n\t\t\"code\": \"Error code\"\r\n\t  } \t\r\n\t}\r\n}\r\n```\r\n\r\n##### 422: Validation error\r\n\r\n```\r\n{\r\n\t\"errors\": {\r\n\t  {\r\n\t\t\"message\": \"Error message\",\r\n\t\t\"code\": \"Error code\"\r\n\t  } \t\r\n\t}\r\n}\r\n```\r\n\r\n##### 500 Server side error\r\n\r\n```\r\n{\r\n  \"errors\": {\r\n  \t  {\r\n  \t\t\"message\": \"Error message\",\r\n  \t\t\"code\": \"Error code\"\r\n  \t  } \t\r\n  }\r\n}\r\n```\r\n\r\n### Code generation\r\n\r\nFor generation code based on documentation you are able to use:\r\n\r\n[Swagger codegen](https://swagger.io/tools/swagger-codegen/)\r\n\r\n[NSwag](https://github.com/RicoSuter/NSwag)\r\n"},"host":"staging.3deye.me","basePath":"/webapi","schemes":["https"],"paths":{"/v3/auth/token":{"post":{"tags":["Auth"],"summary":"[Anonymous] Method to retrieve access token.","operationId":"Auth_Token","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"authTokenRequest","in":"body","description":"input data for token","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Auth.AuthTokenRequest"}}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Models.Token.AuthorizationToken"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Models.Token.AuthorizationTokenError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Models.Token.AuthorizationTokenError"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Models.Token.AuthorizationTokenError"}},"409":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Models.Token.AuthorizationTokenError"}},"422":{"description":"","schema":{"$ref":"#/definitions/CommonStructures.ReactiveApiModels.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/CommonStructures.ReactiveApiModels.ApiError"}}}}},"/v3/auth/refresh-tokens":{"get":{"tags":["Auth"],"operationId":"Auth_TokensList","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"clientId","in":"query","required":true,"type":"string"},{"name":"refreshToken","in":"query","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Auth.RefreshTokenToKick"}}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Models.Token.AuthorizationTokenError"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/CommonStructures.ReactiveApiModels.ApiError"}}}},"delete":{"tags":["Auth"],"operationId":"Auth_Delete","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"query","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Auth.RefreshTokenToKick"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Models.Token.AuthorizationTokenError"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"type":"string"}},"500":{"description":"","schema":{"type":"string"}}}}},"/v3/oauth/client/new":{"post":{"tags":["OAuth"],"summary":"[Integrator] Method for registration OAuth clients.","operationId":"OAuth_Register","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"newClient","in":"body","description":"input data for OAuth Client","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.OAuth.NewClient"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.OAuth.OAuthClient"}},"400":{"description":"","schema":{"$ref":"#/definitions/CommonStructures.ReactiveApiModels.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/CommonStructures.ReactiveApiModels.ApiError"}},"403":{"description":"","schema":{"$ref":"#/definitions/CommonStructures.ReactiveApiModels.ApiError"}},"409":{"description":"","schema":{"$ref":"#/definitions/CommonStructures.ReactiveApiModels.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/CommonStructures.ReactiveApiModels.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/CommonStructures.ReactiveApiModels.ApiError"}}}}},"/v3/customers/{id}/alerts/state":{"get":{"tags":["Alert"],"summary":"[Integrator] Get alert arm state.","description":"If customerId is null, will uses customerId for current user","operationId":"Alert_IntegratorGetArmState","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"Customer Id","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Alert.ArmStateResult"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"put":{"tags":["Alert"],"summary":"[Integrator] Set new arm state.","description":"If customerId is null, will uses customerId for current user","operationId":"Alert_IntegratorSetArmState","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"alertState","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Alert.SetAlertState"}},{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Alert.ArmStateResult"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/alerts/state":{"get":{"tags":["Alert"],"summary":"[Customer] Get alert arm state.","description":"If customerId is null, will uses customerId for current user","operationId":"Alert_CustomerGetArmState","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Alert.ArmStateResult"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"put":{"tags":["Alert"],"summary":"[Customer] Set new arm state.","description":"If customerId is null, will uses customerId for current user","operationId":"Alert_CustomerSetArmState","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"alertState","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Alert.SetAlertState"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Alert.ArmStateResult"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/api-key":{"get":{"tags":["ApiKeys"],"summary":"[Integrator] Get API key","operationId":"ApiKeys_GetCustomerApiKey","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.ApiKeys.ApiKey"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/{cameraId}/archives":{"get":{"tags":["Archive"],"summary":"[Customer] Get archives","operationId":"Archive_CustomerGetCustomerArchives","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"cameraId","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"from","in":"query","description":"","required":true,"type":"string","format":"date-time"},{"name":"to","in":"query","description":"","required":true,"type":"string","format":"date-time"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Archive.ArchiveChunk]"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/cameras/{cameraId}/archives":{"get":{"tags":["Archive"],"summary":"[Integrator] Get archives","operationId":"Archive_IntegratorGetArchives","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"cameraId","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"from","in":"query","description":"","required":true,"type":"string","format":"date-time"},{"name":"to","in":"query","description":"","required":true,"type":"string","format":"date-time"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Archive.ArchiveChunk]"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/plans":{"get":{"tags":["BillingPlan"],"summary":"[Integrator] Get billing plans.","operationId":"BillingPlan_GetPlans","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"Array of billing plans","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.BillingPlan.Plan]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/plans/{id}/assign_to_camera":{"put":{"tags":["BillingPlan"],"summary":"[Integrator] Assign a billing plan to a camera.","operationId":"BillingPlan_AssignBillingPlan","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"planForAssignment","in":"body","description":"Plan for assignment","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.BillingPlan.PlanForAssignment"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"Plan Id","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.MessageApiResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/plans/{id}":{"get":{"tags":["BillingPlan"],"summary":"[Integrator] Single billing plan","operationId":"BillingPlan_GetPlan","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"Billing plan","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.BillingPlan.Plan"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/brandings/portal":{"get":{"tags":["Brandings"],"operationId":"Brandings_GetBrandingByUrl","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"url","in":"query","required":false,"type":"string"},{"name":"widgetId","in":"query","required":false,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/brandings/domain/{name}/new":{"post":{"tags":["Brandings"],"summary":"Create configs for domain","operationId":"Brandings_NewDomainConfig","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"name","in":"path","description":"","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/cameras":{"get":{"tags":["Camera"],"summary":"[Integrator] List Cameras","description":"If customerId is null, returns camera for current user","operationId":"Camera_IntegratorGetCameras","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"Customer Id","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras":{"get":{"tags":["Camera"],"summary":"[Integrator,Customer] List Cameras","operationId":"Camera_CustomerGetCameras","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/cameras/{cameraId}":{"get":{"tags":["Camera"],"summary":"[Integrator] Get camera","operationId":"Camera_IntegratorGetCamera","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"cameraId","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"put":{"tags":["Camera"],"summary":"[Integrator] Update camera","operationId":"Camera_IntegratorUpdate","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"cameraId","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"camera","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.UpdateCamera"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"delete":{"tags":["Camera"],"summary":"[Integrator] Delete camera","description":"If customerId is null, it will user customerId of current user","operationId":"Camera_IntegratorDelete","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"cameraId","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/{id}":{"get":{"tags":["Camera"],"summary":"[Customer] Get camera","operationId":"Camera_CustomerGetCamera","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"put":{"tags":["Camera"],"summary":"[Customer] Update camera","operationId":"Camera_CustomerUpdate","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"camera","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.UpdateCamera"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"delete":{"tags":["Camera"],"summary":"[Customer] Delete camera","description":"If customerId is null, it will user customerId of current user","operationId":"Camera_CustomerDelete","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/pnp/search/{registrationCode}":{"get":{"tags":["Camera"],"summary":"[Customer] Search PnP camera by registration code","operationId":"Camera_CustomerSearchPnPCamera","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"registrationCode","in":"path","description":"","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/cameras/pnp/search/{registrationCode}":{"get":{"tags":["Camera"],"summary":"[Integrator] Search PnP camera by registration code","operationId":"Camera_IntegratorSearchPnPCamera","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"registrationCode","in":"path","description":"","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/search/{serialNumber}":{"get":{"tags":["Camera"],"summary":"[Customer] Search camera by serial number","operationId":"Camera_CustomerSearchCameraBySerialNumber","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"serialNumber","in":"path","description":"","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/cameras/search/{serialNumber}":{"get":{"tags":["Camera"],"summary":"[Integrator] Search camera by serial number","operationId":"Camera_IntegratorSearchCameraBySerialNumber","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"serialNumber","in":"path","description":"","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/cameras/{cameraId}/state":{"get":{"tags":["Camera"],"summary":"[Integrator] Camera state","operationId":"Camera_IntegratorGetCameraState","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"cameraId","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CameraStateResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/{id}/state":{"get":{"tags":["Camera"],"summary":"[Customer] Camera state","operationId":"Camera_CustomerGetCameraState","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CameraStateResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/generic/create":{"post":{"tags":["Camera"],"summary":"[Integrator, Customer] Register generic camera","operationId":"Camera_CreateGeneric","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"camera","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CreateGenericCamera"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/onvif/create":{"post":{"tags":["Camera"],"summary":"[Integrator, Customer] Register ONVIF camera","operationId":"Camera_CreateOnvif","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"camera","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CreateOnvifCamera"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/pnp/create":{"post":{"tags":["Camera"],"summary":"[Integrator, Customer] Register Plug and Play camera","operationId":"Camera_CreateP2P","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"camera","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CreateP2PCamera"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/cameras/{cameraId}/assign":{"put":{"tags":["Camera"],"summary":"[Integrator] Assign camera to customer","operationId":"Camera_AssignCustomer","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"cameraId","in":"path","description":"New customer data","required":true,"type":"integer","format":"int32"},{"name":"assignCameraCustomer","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.AssignCameraCustomer"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Cameras.AssignResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/cameras/{cameraId}/unassign":{"put":{"tags":["Camera"],"summary":"[Integrator] Unassign camera","operationId":"Camera_UnAssignCustomer","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"cameraId","in":"path","description":"New customer data","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Cameras.AssignResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/cameras/{cameraId}/pnp-url":{"get":{"tags":["Camera"],"summary":"[Integrator] Get PnP camera URL","operationId":"Camera_IntegratorGetPnPCameraUrl","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"cameraId","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CameraProxyUrl"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/{id}/pnp-url":{"get":{"tags":["Camera"],"summary":"[Customer] Get PnP camera URL","operationId":"Camera_CustomerGetPnPCameraUrl","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CameraProxyUrl"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers":{"get":{"tags":["Customer"],"summary":"[Integrator] List customers","operationId":"Customer_GetCustomers","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[Eye3d.SecurityWebApi.Contracts.Customer.CustomerDtoInfoIntegrator]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/System.Web.Http.Results.NotFoundResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"post":{"tags":["Customer"],"summary":"[Integrator] Create customer","operationId":"Customer_Create","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"input","in":"body","description":"New customer data","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.Models.Customers.CustomerCreationInput"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.Models.Customers.CustomerCreationResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}":{"get":{"tags":["Customer"],"summary":"[Integrator] Customer","operationId":"Customer_Get","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Customer.Customer"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/System.Web.Http.Results.NotFoundResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"put":{"tags":["Customer"],"summary":"[Integrator] Update a customer","operationId":"Customer_Update","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"updateCustomer","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Customer.UpdateCustomer"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.EmptyApiResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/System.Web.Http.Results.ExceptionResult"}}}},"delete":{"tags":["Customer"],"summary":"[Integrator] Delete a customer","operationId":"Customer_Delete","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Customer.Customer"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/System.Web.Http.Results.ExceptionResult"}}}}},"/v3/customers/{id}/set-enabled":{"put":{"tags":["Customer"],"summary":"[Integrator] Enable/Disable a customer","operationId":"Customer_SetEnabled","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"status","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Customer.EnabledDisabled"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Customer.EnabledDisabled"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/System.Web.Http.Results.ExceptionResult"}}}}},"/v3/events/camera":{"get":{"tags":["Event"],"summary":"[Integrator, Customer] Get events for camera.","operationId":"Event_GetEventsForCamera","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"cameraId","in":"query","description":"","required":true,"type":"integer","format":"int32"},{"name":"from","in":"query","description":"","required":true,"type":"string"},{"name":"to","in":"query","description":"","required":true,"type":"string"},{"name":"type","in":"query","description":"","required":true,"type":"string"},{"name":"subType","in":"query","description":"","required":false,"type":"string","enum":["Car","Animal","Person"]},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Event.Event]"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/events":{"post":{"tags":["Event"],"summary":"[Integrator, Customer] Add event","operationId":"Event_CreateEvent","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"newEvent","in":"body","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.NewEvent"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.EventCreationResult"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/events/{deviceId}/new":{"get":{"tags":["Event"],"summary":"[Integrator, Customer] Add event\r\nTemporary endpoint for testing","operationId":"Event_NewEvent","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"deviceId","in":"path","required":true,"type":"integer","format":"int32"},{"name":"type","in":"query","required":true,"type":"string"},{"name":"data","in":"query","required":true,"type":"string"},{"name":"apiKey","in":"query","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.EventCreationResult"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/events/new":{"post":{"tags":["Event"],"summary":"[Integrator, Customer] Add event\r\nTemporary endpoint for testing","operationId":"Event_NewEvent","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"newEvent","in":"body","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.NewEvent"}},{"name":"apiKey","in":"query","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.EventCreationResult"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/layouts":{"get":{"tags":["Layout"],"summary":"[Integrator, Customer] Get cameras layouts","operationId":"Layout_GetCamerasLayouts","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Layout.PossibleGrid]"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/requests":{"get":{"tags":["Requests"],"operationId":"Requests_GetRequestResult","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"query","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Models.BackgroundWork.RequestResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/roles":{"get":{"tags":["Role"],"summary":"[Integrator, Customer] List existing roles","operationId":"Role_GetList","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Controllers.RoleController.RoleResult]"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"post":{"tags":["Role"],"summary":"[Customer] Create a new role","operationId":"Role_Create","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.CustomerNewRole"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Controllers.RoleController.RoleResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/roles":{"get":{"tags":["Role"],"summary":"[Integrator] List customer roles","operationId":"Role_GetList","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Controllers.RoleController.RoleResult]"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"post":{"tags":["Role"],"summary":"[Integrator] Create a new role","operationId":"Role_IntegratorCreate","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.IntegratorNewRole"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Controllers.RoleController.RoleResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/users/{id}/roles":{"get":{"tags":["Role"],"summary":"[Integrator, Customer] List user roles","operationId":"Role_GetListForUser","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Controllers.RoleController.RoleResult]"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/roles/{id}/users":{"get":{"tags":["Role"],"summary":"[Integrator, Customer] List users with a specific role","operationId":"Role_RoleUsers","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V2.Models.Roles.RoleUserRm]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/roles/{id}":{"get":{"tags":["Role"],"summary":"[Integrator, Customer] Get role by id","operationId":"Role_GetRole","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.Role"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"delete":{"tags":["Role"],"summary":"[Integrator, Customer] Delete a role","operationId":"Role_Delete","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.Role"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/roles/{id}/user":{"put":{"tags":["Role"],"summary":"[Customer] Grant a role to a user","operationId":"Role_GrantUser","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"user","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.GrantUser"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.ChangeRoleResult"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"delete":{"tags":["Role"],"summary":"[Integrator, Customer] Revoke a role from a user","operationId":"Role_DismissUser","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"user","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.RevokeUser"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.ChangeRoleResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/roles/{id}/cameras":{"get":{"tags":["Role"],"summary":"[Integrator, Customer] Get cameras with a specific role","operationId":"Role_RoleCameras","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Controllers.RoleController.RoleCamerasResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/roles/{id}/camera":{"put":{"tags":["Role"],"summary":"[Integrator, Customer] Grant a role to a camera","operationId":"Role_GrantToCamera","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.AssignCameraRole"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.AssignCameraRole"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"delete":{"tags":["Role"],"summary":"[Integrator, Customer] Revoke a role from a camera","operationId":"Role_DismissCamera","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"camera","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.RevokeCamera"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.EmptyApiResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/roles/camera/{cameraId}":{"get":{"tags":["Role"],"summary":"[Integrator, Customer] Get role for camera","operationId":"Role_GetCameraRoles","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"cameraId","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Role.Role]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/share":{"post":{"tags":["Share"],"summary":"[Integrator, Customer] Share camera","operationId":"Share_Share","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"sharing","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Sharings.ShareSecurablesRm"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Controllers.SharingsController.SharingResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/share":{"post":{"tags":["Share"],"summary":"[Integrator, Customer] Share camera","operationId":"Share_IntegratorShare","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"sharing","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Sharings.ShareSecurablesRm"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Controllers.SharingsController.SharingResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/sharedclip/clip":{"post":{"tags":["SharedClip"],"operationId":"SharedClip_CheckClip","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"checkClipInput","in":"body","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Models.SharedClip.CheckClipInput"}}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}},"/v3/customers/{id}/statistics":{"get":{"tags":["Statistic"],"summary":"[Integrator] Get statistics for customer","operationId":"Statistic_IntegratorChartStatistics","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[Eye3d.SecurityWebApi.Domain.Services.Statistics.ChartsData]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/statistics":{"get":{"tags":["Statistic"],"summary":"[Customer] Get statistics for customer","operationId":"Statistic_CustomerChartStatistics","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[Eye3d.SecurityWebApi.Domain.Services.Statistics.ChartsData]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/cameras/{cameraId}/statistics":{"get":{"tags":["Statistic"],"summary":"[Integrator] Get statistics for camera","operationId":"Statistic_IntegratorGetCameraStatistics","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"Camera Id","required":true,"type":"integer","format":"int32"},{"name":"startTime","in":"query","description":"","required":true,"type":"string","format":"date-time"},{"name":"endTime","in":"query","description":"","required":true,"type":"string","format":"date-time"},{"name":"cameraId","in":"path","description":"Customer Id","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Statistic.Statistic"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/{id}/statistics":{"get":{"tags":["Statistic"],"summary":"[Customer] Get statistics for camera","operationId":"Statistic_CustomerGetCameraStatistics","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"Camera Id","required":true,"type":"integer","format":"int32"},{"name":"startTime","in":"query","description":"","required":true,"type":"string","format":"date-time"},{"name":"endTime","in":"query","description":"","required":true,"type":"string","format":"date-time"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Statistic.Statistic"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/cameras/{id}/thumbnails":{"get":{"tags":["Thumbnail"],"summary":"[Integrator, Customer] Get thumbnails","operationId":"Thumbnail_GetThumbnailsInfo","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"from","in":"query","description":"","required":true,"type":"string","format":"date-time"},{"name":"to","in":"query","description":"","required":true,"type":"string","format":"date-time"},{"name":"count","in":"query","description":"","required":false,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}},"/v3/users":{"get":{"tags":["User"],"summary":"[Customer] Get users list","operationId":"User_GetUsersList","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V2.Models.Users.User]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"post":{"tags":["User"],"summary":"[Customer] Create user","operationId":"User_CustomerCreate","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.User.CustomerCreateUser"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Controllers.UserController.UserResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"409":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/users":{"get":{"tags":["User"],"summary":"[Integrator] Get users list","operationId":"User_IntegratorGetUsersList","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V2.Models.Users.User]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"post":{"tags":["User"],"summary":"[Integrator] Create user","operationId":"User_IntegratorCreate","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.User.CustomerCreateUser"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Controllers.UserController.UserResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"409":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/users/{id}":{"get":{"tags":["User"],"summary":"[Integrator, Customer] Get users or user by id","operationId":"User_GetUsers","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"Optional user id","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V2.Models.Users.User]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"put":{"tags":["User"],"summary":"[Integrator, Customer] Update user","operationId":"User_EditUser","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"string"},{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.User.CustomerEditUser"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Users.User"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"409":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"delete":{"tags":["User"],"summary":"[Integrator, Customer] Delete user","operationId":"User_Delete","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Users.User"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/users/password/reset":{"post":{"tags":["User"],"summary":"[Anonymous] Reset user password","operationId":"User_ForgotPassword","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.Models.ForgotPasswordRm"}},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"202":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.MessageApiResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/users/password":{"put":{"tags":["User"],"summary":"[Integrator, Customer] Change user password","operationId":"User_ChangePassword","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.Models.ChangePasswordRm"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"type":"string"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/managers":{"get":{"tags":["User"],"summary":"[Integrator] Get managers list","operationId":"User_GetManagersList","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V2.Models.Users.User]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"post":{"tags":["User"],"summary":"[Integrator] Create manager","operationId":"User_IntegratorCreateManager","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.User.IntegratorCreateManager"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Controllers.UserController.UserResult"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"409":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/managers/{id}":{"get":{"tags":["User"],"summary":"[Integrator] Get manager id","operationId":"User_GetManager","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"Manager id","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V2.Models.Users.User]"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"put":{"tags":["User"],"summary":"[Integrator] Update manager","operationId":"User_EditManager","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"string"},{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.User.IntegratorEditManager"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Users.User"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"409":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"delete":{"tags":["User"],"summary":"[Integrator] Delete manager","operationId":"User_DeleteManager","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Users.User"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/hooks":{"get":{"tags":["WebHooks"],"summary":"[Integrator] Get list webhooks for customer.","operationId":"WebHooks_IntegratorListWebHooks","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"Customer Id","required":true,"type":"integer","format":"int32"},{"name":"filter","in":"query","description":"Webhooks state","required":false,"type":"string","enum":["Active","Disabled","All"]},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook]"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"post":{"tags":["WebHooks"],"summary":"[Integrator] Create webhook","operationId":"WebHooks_IntegratorSetWebHook","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.Webhooks.CreateWebook"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/hooks/{webhookId}":{"get":{"tags":["WebHooks"],"summary":"[Integrator] Get webhook for customer.","operationId":"WebHooks_IntegratorWebHooks","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"Customer Id","required":true,"type":"integer","format":"int32"},{"name":"webhookId","in":"path","description":"Id of webhook","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"delete":{"tags":["WebHooks"],"summary":"[Integrator] Delete webhook.","operationId":"WebHooks_IntegratorDeleteWebHook","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"webhookId","in":"path","description":"Id of Webhook","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/hooks/{webhookId}/enable":{"put":{"tags":["WebHooks"],"summary":"[Integrator] Enable webhook.","operationId":"WebHooks_IntegratorSetEnabledWebHooks","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"webhookId","in":"path","description":"Id of Webhook","required":true,"type":"string"},{"name":"setEnabledWebhook","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.Webhooks.SetEnabledWebhook"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/customers/{id}/hooks/{webhookId}/disable":{"put":{"tags":["WebHooks"],"summary":"[Integrator] Disable webhook.","operationId":"WebHooks_IntegratorSetDisabledWebHooks","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"id","in":"path","description":"","required":true,"type":"integer","format":"int32"},{"name":"webhookId","in":"path","description":"Id of Webhook","required":true,"type":"string"},{"name":"setEnabledWebhook","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.Webhooks.SetEnabledWebhook"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/hooks":{"get":{"tags":["WebHooks"],"summary":"[Customer] Get list webhooks.","operationId":"WebHooks_CustomerListWebHooks","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"filter","in":"query","required":false,"type":"string","enum":["Active","Disabled","All"]},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook]"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"post":{"tags":["WebHooks"],"summary":"[Customer] Create webhook","operationId":"WebHooks_CustomerSetWebHook","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"model","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.Webhooks.CreateWebook"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}},"201":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/hooks/{webhookId}":{"get":{"tags":["WebHooks"],"summary":"[Customer] Get webhook.","operationId":"WebHooks_CustomerWebHooks","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"webhookId","in":"path","description":"Id of Webhook","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}},"delete":{"tags":["WebHooks"],"summary":"[Customer] Delete webhook.","operationId":"WebHooks_CustomerDeleteWebHook","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"webhookId","in":"path","description":"Id of Webhook","required":true,"type":"string"},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/hooks/{webhookId}/enable":{"put":{"tags":["WebHooks"],"summary":"[Customer] Enable webhook.","operationId":"WebHooks_CustomerSetEnabledWebHooks","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"webhookId","in":"path","description":"Id of Webhook","required":true,"type":"string"},{"name":"setEnabledWebhook","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.Webhooks.SetEnabledWebhook"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}},"/v3/hooks/{webhookId}/disable":{"put":{"tags":["WebHooks"],"summary":"[Customer] Disable webhook.","operationId":"WebHooks_CustomerSetDisabledWebHooks","consumes":["application/x-www-form-urlencoded","application/json","text/json"],"produces":["application/json","text/json"],"parameters":[{"name":"webhookId","in":"path","description":"Id of Webhook","required":true,"type":"string"},{"name":"setEnabledWebhook","in":"body","description":"","required":true,"schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.Webhooks.SetEnabledWebhook"}},{"name":"Authorization","in":"header","description":"Access token","required":true,"type":"string"},{"name":"x-api-key","in":"header","description":"Api key","required":true,"type":"string"}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}},"400":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"401":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"403":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult"}},"404":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"422":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}},"500":{"description":"","schema":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"}}}}}},"definitions":{"SecurityWebApi.Host.Areas.Api.V3.Models.Alert.ArmStateResult":{"description":"Alert arm state","type":"object","properties":{"armState":{"description":"State","type":"string","readOnly":true}}},"SecurityWebApi.Host.Infrastructure.Api.ApiError":{"description":"Api error response","type":"object","properties":{"message":{"description":"Error message","type":"string","readOnly":true},"code":{"description":"Error code","enum":["generic_error","invalid_value","role_assigned_to_users","api_request","object_outdated","unauthorized","widget_user","user_not_found","role_not_found","widget_not_found","camera_not_found","cant_delete_owner","api_action_not_found","rtsp_unauthorized","rtsp_unavailable","duplicate_object","onvif_unauthorized","onvif_unavailable","invalid_api_key"],"type":"string","readOnly":true}}},"SecurityWebApi.Host.Infrastructure.Api.Results.ErrorApiResult":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Infrastructure.Api.ApiError"},"readOnly":true}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Alert.SetAlertState":{"description":"Update alert arm state","required":["armState"],"type":"object","properties":{"armState":{"description":"New state from allowed values: armed, disarmed, scheduled","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.ApiKeys.ApiKey":{"type":"object","properties":{"id":{"format":"int32","type":"integer"},"created":{"format":"date-time","type":"string"},"updated":{"format":"date-time","type":"string"},"keyValue":{"type":"string"},"customName":{"type":"string"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Archive.ArchiveChunk]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Archive.ArchiveChunk"}}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Archive.ArchiveChunk":{"description":"Archive chunk","type":"object","properties":{"elapsedTimeSec":{"format":"int32","type":"integer"},"url":{"type":"string"},"thumbnailUrl":{"type":"string"},"startTime":{"format":"date-time","type":"string"},"endTime":{"format":"date-time","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Auth.AuthTokenRequest":{"description":"Authorization data for API access token","type":"object","properties":{"username":{"description":"User name used for login into admin portal","type":"string"},"password":{"description":"Password","type":"string"},"refreshToken":{"description":"Token to renew expired access token","type":"string"},"widgetId":{"description":"Widget Id","type":"string"},"widgetToken":{"description":"Client secret key","type":"string"},"clientId":{"description":"ClientId. By default used ExternalApi","type":"string"},"agreedWithTerms":{"description":"Is user agreed with terms of service conditions","type":"boolean"},"device":{"description":"Device description","type":"string"},"deviceId":{"description":"Device Id","type":"string"},"replaceToken":{"description":"Token id to kick","type":"string"},"code":{"description":"Authentication code","type":"string"},"clientSecret":{"description":"OAuth client secret key","type":"string"}}},"SecurityWebApi.Host.Models.Token.AuthorizationToken":{"description":"Authorization token","type":"object","properties":{"accessToken":{"description":"Access token","type":"string"},"tokenType":{"description":"Token type","type":"string"},"expiresIn":{"format":"int32","description":"Expiration time of access token in seconds","type":"integer"},"refreshToken":{"description":"Refresh token","type":"string"},"clientId":{"description":"Client Id","type":"string"},"userName":{"description":"UserName","type":"string"},"accessTokenIssued":{"description":"Who issue access token","type":"string"},"accessTokenExpires":{"description":"Expiration time of access token in seconds, string version","type":"string"},"refreshTokenIssued":{"description":"Who issue refresh token","type":"string"},"refreshTokenExpires":{"description":"Expiration of refresh token time in seconds, string version","type":"string"}}},"SecurityWebApi.Host.Models.Token.AuthorizationTokenError":{"type":"object","properties":{"error":{"type":"string"},"errorDescription":{"type":"string"},"errorCode":{"format":"int32","type":"integer"},"termsOfServiceUrl":{"type":"string"},"privacyPolicyUrl":{"type":"string"}}},"CommonStructures.ReactiveApiModels.ApiError":{"type":"object","properties":{"id":{"format":"int32","type":"integer"},"code":{"format":"int32","type":"integer"},"message":{"type":"string"},"action":{"type":"string"},"timeStampUtc":{"format":"date-time","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Auth.RefreshTokenToKick":{"type":"object","properties":{"id":{"type":"string"},"issued":{"format":"date-time","type":"string"},"expired":{"format":"date-time","type":"string"},"ipAddress":{"type":"string"},"browserString":{"type":"string"},"deviceDescription":{"type":"string"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.BillingPlan.Plan]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.BillingPlan.Plan"}}}},"SecurityWebApi.Host.Areas.Api.V3.Models.BillingPlan.Plan":{"description":"Billing plan","type":"object","properties":{"id":{"format":"int32","type":"integer"},"hasAddons":{"type":"boolean"},"isDisabled":{"type":"boolean"},"type":{"type":"string"},"name":{"type":"string"},"archiveHours":{"format":"int32","type":"integer"},"clipsHours":{"format":"int32","type":"integer"},"maxRecordedEvents":{"format":"int32","type":"integer"},"maxRecordedStorageGb":{"format":"int32","type":"integer"},"resolutionHeight":{"format":"int32","type":"integer"},"resolutionWidth":{"format":"int32","type":"integer"},"fps":{"format":"int32","type":"integer"},"bitrateKbps":{"format":"int32","type":"integer"},"simultaneousViewers":{"format":"int32","type":"integer"},"continiousViewMinutes":{"format":"int32","type":"integer"},"priceForParentPerTbTraffic":{"type":"string"},"priceForParentPerTbStorage":{"type":"string"},"priceForParent":{"type":"string"},"priceForChild":{"type":"string"},"paymentPeriod":{"type":"string"},"analyticsAddon":{"type":"boolean"},"analyticsAddonType":{"enum":["Basic","Advanced"],"type":"string"},"timelapseAddon":{"type":"boolean"},"timelapseDayTimeOnly":{"type":"boolean"},"timelapseSecPerDay":{"format":"int32","type":"integer"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.BillingPlan.PlanForAssignment":{"description":"Assignment plan","required":["cameraId","customerId"],"type":"object","properties":{"cameraId":{"format":"int32","description":"Camera","type":"integer"},"customerId":{"format":"int32","description":"Customer","type":"integer"}}},"SecurityWebApi.Host.Infrastructure.Api.Results.MessageApiResult":{"type":"object","properties":{"message":{"type":"string","readOnly":true}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera"}}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Camera":{"description":"Customer camera","type":"object","properties":{"id":{"format":"int32","type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"deviceBrand":{"type":"string"},"deviceModel":{"type":"string"},"isEnabled":{"type":"boolean"},"customerId":{"format":"int32","type":"integer"},"credentials":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Credentials"},"accessUrls":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.AccessUrls"},"quality":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Quality"},"archiveDurationHours":{"format":"int32","type":"integer"},"isMotionEnabled":{"type":"boolean"},"version":{"type":"string"},"isOnvif":{"type":"boolean"},"isP2P":{"type":"boolean"},"videoStreamState":{"enum":["Online","Offline"],"type":"string"},"p2pState":{"enum":["Registered","AssignedNotInit","InitNotAssigned","Ready","Connected"],"type":"string"},"planId":{"format":"int32","type":"integer"},"pnpRegistrationCode":{"type":"string"},"serialNumber":{"type":"string"},"location":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.GeoLocation"},"timeZone":{"type":"string"},"isAnalyticsEnabled":{"type":"boolean"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Credentials":{"description":"Credentials for authorization","type":"object","properties":{"name":{"description":"Name","type":"string"},"password":{"description":"Password","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.AccessUrls":{"description":"Camera access URLs","type":"object","properties":{"http":{"type":"string"},"rtsp":{"type":"string"},"webRtc":{"type":"string"},"hlsStream":{"type":"string"},"dashStream":{"type":"string"},"rtmpStream":{"type":"string"},"snapShot":{"type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.Quality":{"description":"Video quality","type":"object","properties":{"width":{"format":"int32","type":"integer"},"height":{"format":"int32","type":"integer"},"videoBitRate":{"format":"int32","type":"integer"},"frameRate":{"format":"double","type":"number"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.GeoLocation":{"description":"Location","type":"object","properties":{"country":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"address":{"type":"string"},"postalCode":{"type":"string"},"latitude":{"format":"double","type":"number"},"longitude":{"format":"double","type":"number"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.UpdateCamera":{"description":"Update camera data","type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"deviceBrand":{"type":"string"},"deviceModel":{"type":"string"},"enabled":{"type":"boolean"},"adminName":{"pattern":"^([^ ;:@/?#%])*$","type":"string"},"adminPassword":{"pattern":"^([^ ;:@/?#%])*$","type":"string"},"httpAccessUrl":{"description":"Camera control URL","pattern":"^https?://(.+)","type":"string"},"rtspAccessUrl":{"description":"Camera RTSP URL (RTSP video URL)","pattern":"^((rtsp)|(rtmp))://(.+)","type":"string"},"version":{"type":"string"},"microphoneEnabled":{"type":"boolean"},"timeZone":{"type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CameraStateResult":{"type":"object","properties":{"rtspState":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Cameras.CameraRtspStateRm"},"onvifState":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Cameras.CameraOnvifStateRm"}}},"SecurityWebApi.Host.Areas.Api.V2.Models.Cameras.CameraRtspStateRm":{"type":"object","properties":{"isAvailable":{"type":"boolean"},"failReason":{"type":"string"}}},"SecurityWebApi.Host.Areas.Api.V2.Models.Cameras.CameraOnvifStateRm":{"type":"object","properties":{"isAvailable":{"type":"boolean"},"failReason":{"type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CreateGenericCamera":{"required":["name","httpAccessUrl","rtspAccessUrl","adminName","adminPassword"],"type":"object","properties":{"name":{"type":"string"},"httpAccessUrl":{"pattern":"^https?://(.+)","type":"string"},"rtspAccessUrl":{"pattern":"^((rtsp)|(rtmp))://(.+)","type":"string"},"adminName":{"pattern":"^([^ ;:@/?#%])*$","type":"string"},"deviceBrand":{"type":"string"},"archiveDurationHours":{"format":"int32","type":"integer"},"adminPassword":{"pattern":"^([^ ;:@/?#%])*$","type":"string"},"timeZone":{"type":"string"},"customerId":{"format":"int32","type":"integer"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CreateOnvifCamera":{"required":["name","httpAccessUrl","adminName","adminPassword","rtspPort"],"type":"object","properties":{"name":{"type":"string"},"httpAccessUrl":{"pattern":"^https?://(.+)","type":"string"},"adminName":{"pattern":"^([^ ;:@/?#%])*$","type":"string"},"archiveDurationHours":{"format":"int32","type":"integer"},"adminPassword":{"pattern":"^([^ ;:@/?#%])*$","type":"string"},"rtspPort":{"format":"int32","type":"integer"},"customerId":{"format":"int32","type":"integer"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CreateP2PCamera":{"required":["name","registrationCode"],"type":"object","properties":{"name":{"type":"string"},"registrationCode":{"pattern":"^*([0-9A-Za-z]{15,40})*$","type":"string"},"adminName":{"pattern":"^([^ ;:@/?#%])*$","type":"string"},"adminPassword":{"pattern":"^([^ ;:@/?#%])*$","type":"string"},"customerId":{"format":"int32","type":"integer"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.AssignCameraCustomer":{"description":"Assignment camera data","type":"object","properties":{"planId":{"format":"int32","description":"Billing Plan Id","type":"integer"}}},"SecurityWebApi.Host.Areas.Api.V2.Models.Cameras.AssignResult":{"type":"object","properties":{"cameraId":{"format":"int32","type":"integer"},"customerId":{"format":"int32","type":"integer"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Camera.CameraProxyUrl":{"description":"Camera proxy URL data","type":"object","properties":{"url":{"description":"URL","type":"string"},"expiration":{"description":"Expiration time","type":"string"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[Eye3d.SecurityWebApi.Contracts.Customer.CustomerDtoInfoIntegrator]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/Eye3d.SecurityWebApi.Contracts.Customer.CustomerDtoInfoIntegrator"}}}},"Eye3d.SecurityWebApi.Contracts.Customer.CustomerDtoInfoIntegrator":{"type":"object","properties":{"country":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"},"address":{"type":"string"},"hasP2PCameras":{"type":"boolean"},"created":{"format":"date-time","type":"string"},"modified":{"format":"date-time","type":"string"},"accountEmail":{"type":"string"},"id":{"format":"int32","type":"integer"},"masterCustomerId":{"format":"int32","type":"integer"},"companyName":{"type":"string"},"customerRole":{"type":"string"},"enabled":{"type":"boolean"}}},"System.Web.Http.Results.NotFoundResult":{"type":"object","properties":{"request":{"type":"object","readOnly":true}}},"SecurityWebApi.Host.Areas.Api.Models.Customers.CustomerCreationInput":{"description":"Customer creation data","required":["email","password","firstName","lastName","phoneNumber","companyName","billingName","country","city","address","postalCode"],"type":"object","properties":{"email":{"type":"string"},"password":{"pattern":"/^\\S*$/","type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phoneNumber":{"type":"string"},"companyName":{"type":"string"},"billingName":{"type":"string"},"country":{"pattern":"^[A-Z]*$","type":"string"},"state":{"type":"string"},"city":{"type":"string"},"address":{"type":"string"},"postalCode":{"type":"string"},"recordingDurationHours":{"format":"int32","description":"Cloud recording in hours","type":"integer"},"isEmailConfirmed":{"description":"Is email confirmed?","type":"boolean"},"mustChangePassword":{"description":"Temporary password will be generated","type":"boolean"},"canLoginAdminPortal":{"description":"User can login into admin portal","type":"boolean"},"requireCreditCard":{"description":"User is required to add credit card on login","type":"boolean"},"canShareSecurables":{"description":"User can share cameras","type":"boolean"},"timeZone":{"description":"\tTimezone id\r\n<remarks>For example, W. Europe Standard Time</remarks>","type":"string"},"latitude":{"format":"double","description":"Geo-coordinates latitude part","type":"number"},"longitude":{"format":"double","description":"Geo-coordinates longitude part","type":"number"}}},"SecurityWebApi.Host.Areas.Api.Models.Customers.CustomerCreationResult":{"description":"Customer creation result","type":"object","properties":{"customerId":{"format":"int32","description":"Customer Id","type":"integer"},"ownerStringId":{"description":"Owner Id string representation","type":"string"},"ownerIntId":{"format":"int32","description":"Owner Id","type":"integer"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Customer.Customer":{"description":"Customer","type":"object","properties":{"id":{"format":"int32","type":"integer"},"guid":{"format":"uuid","type":"string","example":"00000000-0000-0000-0000-000000000000"},"enabled":{"type":"boolean"},"deleted":{"type":"boolean"},"companyName":{"type":"string"},"customerRole":{"type":"string"},"description":{"type":"string"},"location":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Camera.GeoLocation"},"timeZone":{"type":"string"},"phone":{"type":"string"},"contactFirstName":{"type":"string"},"contactLastName":{"type":"string"},"contactEmail":{"type":"string"},"contactPhone":{"type":"string"},"masterCustomerId":{"format":"int32","type":"integer"},"recordTtL":{"format":"int32","type":"integer"},"maxActiveRefreshTokensPerUser":{"format":"int32","type":"integer"},"subscriptionPlanId":{"format":"int32","type":"integer"},"endOfTrialPeriodUtc":{"format":"date-time","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Customer.UpdateCustomer":{"description":"Update customer data","type":"object","properties":{"enabled":{"type":"boolean"},"companyName":{"type":"string"},"description":{"type":"string"},"country":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"},"address":{"type":"string"},"latitude":{"format":"double","description":"Customer latitude part of geo-coordinates","type":"number"},"longitude":{"format":"double","description":"Customer longitude part of geo-coordinates","type":"number"},"timeZone":{"type":"string"},"contactFirstName":{"type":"string"},"contactLastName":{"type":"string"},"contactEmail":{"type":"string"},"contactPhone":{"type":"string"}}},"SecurityWebApi.Host.Infrastructure.Api.Results.EmptyApiResult":{"type":"object","properties":{}},"System.Web.Http.Results.ExceptionResult":{"type":"object","properties":{"exception":{"type":"object","readOnly":true},"includeErrorDetail":{"type":"boolean","readOnly":true},"contentNegotiator":{"$ref":"#/definitions/System.Net.Http.Formatting.IContentNegotiator","readOnly":true},"request":{"type":"object","readOnly":true},"formatters":{"type":"array","items":{"$ref":"#/definitions/System.Net.Http.Formatting.MediaTypeFormatter"},"readOnly":true}}},"System.Net.Http.Formatting.IContentNegotiator":{"type":"object","properties":{}},"System.Net.Http.Formatting.MediaTypeFormatter":{"type":"object","properties":{"supportedMediaTypes":{"type":"array","items":{"$ref":"#/definitions/System.Net.Http.Headers.MediaTypeHeaderValue"},"readOnly":true},"supportedEncodings":{"type":"array","items":{"$ref":"#/definitions/System.Text.Encoding"},"readOnly":true},"mediaTypeMappings":{"type":"array","items":{"$ref":"#/definitions/System.Net.Http.Formatting.MediaTypeMapping"},"readOnly":true},"requiredMemberSelector":{"$ref":"#/definitions/System.Net.Http.Formatting.IRequiredMemberSelector"}}},"System.Net.Http.Headers.MediaTypeHeaderValue":{"type":"object","properties":{"charSet":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"#/definitions/System.Net.Http.Headers.NameValueHeaderValue"},"readOnly":true},"mediaType":{"type":"string"}}},"System.Text.Encoding":{"type":"object","properties":{"bodyName":{"type":"string","readOnly":true},"encodingName":{"type":"string","readOnly":true},"headerName":{"type":"string","readOnly":true},"webName":{"type":"string","readOnly":true},"windowsCodePage":{"format":"int32","type":"integer","readOnly":true},"isBrowserDisplay":{"type":"boolean","readOnly":true},"isBrowserSave":{"type":"boolean","readOnly":true},"isMailNewsDisplay":{"type":"boolean","readOnly":true},"isMailNewsSave":{"type":"boolean","readOnly":true},"isSingleByte":{"type":"boolean","readOnly":true},"encoderFallback":{"$ref":"#/definitions/System.Text.EncoderFallback"},"decoderFallback":{"$ref":"#/definitions/System.Text.DecoderFallback"},"isReadOnly":{"type":"boolean","readOnly":true},"codePage":{"format":"int32","type":"integer","readOnly":true}}},"System.Net.Http.Formatting.MediaTypeMapping":{"type":"object","properties":{"mediaType":{"$ref":"#/definitions/System.Net.Http.Headers.MediaTypeHeaderValue","readOnly":true}}},"System.Net.Http.Formatting.IRequiredMemberSelector":{"type":"object","properties":{}},"System.Net.Http.Headers.NameValueHeaderValue":{"type":"object","properties":{"name":{"type":"string","readOnly":true},"value":{"type":"string"}}},"System.Text.EncoderFallback":{"type":"object","properties":{"maxCharCount":{"format":"int32","type":"integer","readOnly":true}}},"System.Text.DecoderFallback":{"type":"object","properties":{"maxCharCount":{"format":"int32","type":"integer","readOnly":true}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Customer.EnabledDisabled":{"type":"object","properties":{"isEnabled":{"type":"boolean"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Event.Event]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Event.Event"}}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Event.Event":{"type":"object","properties":{"id":{"format":"int32","type":"integer"},"type":{"type":"string"},"description":{"type":"string"},"tags":{"type":"string"},"customerData":{"type":"string"},"data":{"type":"string"},"startTimeUtc":{"format":"date-time","type":"string"},"endTimeUtc":{"format":"date-time","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Event.NewEvent":{"description":"New event","type":"object","properties":{"deviceId":{"format":"int32","description":"Device Id","type":"integer"},"timeStamp":{"format":"date-time","description":"Event time","type":"string"},"type":{"description":"Type","type":"string"},"data":{"description":"Custom data","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Event.EventCreationResult":{"description":"Event","type":"object","properties":{"id":{"format":"int32","description":"Event id","type":"integer"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Layout.PossibleGrid]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Layout.PossibleGrid"}}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Layout.PossibleGrid":{"description":"Grids for camera layout","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"rows":{"format":"int32","type":"integer"},"columns":{"format":"int32","type":"integer"},"cells":{"type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Layout.PossibleGridCell"}}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Layout.PossibleGridCell":{"description":"Grid cell","type":"object","properties":{"rowSpan":{"format":"int32","type":"integer"},"colSpan":{"format":"int32","type":"integer"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.OAuth.NewClient":{"type":"object","properties":{"redirectUrl":{"pattern":"^https?://(.+)","type":"string"},"name":{"type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.OAuth.OAuthClient":{"type":"object","properties":{"name":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"url":{"type":"string"}}},"SecurityWebApi.Host.Models.BackgroundWork.RequestResult":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object"},"state":{"enum":["Scheduled","Processing","Completed","Cancelled","Error"],"type":"string"},"error":{"type":"string"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Controllers.RoleController.RoleResult]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Controllers.RoleController.RoleResult"}}}},"SecurityWebApi.Host.Areas.Api.V3.Controllers.RoleController.RoleResult":{"description":"Role response","type":"object","properties":{"id":{"format":"int32","description":"Role Id","type":"integer"},"name":{"description":"Role name","type":"string"},"description":{"description":"Role description","type":"string"},"isBuiltIn":{"description":"Is built-in role?","type":"boolean"},"type":{"description":"Type of role","enum":["Unknown","Owner","Admin","Manager","Guard"],"type":"string"},"camerasCount":{"format":"int32","description":"Cameras count granted on role","type":"integer"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Role.CustomerNewRole":{"required":["name"],"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Role.IntegratorNewRole":{"required":["type","name"],"type":"object","properties":{"type":{"enum":["Admin","Guard"],"type":"string"},"name":{"type":"string"},"description":{"type":"string"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V2.Models.Roles.RoleUserRm]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Roles.RoleUserRm"}}}},"SecurityWebApi.Host.Areas.Api.V2.Models.Roles.RoleUserRm":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"userName":{"type":"string"},"id":{"type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Role.Role":{"type":"object","properties":{"id":{"format":"int32","description":"Role Id","type":"integer"},"name":{"description":"Role name","type":"string"},"description":{"description":"Role description","type":"string"},"isBuiltIn":{"description":"Is built-in role?","type":"boolean"},"type":{"description":"Type of role","enum":["Unknown","Owner","Admin","Manager","Guard"],"type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Role.GrantUser":{"description":"Grant role for user","type":"object","properties":{"userId":{"description":"User Id","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Role.ChangeRoleResult":{"type":"object","properties":{"userId":{"type":"string"},"roles":{"type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.Role"}}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Role.RevokeUser":{"type":"object","properties":{"userId":{"description":"User Id","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Controllers.RoleController.RoleCamerasResult":{"description":"Camera roles response","type":"object","properties":{"cameras":{"type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Roles.RoleCameraRm"},"readOnly":true}}},"SecurityWebApi.Host.Areas.Api.V2.Models.Roles.RoleCameraRm":{"type":"object","properties":{"cameraId":{"format":"int32","type":"integer"},"permissions":{"type":"array","items":{"enum":["View","SaveClip","Share","Ptz","EditSettings","Timelapse","Delete"],"type":"string"}}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Role.AssignCameraRole":{"description":"Assignment role to camera","type":"object","properties":{"cameraId":{"format":"int32","description":"Camera Id","type":"integer"},"permissions":{"type":"array","items":{"enum":["View","SaveClip","Share","Ptz","EditSettings","Timelapse","Delete"],"type":"string"}}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Role.RevokeCamera":{"type":"object","properties":{"cameraId":{"format":"int32","description":"Camera Id","type":"integer"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Role.Role]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Role.Role"}}}},"SecurityWebApi.Host.Areas.Api.V2.Models.Sharings.ShareSecurablesRm":{"description":"Share cameras model","required":["name"],"type":"object","properties":{"cameras":{"description":"Cameras Id list","type":"array","items":{"format":"int32","type":"integer"}},"shareWith":{"description":"Subscribers for ex.: customer1@mail.com, subscriber@mail.com","type":"array","items":{"type":"string"}},"expiredAt":{"format":"date-time","description":"Expiration time","type":"string"},"expireInHours":{"format":"int32","description":"Expiration time in hours","type":"integer"},"description":{"description":"Description","type":"string"},"name":{"description":"Name","type":"string"},"password":{"description":"Password for share","pattern":"/^\\S*$/","type":"string"},"archiveStartTime":{"format":"date-time","description":"Begin time for archive","type":"string"},"archiveEndTime":{"format":"date-time","description":"End time for archive","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V2.Controllers.SharingsController.SharingResult":{"type":"object","properties":{"id":{"format":"int32","type":"integer"},"isEnabled":{"type":"boolean"},"description":{"type":"string"},"name":{"type":"string"},"expiredAt":{"format":"date-time","type":"string"},"fullSharedLink":{"type":"string"},"shortenedSharedLink":{"type":"string"},"sharedLinkSentToEmails":{"type":"array","items":{"type":"string"}},"archiveStartTime":{"format":"date-time","type":"string"},"archiveEndTime":{"format":"date-time","type":"string"}}},"SecurityWebApi.Host.Models.SharedClip.CheckClipInput":{"required":["url"],"type":"object","properties":{"url":{"type":"string"},"password":{"type":"string"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[Eye3d.SecurityWebApi.Domain.Services.Statistics.ChartsData]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/Eye3d.SecurityWebApi.Domain.Services.Statistics.ChartsData"}}}},"Eye3d.SecurityWebApi.Domain.Services.Statistics.ChartsData":{"type":"object","properties":{"reportDate":{"format":"date-time","type":"string"},"customerId":{"format":"int32","type":"integer"},"cameraName":{"type":"string"},"companyName":{"type":"string"},"publishingPointId":{"format":"int32","type":"integer"},"isClientSide":{"format":"int32","type":"integer"},"recordedTime":{"format":"int32","type":"integer"},"storageUsed":{"format":"int64","type":"integer"},"recordedTimeClip":{"format":"int32","type":"integer"},"storageUsedClip":{"format":"int64","type":"integer"},"trafficOutBytes":{"format":"int64","type":"integer"},"motionEventsCaptured":{"format":"int32","type":"integer"},"archivePlanHours":{"format":"int32","type":"integer"},"country":{"type":"string"},"postalCode":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"streetAdress":{"type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Statistic.Statistic":{"type":"object","properties":{"youPay":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Statistic.StatisticCost","description":"You pays that sum"},"targetPaysYou":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Statistic.StatisticCost","description":"Target customer pays you. Null for self statistics"},"lastDate":{"format":"date-time","type":"string"},"archivesLengthCloud":{"type":"string"},"storageUsedCloudAverage":{"format":"double","type":"number"},"storageUsedCloudTotal":{"format":"double","type":"number"},"clipsLengthCloud":{"type":"string"},"storageUsedClipsCloudAverage":{"format":"double","type":"number"},"storageUsedClipsCloudTotal":{"format":"double","type":"number"},"trafficCloud":{"format":"double","type":"number"},"bandwidthCloudAverage":{"format":"double","type":"number"},"archivesLengthLocal":{"type":"string"},"storageUsedLocalAverage":{"format":"double","type":"number"},"storageUsedLocalTotal":{"format":"double","type":"number"},"clipsLengthLocal":{"type":"string"},"storageUsedClipsLocalAverage":{"format":"double","type":"number"},"storageUsedClipsLocalTotal":{"format":"double","type":"number"},"trafficLocal":{"format":"double","type":"number"},"bandwidthLocalAverage":{"format":"double","type":"number"},"camerasQuantity":{"format":"int32","type":"integer"},"smsSentQuantity":{"format":"int32","type":"integer"},"emailsQuantity":{"format":"int32","type":"integer"},"localServersQuantity":{"format":"int32","type":"integer"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Statistic.StatisticCost":{"type":"object","properties":{"costDollars":{"format":"double","type":"number"},"subscriptionPlanTitle":{"type":"string"},"plan":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.BillingPlan.Plan"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V2.Models.Users.User]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V2.Models.Users.User"}}}},"SecurityWebApi.Host.Areas.Api.V2.Models.Users.User":{"type":"object","properties":{"id":{"type":"string"},"userId":{"format":"int32","type":"integer"},"firstName":{"type":"string"},"lastName":{"type":"string"},"userName":{"type":"string"},"email":{"type":"string"},"disabled":{"type":"boolean"},"accountRoles":{"type":"array","items":{"$ref":"#/definitions/Eye3d.SecurityWebApi.Contracts.AccountRole.AccountRoleDtoInfo"}},"phoneNumber":{"type":"string"}}},"Eye3d.SecurityWebApi.Contracts.AccountRole.AccountRoleDtoInfo":{"type":"object","properties":{"id":{"format":"int32","type":"integer"},"name":{"type":"string"},"roleType":{"enum":["AccountOwner","AccountAdmin","AccountManager","AccountGuard","OperationalManager","BillingManager","AccountSharing","CameraSharing","SalesManager"],"type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.User.CustomerCreateUser":{"required":["firstName","lastName","email","password"],"type":"object","properties":{"accountRolesIds":{"description":"Array of account roles ids","type":"string"},"firstName":{"description":"First name","type":"string"},"lastName":{"description":"Last name","type":"string"},"email":{"description":"Email","type":"string"},"password":{"description":"Password","pattern":"/^\\S*$/","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Controllers.UserController.UserResult":{"type":"object","properties":{"id":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"userName":{"type":"string"},"accountRoles":{"description":"List of account roles Ids.","type":"array","items":{"format":"int32","type":"integer"}},"isEditable":{"type":"boolean"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.User.CustomerEditUser":{"type":"object","properties":{"accountRolesIds":{"description":"Array of account roles ids","type":"string"},"newFirstName":{"description":"New first name","type":"string"},"newLastName":{"description":"New last name","type":"string"},"newEmail":{"description":"New Email","type":"string"}}},"SecurityWebApi.Host.Areas.Api.Models.ForgotPasswordRm":{"required":["email"],"type":"object","properties":{"email":{"type":"string"}}},"SecurityWebApi.Host.Areas.Api.Models.ChangePasswordRm":{"required":["currentPassword","newPassword"],"type":"object","properties":{"currentPassword":{"pattern":"/^\\S*$/","type":"string"},"newPassword":{"pattern":"/^\\S*$/","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.User.IntegratorCreateManager":{"required":["accountRoleId","firstName","lastName","email","password"],"type":"object","properties":{"accountRoleId":{"format":"int32","description":"Account role id","type":"integer"},"firstName":{"description":"First name","type":"string"},"lastName":{"description":"Last name","type":"string"},"email":{"description":"Email","type":"string"},"password":{"description":"Password","pattern":"/^\\S*$/","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.User.IntegratorEditManager":{"type":"object","properties":{"accountRoleId":{"format":"int32","description":"Account role id","type":"integer"},"newFirstName":{"description":"New first name","type":"string"},"newLastName":{"description":"New last name","type":"string"},"newEmail":{"description":"New Email","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Event.Webhooks.CreateWebook":{"description":"Subscribe Webhooks model","required":["callbackUrl","eventTypes"],"type":"object","properties":{"callbackUrl":{"description":"Url for POST callback method","type":"string"},"name":{"description":"Name","type":"string"},"accountRoleId":{"format":"int32","description":"Id of Role","type":"integer"},"eventTypes":{"description":"Event type","type":"array","items":{"type":"string"}},"payloadType":{"description":"Payload type","type":"string"},"httpMethod":{"description":"HTTP Method","type":"string"},"username":{"description":"Username","type":"string"},"password":{"description":"Password","type":"string"}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook":{"type":"object","properties":{"id":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string"}},"accountRoleId":{"format":"int32","type":"integer"},"url":{"type":"string"},"name":{"type":"string"},"isDisabled":{"type":"boolean"},"reason":{"type":"string"},"created":{"format":"date-time","type":"string"},"updated":{"format":"date-time","type":"string"},"payloadType":{"type":"string"},"httpMethod":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"}}},"SecurityWebApi.Host.Infrastructure.Api.CollectionResult[SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook]":{"description":"Collection API Result","type":"object","properties":{"data":{"description":"Collection data","type":"array","items":{"$ref":"#/definitions/SecurityWebApi.Host.Areas.Api.V3.Models.Webhooks.WebHook"}}}},"SecurityWebApi.Host.Areas.Api.V3.Models.Event.Webhooks.SetEnabledWebhook":{"type":"object","properties":{"reason":{"type":"string"}}}},"securityDefinitions":{"Token":{"type":"basic","description":"For using API methods you should obtain token by method POST (`auth/token`) method.\r\n\r\nThen you should use `accessToken` value from this response in requests header Authorization `Bearer accessToken`"},"x-api-key":{"type":"apiKey","description":"Use header with name `x-api-key` and value your API Key for requests","name":"x-api-key","in":"header"}}}