| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- POST http://localhost/api/user/user/POST_userV2.php
- Content-Type: application/json
- {
- "firstName": "Jean",
- "lastName": "Dupont",
- "login": "jean.dupont@sipa-automobiles.fr",
- "mail": "jean.dupont@sipa-automobiles.fr",
- "dtContractStart": "2025-11-08T00:00:00",
- "legalEntityId": 1,
- "departmentId": 427,
- "cultureID": 1036,
- "rolePrincipalId": 55,
- "employeeNumber": "999999",
- "managerId": 585,
- "birthDate": "1990-05-15T00:00:00",
- "calendarId": 1,
- "habilitedRoles": [
- {"id": 59},
- {"id": 63}
- ],
- "jobTitle": "Développeur Full Stack",
- "gender": "Male",
- "address": "123 rue de la Paix, 75001 Paris",
- "personalEmail": "jean.dupont.perso@gmail.com",
- "personalMobile": "+33612345678",
- "professionalMobile": "+33687654321",
- "allowsElectronicPayslip": true,
- "bankName": "Banque Postale",
- "iban": "FR0312739000302346383836C42",
- "bic": "PSSTFRPPXXX",
- "nationalityId": "FR",
- "seniorityDate": "2025-11-08T00:00:00"
- }
- ---
- EXPLICATION DES CHAMPS UTILISÉS:
- - departmentId: 427 (Vente VN MMA) - récupéré depuis get_departments.php
- - managerId: 585 (Thomas DUPOUY) - récupéré depuis GET_all_users.php
- - legalEntityId: 1 (valeur par défaut, à ajuster selon votre instance)
- - rolePrincipalId: 55 (valeur par défaut, à ajuster selon votre instance)
- - cultureID: 1036 (français France - LCID standard)
- - calendarId: 1 (valeur par défaut)
- POUR TESTER AVEC CURL:
- curl -X POST http://localhost/api/user/user/POST_userV2.php \
- -H "Content-Type: application/json" \
- -H "Authorization: Bearer VOTRE_TOKEN_LUCCA" \
- -d '{
- "firstName": "Jean",
- "lastName": "Dupont",
- "login": "jean.dupont.test@sipa-automobiles.fr",
- "mail": "jean.dupont.test@sipa-automobiles.fr",
- "dtContractStart": "2025-11-08T00:00:00",
- "legalEntityId": 1,
- "departmentId": 427,
- "cultureID": 1036,
- "rolePrincipalId": 55,
- "employeeNumber": "999999",
- "managerId": 585,
- "birthDate": "1990-05-15T00:00:00",
- "calendarId": 1,
- "habilitedRoles": [{"id": 59}, {"id": 63}],
- "jobTitle": "Développeur Full Stack",
- "gender": "Male"
- }'
- DÉPARTEMENTS DISPONIBLES (exemples):
- - 427: Vente VN MMA
- - 566: Vente VN HYUNDAI AN
- - 617: Vente VN CNBL Saint-Avit
- - 381: Atelier ETLT
- - 94: Atelier AN
- MANAGERS DISPONIBLES (exemples):
- - 585: Thomas DUPOUY
- - 1889: Aric ANTEBI
- - 347: Alain BARBET
- - 492: Romain GAROCHAU
- - 1425: Mathilde NACRY
|