Attaching employees to the company

Once the software is linked to the company, it is possible to make API requests in order to ask the employees to grant the software the access rights to their Mobilic account. In order to do that, it is necessary to make a call to the endpoint /protected with the list of the employees to attach:

mutation {
    company{
        syncEmployment(companyId: 58, employees: [
                 {firstName:"Prénom_test1",
                  lastName:"Nom_test1",
                  email:"email-salarie1@gmail.com"},
                 {firstName:"Prénom_test2",
                  lastName:"Nom_test2",
                  email:"email-salarie2@gmail.com"}]){
            id
            email
            user{
                firstName
                lastName
            }
        }
    }
}

Last updated