WebAPI - Creating an employee

WebAPI - Creating an employee

This method allows to create an employee in a simplified manner. 
The method to be used when creating an employee:
POST url/api/mytenant/myorganization/workshopscore/employees
Json example for creating an employee:

1.       {

    "externalReferenceID""125522",

    "isInternalEmployee"true,

    "contractStartDate""2020-11-09T00:00:00",

    "contractEndDate""2027-08-08T00:00:00",

    "remarks"null,

    "partyKey""0002",

    "name""João",

    "keyword"null,

    "companyTaxID"null,

    "electronicMail"null,

    "telephone""125125125",

    "mobile""125125125",

    "websiteUrl""http://valuekeep.com",

    "notes"null,

    "picture"null,

    "pictureThumbnail"null,

    "streetName""Rua Manuel da Silva ",

    "buildingNumber""145",

    "postalZone""1478-125",

    "cityName""",

    "contactName"null,

    "contactTitle"null,

    "username"null,

    "employeeExpertises": [

        {

            "expertise""AVAC"

        }

    ],

    "schedulingGroup""TRA",

    "currency""EUR",

    "country""PT",

    "culture""PT-PT"

}

This method allows to create an employee according to the parameters filled in:
  1. externalreferenceID: External reference ID.
  2. isInternalEmployee: This field is filled in with "true" or "false" and it specifies if it is an internal employee or not. This field is mandatory.
  3. contractStartDate: Contract start date.
  4. contractEndDate: Contract end date.
  5. remarks: Employee extension remarks.
  6. partyKey: Employee key. Mandatory field.
  7. name: Short description of the employee. This field is mandatory.
  8. keyword: Short description of the employee.
  9. companyTaxID: Tax ID number.
  10. electronicMail: Employee email.
  11. telephone: Telephone number.
  12. mobile: Mobile phone number.
  13. websiteUrl: Website.
  14. notes: Entity extension remarks.
  15. picture: the image. 
  16. streetName: Street.
  17. buildingNumber: Building number.
  18. postalZone: Postal code.
  19. cityName: City.
  20. contactName: Short description of the employee.
  21. username: User name.
  22. employeeExpertises: Expertise key.
  23. schedulingGroup: Scheduling group key. This field is mandatory.
  24. currency: The currency's key. This field is mandatory.
  25. country: The country's key. This field is mandatory.
  26. culture: The culture's key. This field is mandatory.
When this method is executed successfully, it returns HttpStatusCode.201Created.



    • Related Articles

    • WebAPI - Creating a warehouse

      This method allows to create a warehouse in a simplified manner. The method to be used when creating a warehouse: POST url/api/mytenant/myorganization/inventorycore/warehouses Json example for creating a warehouse: 1. { "warehouseKey": "W2", ...
    • WebAPI - Creating a request

      This method allows to create a request in a simplified manner. The method to be used when creating a request: POST url/api/mytenant/myorganization/Requests/requests Json example for creating a request: { "requestKey": "00001", "description": "Vidro ...
    • WebAPI - Creating a requisition type

      This method allows creating a type of requisition in a simplified manner. The method to be used to create a requisition type is: POST url/api/mytenant/myorganization/requisitionscore/requisitiontypes Json example for creating a type of requisition:  ...
    • WebAPI - Creating a tool

      This method allows to create a tool in a simplified manner. The method to be used when creating a tool is: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating a tool: 1.     {     "equipmentKey": "PCR", ...
    • WebAPI - Creating an equipment

      This method allows to create an equipment in a simplified manner. The method to be used when creating an equipment: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating an equipment: 1.       { ...