{"swaggerDoc":{"swagger":"2.0","schemes":["http","https"],"basePath":"/api","consumes":["application/json"],"produces":["application/json"],"info":{"title":"Activigie Mobile","description":"Some informations to consider with this documentation. Ask questions if you think something is missing.\n\n# - /tables/** routes \nThey are pure CRUD method, but can have some limitation due to the token defined. If a model isn't represented by a tables route, there should be an /api method corresponding.\n\n# - /api/** routes\nThese routes are for doing specific actions that can't be done with /tables routes. \n\n# Thoughts about application logic\n* If a user needs to have his role updated, regenerate the token with the [/api/regenerate](#/Authentication/regenerate) method \n\n# Nullable fields\nNULL value doesn't exists in this API, you'll be beat by the swagger validator. So if you need to reset a field to NULL value in DB, set the string value to 'null'. A small formatter will do the job when inserting or updating in the DB.\n","version":"1.2.0"},"securityDefinitions":{"AuthHeader":{"type":"apiKey","in":"header","name":"X-ZUMO-AUTH","description":"Token"}},"definitions":{"AdditionalDocument":{"type":"object","description":"Additionnal documents object used for displaying in employees, interim, sublease employee","required":["internalName","name","siteId"],"properties":{"internalName":{"type":"string","description":"Internal name of the kind of file (identityPicture, DITO, ). Only contains alphanumeric and underscore character."},"name":{"type":"string","description":"Displayed name of the file. Required if there is no internalName. Used for extra files that can be added.","default":false},"siteName":{"type":"string","description":"Name of the site where this document is relative"},"siteId":{"type":"string","description":"ID of the site this document refers"},"canExpire":{"type":"boolean","description":"Indicates if this document can expire"}}},"Analytic":{"type":"object","description":"Analytic of the platform. Some field can be empty depending on whom told it","properties":{"startAt":{"type":"string","format":"dateTime","description":"Minimum date for which to take into account the analytic"},"endAt":{"type":"string","format":"dateTime","description":"Maximum date for which to take into account the analytic"},"employees":{"type":"number"},"interims":{"type":"number"},"subleaseEmployees":{"type":"number"},"detachedEmployees":{"type":"number"},"undetachedEmployees":{"type":"number"},"controlledPeople":{"type":"number"},"controlledCompanies":{"type":"number"},"controlledSites":{"type":"number"},"controls":{"type":"number"},"unsolvedIncidents":{"type":"number"},"solvedIncidents":{"type":"number"},"reportsValid":{"type":"number"},"employeesWithIncidents":{"type":"number"},"sites":{"type":"number"},"companies":{"type":"number"},"toCheckEmployees":{"type":"number"},"toCheckInterims":{"type":"number"},"toCheckSubleaseEmployees":{"type":"number"},"toCheckDetachedEmployees":{"type":"number"},"validatedEmployees":{"type":"number"},"validatedInterims":{"type":"number"},"validatedSubleaseEmployees":{"type":"number"},"validatedDetachedEmployees":{"type":"number"},"refusedEmployees":{"type":"number"},"refusedInterims":{"type":"number"},"refusedSubleaseEmployees":{"type":"number"},"refusedDetachedEmployees":{"type":"number"},"workersTotal":{"type":"number"},"companyFrench":{"type":"number"},"companyEurope":{"type":"number"},"companyInternational":{"type":"number"},"workerFrench":{"type":"number"},"workerEurope":{"type":"number"},"workerInternational":{"type":"number"},"particularContractHandicap":{"type":"number"},"particularContractSocialIntegration":{"type":"number"},"particularContractBoth":{"type":"number"},"particularContractStandard":{"type":"number"}}},"ApiKey":{"type":"object","description":"Api key for using in the external API","required":["name"],"properties":{"name":{"type":"string","description":"Name of this api key"},"key":{"type":"string","description":"Value of this api key. It's generated on the server and is only returned once at the insertion."},"isActive":{"type":"boolean","description":"Indicates if the key is active or not"}}},"ApiKeyLog":{"type":"object","description":"Log for an api key","properties":{"apiKeyId":{"type":"string","description":"ID of the API KEY that has been used"},"event":{"type":"string","enum":["login","getCompany","getCompanyError","getSite","getSiteError","getPeople","getPeopleError"]},"urlCalled":{"type":"string","description":"Url sent to the server"},"extra":{"type":"string","description":"Extra parameters in JSON format"},"ip":{"type":"string","description":"IP used when the API call has been done"}}},"AuthCredentials":{"type":"object","description":"Data that are usefull for getting authentified data","properties":{"userId":{"type":"string"},"companyId":{"type":"string"},"companies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"token":{"type":"string"},"tokenExpiration":{"type":"integer","description":"Timestamp when the token will expire in seconds since UNIX epoch"}}},"Company":{"type":"object","description":"Company","required":["name","domiciliation","identifier","divisionId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use in any way"},"name":{"type":"string","description":"Name of the company (raison sociale)"},"domiciliation":{"type":"string","description":"Country place where the company is registered","enum":["France","Europe","Other"]},"identifier":{"type":"string","description":"Can be a SIRET, a DUNS or TVA."},"street1":{"type":"string"},"street2":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"ape":{"type":"string"},"phone":{"type":"string","description":"office phone"},"divisionId":{"type":"string","description":"ID of the division of the company"},"mobilePhone":{"type":"string"},"subscription":{"type":"boolean","description":"false if free, true if premium"},"emailContact":{"type":"string","description":"Email of the contact. At register, it's the first admin contact"},"temporary":{"type":"boolean","default":false,"description":"Indicates if the company has been invited but not yet registered. Can be found in list for adding as partner."},"frozen":{"type":"boolean","default":false,"description":"Indicates if the company has been frozen. In this case, we must not allow anything to do for this company."},"isBtp":{"type":"boolean","default":false,"description":"Indicates if the company is a BTP one, so that we can use the BTP Card scanning feature."},"countSites":{"type":"number","description":"Number of sites this company is working on ( SiteControllerCompany, SiteContributor and Site owning). Only for web token","readOnly":true},"oldId":{"type":"string"},"integratedForConstructionSiteId":{"type":"string"},"corporationCheckService":{"type":"string","enum":["provigis","eattestation"]},"corporationCheckConfiguration":{"type":"string","description":"JSON containing auth for the service"},"validationState":{"type":"string","enum":["waitingForVerification","validated","refused"]},"askForPremium":{"type":"boolean"}}},"CompanyMobile":{"type":"object","description":"Company for mobile synchronisation","properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use in any way"},"name":{"type":"string","description":"Name of the company (raison sociale)"},"domiciliation":{"type":"string","description":"Country place where the company is registered","enum":["France","Europe","Other"]},"identifier":{"type":"string","description":"Can be a SIRET, a DUNS or TVA."},"street1":{"type":"string"},"street2":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"ape":{"type":"string"},"phone":{"type":"string","description":"office phone"},"divisionId":{"type":"string","description":"ID of the division of the company"},"mobilePhone":{"type":"string"},"emailContact":{"type":"string","description":"Email of the contact. At register, it's the first admin contact"},"frozen":{"type":"boolean","default":false,"description":"Indicates if the company has been frozen. In this case, we must not allow anything to do for this company."},"isBtp":{"type":"boolean","default":false,"description":"Indicates if the company is a BTP one, so that we can use the BTP Card scanning feature."},"countSites":{"type":"number","description":"Number of sites this company is working on ( SiteControllerCompany, SiteContributor and Site owning). Only for web token","readOnly":true},"corporationCheckStatus":{"type":"string","enum":["waitingForResponse","error","notApplicable","valid","invalid"]},"forceCorporationCheckValid":{"type":"boolean","description":"If set to true, even if the corporationCheckStatus is invalid, the company will be able to be present on the site"},"siteId":{"type":"string","description":"ID of the site the document is applicable"},"validationState":{"type":"string","enum":["waitingForVerification","validated","refused"]}}},"CompanyRaise":{"type":"object","description":"Company raise","required":["companyId","kind"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use in any way"},"companyId":{"type":"string","description":"ID of the company (raison sociale)"},"companyName":{"type":"string","description":"Name of the company. Auto filled by the API","readOnly":true},"initiatedAt":{"type":"string","format":"dateTime","description":"Indicates when this raise has first been emitted"},"lastRaisedAt":{"type":"string","format":"dateTime","description":"Indicates when was the latest raise for this company"},"kind":{"type":"string","description":"Indicates which kind of raise this is","enum":["firstContact","firstIncident","incidentNotSolved","biMonthly","monthly","quaterly"]},"status":{"type":"string","enum":["waiting","done","archived"]}}},"DetachedEmployee":{"type":"object","description":"Detached employee","required":["firstname","lastname"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"companyId":{"type":"string","description":"ID of the company this user is attached. Forced by the API, so not necessary to fill it."},"companyName":{"type":"string","description":"Name of the company. Auto filled by the API","readOnly":true},"firstname":{"type":"string"},"lastname":{"type":"string"},"validationState":{"type":"string","enum":["waitingForSubmission","waitingForVerification","validated","refused"],"description":"Indicates the state of the employee"},"kind":{"type":"string","enum":["employee","interim"]}}},"Document":{"type":"object","description":"Documents than can be attached to people (employee, interim, sublease)","required":["path","internalName","name","referenceId","referenceKind","companyId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"referenceId":{"type":"string","description":"ID of the initialDocument. It can be and employee ID, a Site ID, ..."},"referenceKind":{"type":"string","enum":["employee","employeeQualification","interim","interimQualification","subleaseEmployee","site","incident","company","accreditation","qualification"]},"companyId":{"type":"string","description":"ID of the company the reference is attached."},"path":{"type":"string","description":"Path of the file on the storage. Generally the path returned by the upload method."},"internalName":{"type":"string","description":"Internal name of the kind of file (identityPicture, DITO, ). Only contains alphanumeric and underscore character."},"name":{"type":"string","description":"Displayed name of the file. Required if there is no internalName. Used for extra files that can be added."},"validationState":{"type":"string","enum":["waiting","validated","refused"],"description":"Indicates the state of the document"},"checkedAt":{"type":"string","format":"dateTime","description":"Indicates when the activigie team checked this document"},"refusedReason":{"type":"string","description":"If the status has been marked as refused, need to fill the reason"},"extra1":{"type":"string","description":"Can be anything. Formally used to store the IdentityCard type."},"expireAt":{"type":"string","format":"dateTime","description":"If defined, indicates when the document will expire"},"mimeType":{"type":"string","description":"MIME type of the object. Can be usefull to determine with which application to open the file."},"toUpload":{"type":"boolean","description":"Indicates if there is a file on the hosting"},"oldPath":{"type":"string"},"integratedForConstructionSiteId":{"type":"string"}}},"DocumentMobile":{"type":"object","description":"Documents than can be attached to people (employee, interim, sublease)","required":["path","internalName","name","referenceId","referenceKind","companyId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"referenceId":{"type":"string","description":"ID of the initialDocument. It can be and employee ID, a Site ID, ..."},"referenceKind":{"type":"string","enum":["employee","employeeQualification","interim","interimQualification","subleaseEmployee","site","incident","company","accreditation","qualification"]},"path":{"type":"string","description":"Path of the file on the storage. Generally the path returned by the upload method."},"internalName":{"type":"string","description":"Internal name of the kind of file (identityPicture, DITO, ). Only contains alphanumeric and underscore character."},"name":{"type":"string","description":"Displayed name of the file. Required if there is no internalName. Used for extra files that can be added."},"extra1":{"type":"string","description":"Can be anything. Formally used to store the IdentityCard type."},"expireAt":{"type":"string","format":"dateTime","description":"If defined, indicates when the document will expire"},"mimeType":{"type":"string","description":"MIME type of the object. Can be usefull to determine with which application to open the file."},"toUpload":{"type":"boolean","description":"Indicates if there is a file on the hosting"},"peopleType":{"type":"string","enum":["employee","interim","subleaseEmployee"]},"siteId":{"type":"string","description":"ID of the site the document is applicable"}}},"Employee":{"type":"object","description":"Employee","required":["firstname","lastname"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"companyId":{"type":"string","description":"ID of the company this user is attached. Forced by the API, so not necessary to fill it."},"companyName":{"type":"string","description":"Name of the company. Auto filled by the API","readOnly":true},"firstname":{"type":"string"},"lastname":{"type":"string"},"birthday":{"type":"string","format":"dateTime"},"nationality":{"type":"string"},"function":{"type":"string"},"contractType":{"type":"string","enum":["fixedTerm","permanent","manager","trainee","selfEmployed","apprentice","seasonalContract","CUICAE","serviceProviderOrRenter"],"description":"fixedTerm (french CDD), permanentContrat (french CDI)"},"startedAt":{"type":"string","format":"dateTime","description":"When the contract started"},"endAt":{"type":"string","format":"dateTime","description":"When the contract has or will ended"},"validationState":{"type":"string","enum":["waitingForSubmission","waitingForVerification","validated","refused"],"description":"Indicates the state of the employee"},"refusedReason":{"type":"string","description":"If the status has been marked as refused, need to fill the reason"},"btpCardNumber":{"type":"string","description":"Number of the BTP Card"},"countActiveIncidents":{"type":"number","description":"Number of active incidents on this employee","readOnly":true},"isBTPValidation":{"type":"boolean","description":"the validation can be done with BTP card"},"isActivigieValidation":{"type":"boolean","description":"the validation is done with Activigie process"},"oldId":{"type":"string"},"integratedForConstructionSiteId":{"type":"string"},"handicappedWorker":{"type":"boolean","description":"if the worker is handicapped"},"socialIntegration":{"type":"boolean","description":"if the worker do a social integration"},"detachmentStartAt":{"type":"string","format":"dateTime"},"detachmentEndAt":{"type":"string","format":"dateTime"}}},"Interim":{"type":"object","description":"Interim","required":["firstname","lastname","agencyName"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"companyId":{"type":"string","description":"ID of the company this user is attached. Forced by the API, so not necessary to fill it."},"companyName":{"type":"string","description":"Name of the company. Auto filled by the API","readOnly":true},"firstname":{"type":"string"},"lastname":{"type":"string"},"birthday":{"type":"string","format":"dateTime"},"nationality":{"type":"string"},"function":{"type":"string"},"startedAt":{"type":"string","format":"dateTime","description":"When the contract started"},"endAt":{"type":"string","format":"dateTime","description":"When the contract has or will ended"},"validationState":{"type":"string","enum":["waitingForSubmission","waitingForVerification","validated","refused"],"description":"Indicates the state of the employee"},"refusedReason":{"type":"string","description":"If the status has been marked as refused, need to fill the reason"},"agencyName":{"type":"string","description":"Name of the agency."},"agencyDomiciliation":{"type":"string","description":"Country place where the agency is registered","enum":["France","Europe","Other"]},"agencyIdentifier":{"type":"string","description":"Identifier of the agency.","readOnly":true},"btpCardNumber":{"type":"string","description":"Number of the BTP Card"},"countActiveIncidents":{"type":"number","description":"Number of active incidents on this employee","readOnly":true},"isBTPValidation":{"type":"boolean","description":"the validation can be done with BTP card"},"isActivigieValidation":{"type":"boolean","description":"the validation is done with Activigie process"},"oldId":{"type":"string"},"integratedForConstructionSiteId":{"type":"string"},"handicappedWorker":{"type":"boolean","description":"if the worker is handicapped"},"socialIntegration":{"type":"boolean","description":"if the worker do a social integration"},"detachmentStartAt":{"type":"string","format":"dateTime"},"detachmentEndAt":{"type":"string","format":"dateTime"}}},"Log":{"type":"object","description":"Log","properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"companyId":{"type":"string","description":"ID of the company"},"referenceId":{"type":"string","description":"ID object"},"referenceTable":{"type":"string","description":"Name of the table the reference id is from","enum":["Employee","Interim","SubleaseEmployee","Company","Partner","Document","Site","User","SiteControllerCompany","SiteContributor"]},"actionKind":{"type":"string","description":"Kind of action that has been done","enum":["create","update","delete"]},"doneById":{"type":"string"},"doneByName":{"type":"string","description":"Firstname and lastname of the people that have done the action"},"doneAt":{"type":"string","format":"dateTime","description":"When the action has been done"},"extra1":{"type":"string","description":"Store any complementary item"}}},"LogMobile":{"type":"object","description":"Log for mobile call","properties":{"userId":{"type":"string","description":"ID of the user that has been used"},"companyId":{"type":"string","description":"ID of the company that has been used"},"mobileVersion":{"type":"string","description":"Version of the mobile app"},"event":{"type":"string","enum":["login","getCompany","getCompanyError","getSite","getSiteError","getPeople","getPeopleError"]},"extra":{"type":"string","description":"Extra parameters in JSON format"},"note":{"type":"string","description":"Extra parameters for log interpretation"}}},"Partner":{"type":"object","description":"Partner of a company (Sous traitant)","required":["companyId","partnerId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use in any way"},"companyId":{"type":"string","description":"ID of the company that own this partnership"},"companyName":{"type":"string","description":"Name of the company that own this partnership. Auto filled by the API","readOnly":true},"companyIdentifier":{"type":"string","description":"Identifier of the company. Auto filled by the API","readOnly":true},"companyEmailContact":{"type":"string","description":"Contact email of the company. Auto filled by the API","readOnly":true},"companyDomiciliation":{"type":"string","description":"Domiciliation of the company. Auto filled by the API","readOnly":true},"partnerId":{"type":"string","description":"ID of the partner"},"partnerName":{"type":"string","description":"Name of the partner company. Auto filled by the API","readOnly":true},"partnerIdentifier":{"type":"string","description":"Identifier of the partner. Auto filled by the API","readOnly":true},"partnerEmailContact":{"type":"string","description":"Contact email of the partner. Auto filled by the API","readOnly":true},"partnerDomiciliation":{"type":"string","description":"Domiciliation of the partner. Auto filled by the API","readOnly":true},"partnerPhone":{"type":"string","description":"Phone of the partner. Auto filled by the API","readOnly":true},"invitationSent":{"type":"string","format":"dateTime","readOnly":true,"description":"Indicates if the company has been invited and not yet validate its registration."},"integratedForConstructionSiteId":{"type":"string"}}},"People":{"type":"object","description":"People. Can be an employee, an interim or a sublease employee. This table is used for the display of the site people","properties":{"id":{"type":"string","readOnly":true},"leaseEmployeeId":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"kind":{"type":"string","enum":["employee","interim","subleaseEmployee"]},"firstname":{"type":"string"},"lastname":{"type":"string"},"validationState":{"type":"string","enum":["waitingForSubmission","waitingForVerification","validated","refused"],"description":"Indicates the state of the people"},"canAccessSite":{"type":"boolean"},"siteJobIds":{"type":"array","items":{"type":"string"}},"siteJobNames":{"type":"array","items":{"type":"string"}},"companyId":{"type":"string"},"companyName":{"type":"string"}}},"PeopleMobile":{"type":"object","description":"Employee, Interim or SubleaseEmployee","required":["firstname","lastname"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"companyId":{"type":"string","description":"ID of the company this user is attached. Forced by the API, so not necessary to fill it."},"companyName":{"type":"string","description":"Name of the company. Auto filled by the API","readOnly":true},"firstname":{"type":"string"},"lastname":{"type":"string"},"birthday":{"type":"string","format":"dateTime"},"nationality":{"type":"string"},"function":{"type":"string"},"contractType":{"type":"string","enum":["fixedTerm","permanent","manager","trainee","selfEmployed","apprentice","seasonalContract","CUICAE","serviceProviderOrRenter"],"description":"contract type for employees only; fixedTerm (french CDD), permanentContrat (french CDI)"},"startedAt":{"type":"string","format":"dateTime","description":"When the contract started"},"endAt":{"type":"string","format":"dateTime","description":"When the contract has or will ended"},"validationState":{"type":"string","enum":["waitingForSubmission","waitingForVerification","validated","refused"],"description":"Indicates the state of the worker"},"refusedReason":{"type":"string","description":"If the status has been marked as refused, need to fill the reason"},"btpCardNumber":{"type":"string","description":"Number of the BTP Card"},"isBTPValidation":{"type":"boolean","description":"the validation can be done with BTP card"},"isActivigieValidation":{"type":"boolean","description":"the validation is done with Activigie process"},"handicappedWorker":{"type":"boolean","description":"if the worker is handicapped"},"socialIntegration":{"type":"boolean","description":"if the worker do a social integration"},"agencyName":{"type":"string","description":"Name of the agency in case of Interim type of worker"},"agencyDomiciliation":{"type":"string","description":"Country place where the agency is registered in case of Interim type of worker","enum":["France","Europe","Other"]},"agencyIdentifier":{"type":"string","description":"Identifier of the agency in case of Interim type of worker","readOnly":true},"leaseCompanyId":{"type":"string","description":"ID of the company that lease this employee in case of Sublease worker"},"leaseCompanyName":{"type":"string","description":"This field is auto filled by the API in case of Sublease worker","readOnly":true},"leaseEmployeeId":{"type":"string","description":"ID of the employee that is leased in case of Sublease worker"},"leaseEmployeeValidationState":{"type":"string","enum":["waitingForSubmission","waitingForVerification","validated","refused"]},"peopleType":{"type":"string","enum":["employee","interim","subleaseEmployee"]},"siteId":{"type":"string","description":"ID of the site the document is applicable"},"siteJobId":{"type":"string","description":"ID of the job for this interim"},"siteJobName":{"type":"string","readOnly":true}}},"Site":{"type":"object","description":"Site","required":["name"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"name":{"type":"string","description":"Name of the site"},"description":{"type":"string"},"typology":{"type":"string","enum":["static","mobile"],"description":"Kind of site. Mobile if there is multiple places, static if only one place"},"street1":{"type":"string"},"street2":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"companyId":{"type":"string","description":"Id of the company that own this site"},"companyName":{"type":"string","description":"Name of the owner company. Auto filled by the API.","readOnly":true},"companyIdentifier":{"type":"string","description":"Identifier of the owner company. Auto filled by the API.","readOnly":true},"copyEmailsToAdmin":{"type":"boolean","description":"Ability to have all copy of email sent from site to the admin of site"},"userIdInCharge":{"type":"string","description":"Id of the user that is in charge of this site"},"userInChargeFirstname":{"type":"string","description":"Firstname of the user in charge. Auto filled by the API.","readOnly":true},"userInChargeLastname":{"type":"string","description":"Lastname of the user in charge. Auto filled by the API.","readOnly":true},"userInChargeEmail":{"type":"string","description":"Email of the user in charge. Auto filled by the API.","readOnly":true},"userInChargeMobile":{"type":"string","description":"Mobile phone of the user in charge. Auto filled by the API.","readOnly":true},"lastControlAt":{"type":"string","format":"dateTime","description":"Last time a control has been done","readOnly":true},"myRole":{"type":"string","enum":["admin","controller","contributor"],"readOnly":true,"description":"Indicates what role the connected user get for this site"},"countWorkers":{"type":"number","readOnly":true,"description":"Returns the number of employees, interim and sublease employees"},"countPartners":{"type":"number","readOnly":true,"description":"Returns the number of companies attached to this site"},"countControlCompanies":{"type":"number","readOnly":true,"description":"Returns the number of companies that can control this site"},"nbIncidentActive":{"type":"number","readOnly":true,"description":"Returns the number of active incident for this site"},"oldId":{"type":"string"},"validationState":{"type":"string","enum":["waitingForVerification","validated"]},"corporationCheck":{"type":"boolean"},"corporationCheckExtra":{"type":"string"},"lastRefreshMobile":{"type":"string","format":"dateTime"},"operationStartDate":{"type":"string","format":"dateTime"},"operationEndDate":{"type":"string","format":"dateTime"}}},"SiteMobile":{"type":"object","description":"Mobile version of the site.","properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"name":{"type":"string","description":"Name of the site"},"userId":{"type":"string","description":"Id of the user that can control"},"companyId":{"type":"string","description":"Id of the user's company that can control"},"street1":{"type":"string"},"street2":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"userIdInCharge":{"type":"string","description":"Id of the user that is in charge of this site"},"userInChargeFirstname":{"type":"string","description":"Firstname of the user in charge. Auto filled by the API."},"userInChargeLastname":{"type":"string","description":"Lastname of the user in charge. Auto filled by the API."},"userInChargeEmail":{"type":"string","description":"Email of the user in charge. Auto filled by the API."},"userInChargeMobile":{"type":"string","description":"Mobile phone of the user in charge. Auto filled by the API."},"lastControlAt":{"type":"string","format":"dateTime","description":"Last time a control has been done"},"countIncident":{"type":"number"},"validationState":{"type":"string","enum":["waitingForVerification","validated"]}}},"SiteAccreditation":{"type":"object","description":"Site's qualification","required":["siteId","name"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"name":{"type":"string","description":"Name of the qualification"},"internalName":{"type":"string","description":"Internal name of the qualification. Auto-generated with the name"},"canExpire":{"type":"boolean","description":"Indicates if this document can expire"},"jobNames":{"type":"string","description":"List of jobs available for this accreditation","readOnly":true},"documentTypeId":{"type":"string","description":"ID of the attached reference document","readOnly":true}}},"SiteAccreditationSiteJob":{"type":"object","description":"Association between an accreditation and a job","required":["siteAccreditationId","siteJobId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"siteJobId":{"type":"string","description":"ID of the site job"},"siteAccreditationId":{"type":"string","description":"ID of the site accreditation"}}},"SiteAnalytic":{"type":"object","description":"Analytic of the site. Some field can be empty depending on whom told it","properties":{"employees":{"type":"number"},"interims":{"type":"number"},"subleaseEmployees":{"type":"number"},"workersTotal":{"type":"number"},"companyFrench":{"type":"number"},"companyEurope":{"type":"number"},"companyInternational":{"type":"number"},"workerFrench":{"type":"number"},"workerEurope":{"type":"number"},"workerInternational":{"type":"number"},"particularContractHandicap":{"type":"number"},"particularContractSocialIntegration":{"type":"number"},"particularContractBoth":{"type":"number"},"particularContractStandard":{"type":"number"},"reportsValid":{"type":"number"},"reportsIncidentSolved":{"type":"number"},"reportsIncidentProven":{"type":"number"},"reportsTotal":{"type":"number"},"reportsUniqPerson":{"type":"number"},"reportsUnknownPerson":{"type":"number"},"reportsIncidentsPerson":{"type":"number"},"reportsCompanies":{"type":"number"},"reportsSite":{"type":"number"},"detachedEmployees":{"type":"number"},"undetachedEmployees":{"type":"number"}}},"SitePeopleSiteJob":{"type":"object","description":"Association between an site's people and a job's site","required":["sitePeopleId","sitePeopleKind","siteJobId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"siteJobId":{"type":"string","description":"ID of the site job"},"sitePeopleId":{"type":"string","description":"ID of the people"},"sitePeopleKind":{"type":"string","description":"kind of the people","enum":["Employee","Interim","SubleaseEmployee"]}}},"SiteContributor":{"type":"object","description":"Companies that contributes on a site.","required":["siteId","companyId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"companyId":{"type":"string","description":"ID of the company that contribute to this site."},"companyName":{"type":"string","description":"Name of the company. Auto-filled by the API","readOnly":true},"companyAPE":{"type":"string","description":"APE of the company. Auto-filled by the API","readOnly":true},"companyIdentifier":{"type":"string","description":"Can be a SIRET, a DUNS or TVA.","readOnly":true},"companyEmployeesCount":{"type":"number","description":"Number of employees associated to the company on this site. Automatically managed by the API","readOnly":true},"parentCompanyId":{"type":"string","description":"ID of the parent company. Can be null. Automatically managed by the API"},"validationState":{"type":"string","enum":["waitingForVerification","validated","refused"]},"corporationCheckIdentifier":{"type":"string"},"corporationCheckEAttestationImport":{"type":"string"},"corporationCheckStatus":{"type":"string","enum":["waitingForResponse","error","notApplicable","valid","invalid"]},"corporationCheckDocuments":{"type":"string","description":"List of documents that has been set on the platform"},"forceCorporationCheckValid":{"type":"boolean","description":"If set to true, even if the corporationCheckStatus is invalid, the company will be able to be present on the site"},"forceCorporationCheckValidAt":{"type":"string","format":"dateTime"},"nextCheckAt":{"type":"string","format":"dateTime"},"invitedAt":{"type":"boolean","description":"Indicates if this company has been invited. Automatically managed by the API"},"level":{"type":"number","description":"Horizontal position. This field is automatically calculated by the API. Do not update this value.","readOnly":true},"integratedForConstructionSiteId":{"type":"string"}}},"SiteControl":{"type":"object","description":"Control report of a site","required":["siteId","controllerId","controllerCompanyId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"siteName":{"type":"string","description":"Name of the site, auto filled by the API","readOnly":true},"controllerId":{"type":"string","description":"User id that generate this report"},"controllerFirstname":{"type":"string","readOnly":true,"description":"Auto filled by the API"},"controllerLastname":{"type":"string","readOnly":true,"description":"Auto filled by the API"},"controllerCompanyId":{"type":"string","description":"Company id of the controller"},"controllerCompanyName":{"type":"string","description":"Name of the controller's company. Auto filled by the API","readOnly":true},"startedAt":{"type":"string","format":"dateTime","description":"Indicates when the control started"},"endedAt":{"type":"string","format":"dateTime","description":"Indicates when the control ended"},"revivalAt":{"type":"string","format":"dateTime","description":"Indicates when a notification should be sent to the site owner"},"status":{"type":"string","enum":["inProgress","finished"],"default":"inProgress"},"startLatitude":{"type":"number","description":"Latitude at the begining of the control"},"startLongitude":{"type":"number","description":"Longitude at the begining of the control"},"endLatitude":{"type":"number","description":"Latitude at the end of the control"},"endLongitude":{"type":"number","description":"Longitude at the end of the control"},"countIncident":{"type":"number","description":"Total number of incident. This data if filled by the mobile application"},"countValid":{"type":"number","description":"Total number of valid control. This data if filled by the mobile application"},"comment":{"type":"string","description":"Comment on the site Control"},"reportSentAt":{"type":"string","format":"dateTime","description":"Date when the email has been sent"},"revivalReportSentAt":{"type":"string","format":"dateTime","description":"Date when the email has been sent"}}},"SiteControlEntry":{"type":"object","description":"Site control entry. Can validate the presence of a people or declare an incident","required":["siteId","siteControlId","referenceFirstname","referenceLastname","referenceCompanyName","referenceKind","kind"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"siteName":{"type":"string","description":"Name of the site."},"siteControlId":{"type":"string","description":"ID of the site control"},"controllerId":{"type":"string","description":"User's id that generate this entry"},"controllerCompanyId":{"type":"string","description":"Company id of the controller"},"referenceId":{"type":"string","description":"ID of the People this entry is for. Can be null if the People does not exist."},"referenceFirstname":{"type":"string","description":"People's firstname."},"referenceLastname":{"type":"string","description":"People's lastname."},"referenceCompanyDivisionId":{"type":"string","description":"ID of the people's company division. Can be null if the company has been found."},"referenceCompanyId":{"type":"string","description":"ID of the people's company attached to this entry. Can be null if the company does not exist."},"referenceCompanyName":{"type":"string","description":"People company name."},"referenceInterimAgencyName":{"type":"string","description":"People's agency company name of the people."},"referenceInterimAgencyIdentifier":{"type":"string","description":"People's agency identifier of the people."},"referenceCompanyDivisionName":{"type":"string","description":"Name of the company division"},"referenceCompanyApeId":{"type":"string","description":"APE code of the company. Can be null if the company has been found."},"referenceCompanyApeName":{"type":"string","description":"Name of the company ape"},"referenceKind":{"type":"string","enum":["employee","interim","subleaseEmployee"]},"kind":{"type":"string","description":"Indicates the kind of the entry. Can be valid (Pointage validĂ©) or incident (Incident)","default":"valid","enum":["valid","incident"]},"incidentType":{"type":"string","description":"Describes the type of an incident","enum":["employee_unknown","endcontract","enddetachment","identityexpired","notstart","norecognized","noqualif","nocompleted","refusedcompany","refusedmoral","other"]},"incidentOtherReason":{"type":"string","description":"All reasons that generates this incident. Separates each line by an \\n character."},"note":{"type":"string","description":"The controller can enter whatever he wants to justify the reason of invalid status"},"solvedAt":{"type":"string","format":"dateTime","description":"Indicates when the incident has been solved by the system (validation of employee, etc...)"},"companySolvedAt":{"type":"string","format":"dateTime","description":"Indicates when the incident has been solved by the company, eg a new user has been attached."},"maxActionAt":{"type":"string","format":"dateTime","description":"Indicates when the entry should be solved without consequences","readOnly":true},"isActive":{"type":"boolean"},"mailSent":{"type":"boolean"}}},"SiteControllerCompany":{"type":"object","description":"Site companies that have the control ability","required":["siteId","companyId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"companyId":{"type":"string","description":"ID of the company that controls this site."},"companyName":{"type":"string","description":"Name of the company. Auto-filled by the API","readOnly":true},"companyAPE":{"type":"string","description":"APE of the company. Auto-filled by the API","readOnly":true},"companyEmployeesCount":{"type":"number","description":"Number of employees associated to the company on this site. Automatically managed by the API","readOnly":true},"parentCompanyId":{"type":"string","description":"ID of the parent company. Can be null"},"validationState":{"type":"string","enum":["waitingForVerification","validated","refused"]},"corporationCheckIdentifier":{"type":"string"},"corporationCheckEAttestationImport":{"type":"string"},"corporationCheckStatus":{"type":"string","enum":["waitingForResponse","error","notApplicable","valid","invalid"]},"corporationCheckDocuments":{"type":"string","description":"List of documents that has been set on the platform"},"forceCorporationCheckValid":{"type":"boolean","description":"If set to true, even if the corporationCheckStatus is invalid, the company will be able to be present on the site"},"forceCorporationCheckValidAt":{"type":"string","format":"dateTime"},"nextCheckAt":{"type":"string","format":"dateTime"},"invitedAt":{"type":"boolean","description":"Indicates if this company has been invited. Automatically managed by the API"},"level":{"type":"number","description":"Horizontal position. This field is automatically calculated by the API. Do not update this value."},"integratedForConstructionSiteId":{"type":"string"}}},"SiteControllerUser":{"type":"object","description":"Site users that have the control ability","required":["siteId","userId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"companyId":{"type":"string","description":"ID of the employee's company."},"siteId":{"type":"string","description":"ID of the site"},"userId":{"type":"string","description":"ID of the user that controls this site."},"userFirstname":{"type":"string","description":"Firstname of the user. Auto-filled by the API","readOnly":true},"userLastname":{"type":"string","description":"Lastname of the user. Auto-filled by the API","readOnly":true},"userEmail":{"type":"string","description":"Email of the user. Auto-filled by the API","readOnly":true},"integratedForConstructionSiteId":{"type":"string"}}},"SiteEmployee":{"type":"object","description":"Site's employee","required":["siteId","companyId","employeeId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"companyId":{"type":"string","description":"ID of the employee's company."},"companyName":{"type":"string","description":"Name of the company. Auto filled by the API.","readOnly":true},"employeeId":{"type":"string","description":"ID of the employee that has been affected to this site."},"employeeFirstname":{"type":"string","description":"Firstname of the employee. Auto filled by the API.","readOnly":true},"employeeLastname":{"type":"string","description":"Lastname of the employee. Auto filled by the API.","readOnly":true},"siteJobId":{"type":"string","description":"ID of the job for this employee"},"siteJobName":{"type":"string","readOnly":true},"integratedForConstructionSiteId":{"type":"string"}}},"SiteInterim":{"type":"object","description":"Site's interim employee","required":["siteId","companyId","interimEmployeeId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"companyId":{"type":"string","description":"ID of the interim employee's company."},"companyName":{"type":"string","description":"Name of the company. Auto filled by the API.","readOnly":true},"interimId":{"type":"string","description":"ID of the interim employee that has been affected to this site."},"interimFirstname":{"type":"string","description":"Firstname of the interim employee. Auto filled by the API.","readOnly":true},"interimLastname":{"type":"string","description":"Lastname of the interim employee. Auto filled by the API.","readOnly":true},"siteJobId":{"type":"string","description":"ID of the job for this interim"},"siteJobName":{"type":"string","readOnly":true},"integratedForConstructionSiteId":{"type":"string"}}},"SiteJob":{"type":"object","description":"Site's job","required":["siteId","name"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"name":{"type":"string","description":"Name of the job"}}},"SiteSubleaseEmployee":{"type":"object","description":"Site's sublease employee","required":["siteId","companyId","subleaseEmployeeId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"companyId":{"type":"string","description":"ID of the sublease employee's company."},"companyName":{"type":"string","description":"Name of the company. Auto filled by the API.","readOnly":true},"subleaseEmployeeId":{"type":"string","description":"ID of the sublease employee that has been affected to this site."},"subleaseEmployeeFirstname":{"type":"string","description":"Firstname of the sublease employee. Auto filled by the API.","readOnly":true},"subleaseEmployeeLastname":{"type":"string","description":"Lastname of the subleases employee. Auto filled by the API.","readOnly":true},"siteJobId":{"type":"string","description":"ID of the job for this subleaseEmployee"},"siteJobName":{"type":"string","readOnly":true},"integratedForConstructionSiteId":{"type":"string"}}},"SiteQualification":{"type":"object","description":"Site's qualification","required":["siteId","name"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"name":{"type":"string","description":"Name of the qualification"},"internalName":{"type":"string","description":"Internal name of the qualification. Auto-generated with the name"},"canExpire":{"type":"boolean","description":"Indicates if this document can expire"},"jobNames":{"type":"string","description":"List of jobs available for this qualification","readOnly":true}}},"SiteQualificationSiteJob":{"type":"object","description":"Association between a qualification and a job","required":["siteQualificationId","siteJobId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"siteId":{"type":"string","description":"ID of the site"},"siteJobId":{"type":"string","description":"ID of the site job"},"siteQualificationId":{"type":"string","description":"ID of the site qualification"}}},"Standard":{"type":"object","description":"Standard response with status and error type","properties":{"status":{"type":"boolean"},"error":{"type":"string","description":"if the status is false, describes the error"}}},"SubleaseEmployee":{"type":"object","description":"Sublease employee (prĂȘt de main d'oeuvre)","required":["leaseCompanyId","leaseEmployeeId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"companyId":{"type":"string","description":"ID of the company this user is attached. Forced by the API, so not necessary to fill it."},"companyName":{"type":"string","description":"Name of the company. Auto filled by the API","readOnly":true},"leaseCompanyId":{"type":"string","description":"ID of the company that lease this employee"},"leaseCompanyName":{"type":"string","description":"This field is auto filled by the API","readOnly":true},"leaseEmployeeId":{"type":"string","description":"ID of the employee that is leased"},"firstname":{"type":"string","readOnly":true,"description":"This field is auto filled by the API"},"lastname":{"type":"string","description":"this field is auto filled by the API","readOnly":true},"birthday":{"type":"string","format":"dateTime","description":"this field is auto filled by the API","readOnly":true},"nationality":{"type":"string","description":"this field is auto filled by the API","readOnly":true},"btpCardNumber":{"type":"string","description":"this field is auto filled by the API","readOnly":true},"function":{"type":"string"},"startedAt":{"type":"string","format":"dateTime","description":"When the contract started"},"endAt":{"type":"string","format":"dateTime","description":"When the contract has or will ended"},"validationState":{"type":"string","enum":["waitingForSubmission","waitingForVerification","validated","refused"],"description":"Indicates the state of the sublease employee"},"employeeValidationState":{"type":"string","enum":["waitingForSubmission","waitingForVerification","validated","refused"],"description":"Indicates the state of the employee associated to this sublease.","readOnly":true},"refusedReason":{"type":"string","description":"If the status has been marked as refused, need to fill the reason"},"countActiveIncidents":{"type":"number","description":"Number of active incidents on this employee","readOnly":true},"oldId":{"type":"string"},"integratedForConstructionSiteId":{"type":"string"}}},"User":{"type":"object","description":"User","required":["email"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"companyId":{"type":"string","description":"ID of the company this user is attached. Forced by the API, so not necessary to fill it."},"firstname":{"type":"string"},"lastname":{"type":"string"},"email":{"type":"string","description":"Email of the user. This is used for authentification"},"password":{"type":"string","description":"Define this field with an uncrypted password, the API will do it for you. This field is never returned by the API."},"mobile":{"type":"string","description":"Mobile phone"},"phone":{"type":"string","description":"Fix phone"},"lastConnectedAt":{"type":"string","format":"dateTime","description":"Indicates the last time the user connects to the platform"},"oldId":{"type":"string"},"integratedForConstructionSiteId":{"type":"string"},"isAdmin":{"type":"boolean","readOnly":true,"description":"indicates if the user for the current token company is an admin"},"isController":{"type":"boolean","readOnly":true,"description":"indicates if the user for the current token company is a controller"}}},"UserCompany":{"type":"object","description":"Association between an user and a company","required":["userId","companyId"],"properties":{"id":{"type":"string","readOnly":true},"version":{"type":"string","readOnly":true,"description":"Internal usage, do not use or update in any way"},"createdAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"updatedAt":{"type":"string","format":"dateTime","readOnly":true,"description":"Internal usage, do not use or update in any way"},"deleted":{"type":"boolean","readOnly":true,"description":"Internal usage, do not use or update in any way"},"userId":{"type":"string","description":"ID of user"},"companyId":{"type":"string","description":"ID of the company"},"isAdmin":{"type":"boolean","description":"Indicates if the user have full privileges","default":false},"isController":{"type":"boolean","description":"Indicates if the user can use the mobile app for doing controls","default":false},"canUpdateCompanyInformations":{"type":"boolean","description":"Indicates if the user can update company informations. Only usefull if isAdmin is false.","default":false},"canUpdateSites":{"type":"boolean","default":false,"description":"Indicates if the user can update sites data, add or validate companies. Only usefull if isAdmin is false."},"siteIdsUpdatable":{"type":"string","description":"List of sites the user has right on. This list is used if the \"canUpdateSites\" field is true. List is in comma separated format. Only usefull if isAdmin is false."},"canCreateSites":{"type":"boolean","default":false,"description":"Indicates if the user can create sites. Only usefull if isAdmin is false."},"canCreateUpdateWorkers":{"type":"boolean","default":false,"description":"Indicates if the user can create / update workers. Only usefull if isAdmin is false."},"canCreateUpdatePartners":{"type":"boolean","default":false,"description":"Indicates if the user can add / remove partners. Only usefull if isAdmin is false."}}},"CompanySite":{"type":"object","description":"People. Can be an employee, an interim or a sublease employee. This table is used for the display of the site people","required":["siteId"],"properties":{"id":{"type":"string","readOnly":true},"name":{"type":"string"},"division":{"type":"string"},"controledNumber":{"type":"string"},"status":{"type":"string","enum":["waitingForVerification","validated","refused"]},"refusedReason":{"type":"string"}}},"PeopleSite":{"type":"object","description":"People. Can be an employee, an interim or a sublease employee. This table is used for the display of the site people","required":["siteId"],"properties":{"id":{"type":"string","readOnly":true},"firstName":{"type":"string"},"lastName":{"type":"string"},"birthday":{"type":"string"},"nationality":{"type":"string"},"startedAt":{"type":"string"},"endAt":{"type":"string"},"kind":{"type":"string"},"jobNames":{"type":"string"},"companyId":{"type":"string"},"companyName":{"type":"string"},"handicappedWorker":{"type":"number"},"socialIntegration":{"type":"number"},"status":{"type":"string","enum":["waitingForVerification","validated","refused"]},"refusedReason":{"type":"string"},"controled":{"type":"boolean"}}},"ControlEntries":{"type":"object","description":"Control entries","required":["controlId"],"properties":{"succes":{"type":"boolean"}}},"ControllerSites":{"type":"object","description":"list of sites for a controller.","properties":{"id":{"type":"string","readOnly":true},"name":{"type":"string"},"description":{"type":"string"},"typology":{"type":"string"},"street1":{"type":"string"},"street2":{"type":"string"},"zipCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"userIdInCharge":{"type":"string"},"userInChargeFirstname":{"type":"string"},"userInChargeLastname":{"type":"string"},"userInChargeEmail":{"type":"string"},"userInChargeMobile":{"type":"string"}}}},"paths":{"/api/login":{"post":{"summary":"Login a user","description":"Login a user","tags":["Authentication"],"operationId":"login","consumes":["application/json"],"parameters":[{"in":"body","name":"data","description":"the user to login","required":true,"schema":{"type":"object","required":["email","password","mobile"],"properties":{"email":{"type":"string"},"password":{"type":"string"},"mobile":{"type":"boolean","description":"Indicates if we need a login for the mobile app"}}}},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"produces":["application/json"],"responses":{"200":{"description":"Connected, get credentials","schema":{"$ref":"#/definitions/AuthCredentials"}},"404":{"description":"The user has not been found"}}}},"/api/loginWithAPIKey":{"post":{"summary":"Login a user from an API KEY","description":"Login a user from an API KEY","tags":["Authentication"],"operationId":"loginFromAPIKey","consumes":["application/json"],"parameters":[{"in":"body","name":"data","description":"Information for doing the auth","required":true,"schema":{"type":"object","required":["apiKey","userId","companyId","mobile"],"properties":{"apiKey":{"type":"string"},"userId":{"type":"string"},"companyId":{"type":"string"},"mobile":{"type":"boolean","description":"Indicates if we need a login for the mobile app"}}}},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"produces":["application/json"],"responses":{"200":{"description":"Connected, get credentials","schema":{"$ref":"#/definitions/AuthCredentials"}},"404":{"description":"The user has not been found"}}}},"/api/register":{"post":{"summary":"Register a user and a company","description":"Register a user and a company","tags":["Authentication"],"operationId":"register","consumes":["application/json"],"parameters":[{"in":"body","name":"data","description":"the user to login","required":true,"schema":{"type":"object","required":["user","company"],"properties":{"user":{"$ref":"#/definitions/User"},"company":{"$ref":"#/definitions/Company"}}}},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"produces":["application/json"],"responses":{"200":{"description":"Connected, get credentials","schema":{"$ref":"#/definitions/AuthCredentials"}},"400":{"description":"Missing parameters"},"409":{"description":"A company and/or a user already exists"}}}},"/api/regenerate":{"get":{"summary":"Regenerate the current auth token","description":"Regenerate a new auth token in case of the current token has expired. Check the existance of the user.","tags":["Authentication"],"operationId":"regenerate","parameters":[{"name":"expire_in","in":"query","description":"Optional parameters to set the expiration time (in seconds)","type":"integer"},{"name":"companyId","in":"query","description":"Optional parameters to set the company Id","type":"string"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"},{"name":"token","description":"The token to regenerate","required":true,"type":"string","in":"header"}],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/AuthCredentials"}},"404":{"description":"An error occured with the credentials, user has been removed or deactivated"}}}},"/api/forgot":{"post":{"summary":"Restore access to a forgotten user","description":"Assign new temporary password and send it by email to the user. On a new connection with this temporary password, the temporary is assigned to regular, and temporary is removed.","tags":["Authentication"],"operationId":"forgot","consumes":["application/json"],"parameters":[{"in":"body","name":"user","description":"the user email to launch the forgotten password process","required":true,"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string"}}}},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"produces":["application/json"],"responses":{"200":{"description":"Always respond a success message, to not leak unexisting or existing email in DB."}}}},"/api/document/upload":{"post":{"summary":"Upload a document","description":"Upload a document","operationId":"uploadDocument","tags":["Document"],"security":[{"AuthHeader":[]}],"consumes":["multipart/form-data"],"parameters":[{"name":"uploadedFile","in":"formData","description":"The uploaded file data","required":true,"type":"file"},{"name":"referenceId","in":"formData","description":"ID of the reference (employeeId, interimId, siteId, ...)","required":true,"type":"string"},{"name":"referenceKind","in":"formData","description":"Kind of the reference","required":true,"type":"string","enum":["employee","employeeQualification","interim","interimQualification","subleaseEmployee","site","incident","company","accreditation","qualification"]},{"name":"internalName","in":"formData","description":"Internal name of the document. (identityPicture, DITO, ). Only contains alphanumeric and underscore character.","required":true,"type":"string"},{"name":"name","in":"formData","type":"string","required":true,"description":"Name of the document. Ideally the well formatted name of the internalName."},{"name":"expireAt","in":"formData","type":"string","format":"dateTime","description":"Date when the document will expire"},{"name":"extra1","in":"formData","type":"string","description":"Extra field"},{"name":"maxDim","in":"formData","type":"integer","description":"In case of uploading an image, maximum dimension (width and / or height) of the source image"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"produces":["application/json"],"responses":{"200":{"description":"The new Document object","schema":{"$ref":"#/definitions/Document"}},"400":{"$ref":"#/responses/UnauthorizedError"}}}},"/api/document/{reference_id}/token":{"post":{"summary":"Update token of a btp card","description":"Update token of a btp card","operationId":"updateBTPCard","tags":["Document"],"security":[{"AuthHeader":[]}],"consumes":["application/json"],"parameters":[{"name":"reference_id","in":"path","type":"string","required":true,"description":"The reference identifier"},{"in":"body","name":"data","description":"the token to update","required":true,"schema":{"type":"object","required":["token"],"properties":{"token":{"type":"string"}}}},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"produces":["application/json"],"responses":{"200":{"description":"Success"},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/api/document/{id}/file":{"get":{"summary":"Get the file associated with the document","description":"Returns a full length file","tags":["Document"],"operationId":"getFullPathDocument","parameters":[{"name":"id","in":"path","type":"string","required":true,"description":"The Document identifier"},{"name":"token","description":"The token in query for easier display","required":true,"type":"string","in":"query"},{"name":"onlyDisplay","description":"If true, do not define the attachment name so that the file is displayed instead of downloaded","type":"boolean","in":"query"}],"produces":["application/json"],"responses":{"200":{"description":"File content"},"404":{"description":"An error occured with the credentials, user has been removed or deactivated"}}}},"/api/get/documents/for/employee/{id}":{"post":{"tags":["Employee","Interim","SubleaseEmployee"],"summary":"Query additional documents that can be uploaded on an Employee / Interim / SubleaseEmployee","description":"Returns all the complementary documents that can be uploaded on an Employee / Interim / SubleaseEmployee.","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","type":"string","in":"path","description":"ID of the employee / interim / subleaseEmployee","required":true},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"GetDocumentsForEmployee","responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"object","properties":{"accreditations":{"type":"array","items":{"$ref":"#/definitions/AdditionalDocument"}},"qualifications":{"type":"array","items":{"$ref":"#/definitions/AdditionalDocument"}}}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/api/cgu/lastVersion":{"get":{"tags":["Cgu"],"summary":"Find the last Cgu version","description":"Return the last cgu version Id","operationId":"getCguLastVersion","parameters":[{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"responses":{"200":{"description":"The request item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/api/cgu/{id}/file":{"get":{"summary":"Get the file associated with the cgu","description":"Returns a full length file","tags":["Cgu"],"operationId":"getFullPathDocument","parameters":[{"name":"id","in":"path","type":"string","required":true,"description":"The cgu identifier"},{"name":"token","description":"The token in query for easier display","type":"string","in":"query"},{"name":"onlyDisplay","description":"If true, do not define the attachment name so that the file is displayed instead of downloaded","type":"boolean","in":"query"}],"produces":["application/json"],"responses":{"200":{"description":"File content"},"404":{"description":"An error occured with the credentials, user has been removed or deactivated"}}}},"/api/user/{id}/cguValidate":{"get":{"tags":["User"],"summary":"insert the cgu version accepted","description":"insert the cgu version accepted","operationId":"postUserCguVersion","parameters":[{"name":"id","in":"path","type":"string","required":true,"description":"The user identifier"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"responses":{"200":{"description":"The request item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/mobile/site/{id_site}/company":{"get":{"tags":["Mobile"],"summary":"Return list of companies admitted to the site","description":"Return list of companies admitted to the site","operationId":"getCompanyBySite","security":[{"AuthHeader":[]}],"parameters":[{"name":"id_site","in":"path","type":"string","required":true},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/CompanySite"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/mobile/site/{id_site}/people":{"get":{"tags":["Mobile"],"summary":"List of people available on site","description":"List of people available on site","operationId":"getPeopleBySite","security":[{"AuthHeader":[]}],"parameters":[{"name":"id_site","in":"path","type":"string","required":true},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/PeopleSite"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/mobile/site":{"get":{"tags":["Mobile"],"summary":"List of sites available for controller","description":"List of site available for controller","operationId":"getSiteByController","security":[{"AuthHeader":[]}],"parameters":[{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/ControllerSites"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/mobile/siteControl/{id_site}/entries":{"post":{"tags":["Mobile"],"summary":"Post control entries data","description":"Post control entries data","operationId":"postControlEntries","security":[{"AuthHeader":[]}],"parameters":[{"name":"id_site","required":true,"in":"path","type":"string"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"},{"name":"data","in":"body","description":"the list of entries","required":true,"schema":{"type":"object","required":["known","unknown"],"properties":{"known":{"type":"array","items":{"type":"object","required":["authorized","id","companyId","companyName"],"properties":{"id":{"type":"string"},"companyId":{"type":"string"},"lastname":{"type":"string"},"firstname":{"type":"string"},"companyName":{"type":"string"},"authorized":{"type":"boolean"},"incidentOtherReason":{"type":"string"},"incidentType":{"type":"string"}}}},"unknown":{"type":"array","items":{"type":"object","required":["lastname","firstname","companyName","peopleType"],"properties":{"lastname":{"type":"string"},"firstname":{"type":"string"},"companyId":{"type":"string"},"companyName":{"type":"string"},"peopleType":{"type":"string","enum":["employee","interim","pmo"]},"incidentOtherReason":{"type":"string"},"incidentType":{"type":"string"}}}},"siteControl":{"type":"object","required":["startedAt","endedAt"],"properties":{"controllerId":{"type":"string"},"controllerCompanyId":{"type":"string"},"startedAt":{"type":"string","format":"dateTime"},"endedAt":{"type":"string","format":"dateTime"},"revivalAt":{"type":"string","format":"dateTime"},"startLatitude":{"type":"string"},"startLongitude":{"type":"string"},"endLatitude":{"type":"string"},"endLongitude":{"type":"string"},"countIncident":{"type":"string"},"countValid":{"type":"string"}}}}}}],"responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/ControlEntries"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/mobile/siteControl/{id_site}/startControl":{"post":{"tags":["Mobile"],"summary":"Post to start Control","description":"Post control data","operationId":"postControlEntries","security":[{"AuthHeader":[]}],"parameters":[{"name":"id_site","required":true,"in":"path","type":"string"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"},{"name":"data","in":"body","description":"the list of entries","required":true,"schema":{"type":"object","required":["startLatitude","startLongitude"],"properties":{"id":{"type":"string"},"startedAt":{"type":"string","format":"dateTime"},"startLatitude":{"type":"string"},"startLongitude":{"type":"string"}}}}],"responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/SiteControl"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/mobile/siteControl/{id_site_control}/stopControl":{"post":{"tags":["Mobile"],"summary":"Post to stop Control","description":"Post control data","operationId":"postControlEntries","security":[{"AuthHeader":[]}],"parameters":[{"name":"id_site_control","required":true,"in":"path","type":"string"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"},{"name":"data","in":"body","description":"the list of entries","required":true,"schema":{"type":"object","required":["endLatitude","endLongitude"],"properties":{"id":{"type":"string"},"endAt":{"type":"string","format":"dateTime"},"endLatitude":{"type":"string"},"endLongitude":{"type":"string"}}}}],"responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/SiteControl"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/api/view/{id_site}/viewControlCompany":{"get":{"tags":["ViewControl"],"summary":"Query the poeple.","description":"'The provided OData query is evaluated and an array of Employee objects is returned. If no OData query is specified, all items are returned.'\n\n# Details\nWhen using a mobile token, only marked as sync sites are used for getting employees.\n\nWhen using a web token, for getting employees of a company, use /api/company/{id}/employees. For getting employees of a site, use the /api/site/{id}/employees method.\n","security":[{"AuthHeader":[]}],"parameters":[{"name":"id_site","description":"The site identifier","required":true,"type":"string","in":"path"},{"name":"$filter","description":"OData filter clause","required":false,"type":"string","in":"query"},{"name":"$orderby","description":"OData order by clause","required":false,"type":"string","in":"query"},{"name":"$skip","description":"OData skip clause","required":false,"type":"integer","in":"query"},{"name":"$top","description":"OData top clause","required":false,"type":"integer","in":"query"},{"name":"$select","description":"OData select clause","required":false,"type":"string","in":"query"},{"name":"$inlinecount","description":"OData inline count clause","required":false,"type":"string","in":"query"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"QueryEmployee","responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/Company"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/api/view/{id_site}/viewControlPeople":{"get":{"tags":["ViewControl"],"summary":"Query the people.","description":"'The provided OData query is evaluated and an array of Employee objects is returned. If no OData query is specified, all items are returned.'\n\n# Details\nWhen using a mobile token, only marked as sync sites are used for getting employees.\n\nWhen using a web token, for getting employees of a company, use /api/company/{id}/employees. For getting employees of a site, use the /api/site/{id}/employees method.\n","security":[{"AuthHeader":[]}],"parameters":[{"name":"id_site","description":"The site identifier","required":true,"type":"string","in":"path"},{"name":"$filter","description":"OData filter clause","required":false,"type":"string","in":"query"},{"name":"$orderby","description":"OData order by clause","required":false,"type":"string","in":"query"},{"name":"$skip","description":"OData skip clause","required":false,"type":"integer","in":"query"},{"name":"$top","description":"OData top clause","required":false,"type":"integer","in":"query"},{"name":"$select","description":"OData select clause","required":false,"type":"string","in":"query"},{"name":"$inlinecount","description":"OData inline count clause","required":false,"type":"string","in":"query"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"QueryEmployee","responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/People"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/api/view/viewSites":{"get":{"tags":["ViewSites"],"summary":"Query the people.","description":"'The provided OData query is evaluated and an array of Employee objects is returned. If no OData query is specified, all items are returned.'\n\n# Details\nWhen using a mobile token, only marked as sync sites are used for getting employees.\n\nWhen using a web token, for getting employees of a company, use /api/company/{id}/employees. For getting employees of a site, use the /api/site/{id}/employees method.\n","security":[{"AuthHeader":[]}],"parameters":[{"name":"$filter","description":"OData filter clause","required":false,"type":"string","in":"query"},{"name":"$orderby","description":"OData order by clause","required":false,"type":"string","in":"query"},{"name":"$skip","description":"OData skip clause","required":false,"type":"integer","in":"query"},{"name":"$top","description":"OData top clause","required":false,"type":"integer","in":"query"},{"name":"$select","description":"OData select clause","required":false,"type":"string","in":"query"},{"name":"$inlinecount","description":"OData inline count clause","required":false,"type":"string","in":"query"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"QueryEmployee","responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/Site"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}}},"/tables/document":{"get":{"tags":["Document"],"summary":"Query the Document table for controllers. Only available for mobile app","description":"The provided OData query is evaluated and an array of Document objects is returned. If no OData query is specified, all items are returned.","security":[{"AuthHeader":[]}],"parameters":[{"name":"$filter","description":"OData filter clause","required":false,"type":"string","in":"query"},{"name":"$orderby","description":"OData order by clause","required":false,"type":"string","in":"query"},{"name":"$skip","description":"OData skip clause","required":false,"type":"integer","in":"query"},{"name":"$top","description":"OData top clause","required":false,"type":"integer","in":"query"},{"name":"$select","description":"OData select clause","required":false,"type":"string","in":"query"},{"name":"$inlinecount","description":"OData inline count clause","required":false,"type":"string","in":"query"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"QueryDocument","responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/Document"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}},"post":{"tags":["Document"],"summary":"Insert a record into the Document table - Only available for mobile","security":[{"AuthHeader":[]}],"parameters":[{"name":"body","description":"The item","required":true,"schema":{"$ref":"#/definitions/Document"},"in":"body"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"InsertDocument","responses":{"201":{"description":"The inserted item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"An item with the same ID already exists","schema":{"$ref":"#/definitions/Document"}},"500":{"description":"An internal error occurred"}}}},"/tables/document/{id}":{"get":{"tags":["Document"],"summary":"Find a specific record in the Document table","description":"Return the Document object that corresponds with the provided id.","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"FindDocument","responses":{"200":{"description":"The request item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}},"post":{"tags":["Document"],"summary":"Undelete a record from the Document table","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"UndeleteDocument","responses":{"201":{"description":"The undeleted item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"500":{"description":"An internal error occurred"}}},"patch":{"tags":["Document"],"summary":"Update a record in the Document table - Only available for mobile","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"body","description":"The item","required":true,"schema":{"$ref":"#/definitions/Document"},"in":"body"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"UpdateDocument","responses":{"200":{"description":"The updated item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"500":{"description":"An internal error occurred"}}},"delete":{"tags":["Document"],"summary":"Delete a record from the Document table","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"DeleteDocument","responses":{"200":{"description":"The deleted item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"500":{"description":"An internal error occurred"}}}},"/tables/user":{"get":{"tags":["User"],"summary":"Query the User table","description":"The provided OData query is evaluated and an array of User objects is returned. If no OData query is specified, all items are returned.","security":[{"AuthHeader":[]}],"parameters":[{"name":"$filter","description":"OData filter clause","required":false,"type":"string","in":"query"},{"name":"$orderby","description":"OData order by clause","required":false,"type":"string","in":"query"},{"name":"$skip","description":"OData skip clause","required":false,"type":"integer","in":"query"},{"name":"$top","description":"OData top clause","required":false,"type":"integer","in":"query"},{"name":"$select","description":"OData select clause","required":false,"type":"string","in":"query"},{"name":"$inlinecount","description":"OData inline count clause","required":false,"type":"string","in":"query"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"QueryUser","responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/User"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}},"post":{"tags":["User"],"summary":"Insert a record into the User table","security":[{"AuthHeader":[]}],"parameters":[{"name":"body","description":"The item","required":true,"schema":{"$ref":"#/definitions/User"},"in":"body"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"InsertUser","responses":{"201":{"description":"The inserted item","schema":{"$ref":"#/definitions/User"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"An item with the same ID already exists","schema":{"$ref":"#/definitions/User"}},"500":{"description":"An internal error occurred"}}}},"/tables/user/{id}":{"get":{"tags":["User"],"summary":"Find a specific record in the User table","description":"Return the User object that corresponds with the provided id.","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"FindUser","responses":{"200":{"description":"The request item","schema":{"$ref":"#/definitions/User"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}},"post":{"tags":["User"],"summary":"Undelete a record from the User table","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"UndeleteUser","responses":{"201":{"description":"The undeleted item","schema":{"$ref":"#/definitions/User"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/User"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/User"}},"500":{"description":"An internal error occurred"}}},"patch":{"tags":["User"],"summary":"Update a record in the User table","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"body","description":"The item","required":true,"schema":{"$ref":"#/definitions/User"},"in":"body"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"UpdateUser","responses":{"200":{"description":"The updated item","schema":{"$ref":"#/definitions/User"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/User"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/User"}},"500":{"description":"An internal error occurred"}}},"delete":{"tags":["User"],"summary":"Delete a record from the User table","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"DeleteUser","responses":{"200":{"description":"The deleted item","schema":{"$ref":"#/definitions/User"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/User"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/User"}},"500":{"description":"An internal error occurred"}}}},"/tables/siteControl":{"get":{"tags":["SiteControl"],"summary":"Query the SiteControl table. Only available for the mobile app","description":"The provided OData query is evaluated and an array of SiteControl objects is returned. If no OData query is specified, all items are returned.","security":[{"AuthHeader":[]}],"parameters":[{"name":"$filter","description":"OData filter clause","required":false,"type":"string","in":"query"},{"name":"$orderby","description":"OData order by clause","required":false,"type":"string","in":"query"},{"name":"$skip","description":"OData skip clause","required":false,"type":"integer","in":"query"},{"name":"$top","description":"OData top clause","required":false,"type":"integer","in":"query"},{"name":"$select","description":"OData select clause","required":false,"type":"string","in":"query"},{"name":"$inlinecount","description":"OData inline count clause","required":false,"type":"string","in":"query"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"QuerySiteControl","responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/SiteControl"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}},"post":{"tags":["SiteControl"],"summary":"Insert a record into the SiteControl table. Only available on mobile app","security":[{"AuthHeader":[]}],"parameters":[{"name":"body","description":"The item","required":true,"schema":{"$ref":"#/definitions/SiteControl"},"in":"body"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"InsertSiteControl","responses":{"201":{"description":"The inserted item","schema":{"$ref":"#/definitions/SiteControl"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"An item with the same ID already exists","schema":{"$ref":"#/definitions/SiteControl"}},"500":{"description":"An internal error occurred"}}}},"/tables/siteControl/{id}":{"get":{"tags":["SiteControl"],"summary":"Find a specific record in the SiteControl table","description":"Return the SiteControl object that corresponds with the provided id.","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"FindSiteControl","responses":{"200":{"description":"The request item","schema":{"$ref":"#/definitions/SiteControl"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}},"post":{"tags":["SiteControl"],"summary":"Undelete a record from the SiteControl table","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"UndeleteSiteControl","responses":{"201":{"description":"The undeleted item","schema":{"$ref":"#/definitions/SiteControl"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/SiteControl"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/SiteControl"}},"500":{"description":"An internal error occurred"}}},"patch":{"tags":["SiteControl"],"summary":"Update a record in the SiteControl table","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"body","description":"The item","required":true,"schema":{"$ref":"#/definitions/SiteControl"},"in":"body"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"UpdateSiteControl","responses":{"200":{"description":"The updated item","schema":{"$ref":"#/definitions/SiteControl"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/SiteControl"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/SiteControl"}},"500":{"description":"An internal error occurred"}}},"delete":{"tags":["SiteControl"],"summary":"Delete a record from the SiteControl table","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"DeleteSiteControl","responses":{"200":{"description":"The deleted item","schema":{"$ref":"#/definitions/SiteControl"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/SiteControl"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/SiteControl"}},"500":{"description":"An internal error occurred"}}}},"/tables/cgu":{"get":{"tags":["Cgu"],"summary":"Find a specific record in the Cgu table","description":"Return the Cgu object that corresponds with the provided id.","security":[{"AuthHeader":[]}],"parameters":[{"name":"$filter","description":"OData filter clause","required":false,"type":"string","in":"query"},{"name":"$orderby","description":"OData order by clause","required":false,"type":"string","in":"query"},{"name":"$skip","description":"OData skip clause","required":false,"type":"integer","in":"query"},{"name":"$top","description":"OData top clause","required":false,"type":"integer","in":"query"},{"name":"$select","description":"OData select clause","required":false,"type":"string","in":"query"},{"name":"$inlinecount","description":"OData inline count clause","required":false,"type":"string","in":"query"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"FindCgu","responses":{"200":{"description":"The request item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}},"post":{"tags":["Cgu"],"summary":"Undelete a record from the Cgu table","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"UndeleteCgu","responses":{"201":{"description":"The undeleted item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"500":{"description":"An internal error occurred"}}},"patch":{"tags":["Cgu"],"summary":"Update a record in the Cgu table - Only available for mobile","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"body","description":"The item","required":true,"schema":{"$ref":"#/definitions/Document"},"in":"body"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"UpdateCgu","responses":{"200":{"description":"The updated item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"500":{"description":"An internal error occurred"}}},"delete":{"tags":["Cgu"],"summary":"Delete a record from the Cgu table","security":[{"AuthHeader":[]}],"parameters":[{"name":"id","description":"The record identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"DeleteCgu","responses":{"200":{"description":"The deleted item","schema":{"$ref":"#/definitions/Document"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"412":{"description":"A concurrency violation occurred","schema":{"$ref":"#/definitions/Document"}},"500":{"description":"An internal error occurred"}}}},"/tables/siteControlEntry":{"get":{"tags":["SiteControlEntry"],"summary":"Query the SiteControlEntry table.","description":"The provided OData query is evaluated and an array of SiteControlEntry objects is returned. If no OData query is specified, all items are returned.","security":[{"AuthHeader":[]}],"parameters":[{"name":"$filter","description":"OData filter clause","required":false,"type":"string","in":"query"},{"name":"$orderby","description":"OData order by clause","required":false,"type":"string","in":"query"},{"name":"$skip","description":"OData skip clause","required":false,"type":"integer","in":"query"},{"name":"$top","description":"OData top clause","required":false,"type":"integer","in":"query"},{"name":"$select","description":"OData select clause","required":false,"type":"string","in":"query"},{"name":"$inlinecount","description":"OData inline count clause","required":false,"type":"string","in":"query"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"QuerySiteControlEntry","responses":{"200":{"description":"An array of items matching the provided query","schema":{"type":"array","items":{"$ref":"#/definitions/SiteControlEntry"}}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"500":{"description":"An internal error occurred"}}},"post":{"tags":["SiteControlEntry"],"summary":"Insert a record into the SiteControlEntry table. Only available on mobile app","security":[{"AuthHeader":[]}],"parameters":[{"name":"body","description":"The item","required":true,"schema":{"$ref":"#/definitions/SiteControlEntry"},"in":"body"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"InsertSiteControlEntry","responses":{"201":{"description":"The inserted item","schema":{"$ref":"#/definitions/SiteControlEntry"}},"400":{"description":"The format of the request was incorrect"},"404":{"description":"The table or item could not be found"},"405":{"description":"The operation has been disabled"},"409":{"description":"An item with the same ID already exists","schema":{"$ref":"#/definitions/SiteControlEntry"}},"500":{"description":"An internal error occurred"}}}},"/api/site/{id_site}/qualifications":{"get":{"tags":["Site"],"summary":"Find qualifications of a site","description":"Return all the qualifications of a site.","security":[{"AuthHeader":[]}],"parameters":[{"name":"id_site","description":"The site identifier","required":true,"type":"string","in":"path"},{"name":"zumo-api-version","description":"The Azure Mobile Apps API version","required":true,"type":"string","in":"header","default":"2.0.0"}],"operationId":"FindSiteQualificationsForSepecificSite","responses":{"200":{"description":"The request item","schema":{"type":"array","items":{"$ref":"#/definitions/SiteQualification"}}},"400":{"description":"The format of the request was incorrect"},"500":{"description":"An internal error occurred"}}}}},"responses":{"UnauthorizedError":{"description":"Authorization Token missing","headers":{"WWW_Authenticate":{"type":"string"}}},"NotFound":{"description":"The item has not been found"}}},"customOptions":{}}