> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://open-api-docs.dice.tech/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://open-api-docs.dice.tech/_mcp/server.

# Create New Employee

POST https://heimdall.eka.io/apis/external/employee/create
Content-Type: application/json

This API endpoint is used to create a new employee in the external system. The request should be sent as an HTTP POST to \{\{host}}/apis/external/employee/create with the required payload in the raw request body.

### Request Payload

| Params           | Required  | Type      | Description                                                 |
| ---------------- | --------- | --------- | ----------------------------------------------------------- |
| email            | Mandatory | String    | The email address of the employee.                          |
| mobile           | Mandatory | String    | The mobile/phone number of the employee.                    |
| code             | Mandatory | String    | The employee code or identification number.                 |
| name             | Mandatory | Object    | The name of the employee.                                   |
| fullName         | Mandatory | String    | The full name of the employee.                              |
| firstName        | Optional  | String    | The first name of the employee.                             |
| lastName         | Optional  | String    | The last name of the employee.                              |
| department       | Mandatory | String    | The department to which the employee belongs.               |
| office           | Mandatory | String    | The office location of the employee.                        |
| dob              | Optional  | Integer   | The date of birth of the employee in Unix timestamp format. |
| grade            | Mandatory | Mandatory | The grade or level of the employee.                         |
| gender           | Optional  | String    | The gender of the employee.                                 |
| manager          | Optional  | String    | The manager of the employee.                                |
| alternate        | Optional  | String    | The alternate contact information for the employee.         |
| hrHead           | Optional  | String    | The HR head or contact person for the employee.             |
| additionalFirst  | Optional  | String    | Additional information field.                               |
| additionalSecond | Optional  | String    | Additional information field.                               |
| active           | Mandatory | Boolean   | Indicates whether the employee is active or not.            |

### Response

The response will contain a `success` field, which will be set to `true` if the employee creation was successful.

### Error Responses

In case of errors or missing information, the API will provide corresponding error messages. Below are the possible error scenarios along with their respective JSON responses:\
t

#### 1. Grade Not Provided

This error occurs when the grade field is not filled in the request.

```json
{
    "message": "Grade is required",
    "error": "Grade is required"

```

#### 2. Office Not Provided

This error occurs when the office information is not provided in the request.

```json
{
    "message": "Office is required",
    "error": "Office is required"
}

```

#### 3. Department Not Provided

This error denotes that the request did not include the employee's department information.

```json
{
    "message": "Office is required",
    "error": "Office is required"
}

```

#### 4. Manager Not Found

This error indicates that the specified manager could not be found in the system.

```json
{
    "message": "8456 Manager not found ",
    "error": "8456 Manager not found "
}

```

#### 5. Duplicate Employee Code

This error occurs when an attempt is made to create an employee with a code that already exists in the system.

```json
{
    "message": "Employee Already exists with same employee code",
    "error": "Employee Already exists with same employee code"
}

```

#### 6. Name Not Provided

This error signifies that the request did not include the employee's name.

```json
{"message":"000059 can't be uploaded due to {"message":"Invalid value for name provided","error":"Invalid value for name provided"} 
","error":"000059 can't be uploaded due to {"message":"Invalid value for name provided","error":"Invalid value for name provided"} 
"}

```

Reference: https://open-api-docs.dice.tech/dice-standardized-ap-is-v-2-copy/employee/create-new-employee

## Servers

- `https://heimdall.eka.io` (https://heimdall.eka.io, default)
- `https://heimdall.eka.ioapis` (https://heimdall.eka.ioapis)

## Request

### Headers

- `DICE-APP-ID` (string, optional) — Company Code of client
- `X-CLIENT-ID` (string, optional) — API Client ID
- `X-CLIENT-SECRET` (string, optional) — API Client Secret

### Body (application/json)

- `data` (object, required)
  - `email` (string, required)
  - `mobile` (string, required)
  - `code` (string, required)
  - `name` (object, required)
    - `fullName` (string, required)
    - `firstName` (string, required)
    - `lastName` (string, required)
  - `department` (string, required)
  - `office` (string, required)
  - `dob` (integer, required)
  - `grade` (string, required)
  - `gender` (string, required)
  - `manager` (string, required)
  - `alternate` (string, required)
  - `hrHead` (string, required)
  - `additionalFirst` (string, required)
  - `additionalSecond` (string, required)
  - `active` (boolean, required)

## Response

### 200

OK

- `success` (boolean, required)

## Examples

### Create New Employee

**Request**

```json
undefined
```

**Response**

```json
{
  "success": true
}
```

**SDK Code**

```python Create New Employee
import requests

url = "https://heimdall.eka.io/apis/external/employee/create"

headers = {
    "DICE-APP-ID": "{{Company Code}}",
    "X-CLIENT-ID": "{{API Client ID}}",
    "X-CLIENT-SECRET": "{{API Client Secret}}"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Create New Employee
const url = 'https://heimdall.eka.io/apis/external/employee/create';
const options = {
  method: 'POST',
  headers: {
    'DICE-APP-ID': '{{Company Code}}',
    'X-CLIENT-ID': '{{API Client ID}}',
    'X-CLIENT-SECRET': '{{API Client Secret}}'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Create New Employee
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://heimdall.eka.io/apis/external/employee/create"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("DICE-APP-ID", "{{Company Code}}")
	req.Header.Add("X-CLIENT-ID", "{{API Client ID}}")
	req.Header.Add("X-CLIENT-SECRET", "{{API Client Secret}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Create New Employee
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/employee/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["DICE-APP-ID"] = '{{Company Code}}'
request["X-CLIENT-ID"] = '{{API Client ID}}'
request["X-CLIENT-SECRET"] = '{{API Client Secret}}'

response = http.request(request)
puts response.read_body
```

```java Create New Employee
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://heimdall.eka.io/apis/external/employee/create")
  .header("DICE-APP-ID", "{{Company Code}}")
  .header("X-CLIENT-ID", "{{API Client ID}}")
  .header("X-CLIENT-SECRET", "{{API Client Secret}}")
  .asString();
```

```php Create New Employee
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://heimdall.eka.io/apis/external/employee/create', [
  'headers' => [
    'DICE-APP-ID' => '{{Company Code}}',
    'X-CLIENT-ID' => '{{API Client ID}}',
    'X-CLIENT-SECRET' => '{{API Client Secret}}',
  ],
]);

echo $response->getBody();
```

```csharp Create New Employee
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/apis/external/employee/create");
var request = new RestRequest(Method.POST);
request.AddHeader("DICE-APP-ID", "{{Company Code}}");
request.AddHeader("X-CLIENT-ID", "{{API Client ID}}");
request.AddHeader("X-CLIENT-SECRET", "{{API Client Secret}}");
IRestResponse response = client.Execute(request);
```

```swift Create New Employee
import Foundation

let headers = [
  "DICE-APP-ID": "{{Company Code}}",
  "X-CLIENT-ID": "{{API Client ID}}",
  "X-CLIENT-SECRET": "{{API Client Secret}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/employee/create")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Create New Employee 1

**Request**

```json
undefined
```

**Response**

```json
{
  "success": true
}
```

**SDK Code**

```python Create New Employee 1
import requests

url = "https://heimdall.eka.io/apis/external/employee/create"

headers = {
    "DICE-APP-ID": "{{Company Code}}",
    "X-CLIENT-ID": "{{API Client ID}}",
    "X-CLIENT-SECRET": "{{API Client Secret}}"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Create New Employee 1
const url = 'https://heimdall.eka.io/apis/external/employee/create';
const options = {
  method: 'POST',
  headers: {
    'DICE-APP-ID': '{{Company Code}}',
    'X-CLIENT-ID': '{{API Client ID}}',
    'X-CLIENT-SECRET': '{{API Client Secret}}'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Create New Employee 1
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://heimdall.eka.io/apis/external/employee/create"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("DICE-APP-ID", "{{Company Code}}")
	req.Header.Add("X-CLIENT-ID", "{{API Client ID}}")
	req.Header.Add("X-CLIENT-SECRET", "{{API Client Secret}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Create New Employee 1
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/employee/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["DICE-APP-ID"] = '{{Company Code}}'
request["X-CLIENT-ID"] = '{{API Client ID}}'
request["X-CLIENT-SECRET"] = '{{API Client Secret}}'

response = http.request(request)
puts response.read_body
```

```java Create New Employee 1
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://heimdall.eka.io/apis/external/employee/create")
  .header("DICE-APP-ID", "{{Company Code}}")
  .header("X-CLIENT-ID", "{{API Client ID}}")
  .header("X-CLIENT-SECRET", "{{API Client Secret}}")
  .asString();
```

```php Create New Employee 1
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://heimdall.eka.io/apis/external/employee/create', [
  'headers' => [
    'DICE-APP-ID' => '{{Company Code}}',
    'X-CLIENT-ID' => '{{API Client ID}}',
    'X-CLIENT-SECRET' => '{{API Client Secret}}',
  ],
]);

echo $response->getBody();
```

```csharp Create New Employee 1
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/apis/external/employee/create");
var request = new RestRequest(Method.POST);
request.AddHeader("DICE-APP-ID", "{{Company Code}}");
request.AddHeader("X-CLIENT-ID", "{{API Client ID}}");
request.AddHeader("X-CLIENT-SECRET", "{{API Client Secret}}");
IRestResponse response = client.Execute(request);
```

```swift Create New Employee 1
import Foundation

let headers = [
  "DICE-APP-ID": "{{Company Code}}",
  "X-CLIENT-ID": "{{API Client ID}}",
  "X-CLIENT-SECRET": "{{API Client Secret}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/employee/create")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Create New Employee 2

**Request**

```json
undefined
```

**Response**

```json
{
  "success": true
}
```

**SDK Code**

```python Create New Employee 2
import requests

url = "https://heimdall.eka.io/apis/external/employee/create"

headers = {
    "DICE-APP-ID": "{{Company Code}}",
    "X-CLIENT-ID": "{{API Client ID}}",
    "X-CLIENT-SECRET": "{{API Client Secret}}"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Create New Employee 2
const url = 'https://heimdall.eka.io/apis/external/employee/create';
const options = {
  method: 'POST',
  headers: {
    'DICE-APP-ID': '{{Company Code}}',
    'X-CLIENT-ID': '{{API Client ID}}',
    'X-CLIENT-SECRET': '{{API Client Secret}}'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Create New Employee 2
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://heimdall.eka.io/apis/external/employee/create"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("DICE-APP-ID", "{{Company Code}}")
	req.Header.Add("X-CLIENT-ID", "{{API Client ID}}")
	req.Header.Add("X-CLIENT-SECRET", "{{API Client Secret}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Create New Employee 2
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/employee/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["DICE-APP-ID"] = '{{Company Code}}'
request["X-CLIENT-ID"] = '{{API Client ID}}'
request["X-CLIENT-SECRET"] = '{{API Client Secret}}'

response = http.request(request)
puts response.read_body
```

```java Create New Employee 2
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://heimdall.eka.io/apis/external/employee/create")
  .header("DICE-APP-ID", "{{Company Code}}")
  .header("X-CLIENT-ID", "{{API Client ID}}")
  .header("X-CLIENT-SECRET", "{{API Client Secret}}")
  .asString();
```

```php Create New Employee 2
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://heimdall.eka.io/apis/external/employee/create', [
  'headers' => [
    'DICE-APP-ID' => '{{Company Code}}',
    'X-CLIENT-ID' => '{{API Client ID}}',
    'X-CLIENT-SECRET' => '{{API Client Secret}}',
  ],
]);

echo $response->getBody();
```

```csharp Create New Employee 2
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/apis/external/employee/create");
var request = new RestRequest(Method.POST);
request.AddHeader("DICE-APP-ID", "{{Company Code}}");
request.AddHeader("X-CLIENT-ID", "{{API Client ID}}");
request.AddHeader("X-CLIENT-SECRET", "{{API Client Secret}}");
IRestResponse response = client.Execute(request);
```

```swift Create New Employee 2
import Foundation

let headers = [
  "DICE-APP-ID": "{{Company Code}}",
  "X-CLIENT-ID": "{{API Client ID}}",
  "X-CLIENT-SECRET": "{{API Client Secret}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/employee/create")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Create New Employee 3

**Request**

```json
undefined
```

**Response**

```json
{
  "success": true
}
```

**SDK Code**

```python Create New Employee 3
import requests

url = "https://heimdall.eka.io/apis/external/employee/create"

headers = {
    "DICE-APP-ID": "{{Company Code}}",
    "X-CLIENT-ID": "{{API Client ID}}",
    "X-CLIENT-SECRET": "{{API Client Secret}}"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Create New Employee 3
const url = 'https://heimdall.eka.io/apis/external/employee/create';
const options = {
  method: 'POST',
  headers: {
    'DICE-APP-ID': '{{Company Code}}',
    'X-CLIENT-ID': '{{API Client ID}}',
    'X-CLIENT-SECRET': '{{API Client Secret}}'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Create New Employee 3
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://heimdall.eka.io/apis/external/employee/create"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("DICE-APP-ID", "{{Company Code}}")
	req.Header.Add("X-CLIENT-ID", "{{API Client ID}}")
	req.Header.Add("X-CLIENT-SECRET", "{{API Client Secret}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Create New Employee 3
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/employee/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["DICE-APP-ID"] = '{{Company Code}}'
request["X-CLIENT-ID"] = '{{API Client ID}}'
request["X-CLIENT-SECRET"] = '{{API Client Secret}}'

response = http.request(request)
puts response.read_body
```

```java Create New Employee 3
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://heimdall.eka.io/apis/external/employee/create")
  .header("DICE-APP-ID", "{{Company Code}}")
  .header("X-CLIENT-ID", "{{API Client ID}}")
  .header("X-CLIENT-SECRET", "{{API Client Secret}}")
  .asString();
```

```php Create New Employee 3
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://heimdall.eka.io/apis/external/employee/create', [
  'headers' => [
    'DICE-APP-ID' => '{{Company Code}}',
    'X-CLIENT-ID' => '{{API Client ID}}',
    'X-CLIENT-SECRET' => '{{API Client Secret}}',
  ],
]);

echo $response->getBody();
```

```csharp Create New Employee 3
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/apis/external/employee/create");
var request = new RestRequest(Method.POST);
request.AddHeader("DICE-APP-ID", "{{Company Code}}");
request.AddHeader("X-CLIENT-ID", "{{API Client ID}}");
request.AddHeader("X-CLIENT-SECRET", "{{API Client Secret}}");
IRestResponse response = client.Execute(request);
```

```swift Create New Employee 3
import Foundation

let headers = [
  "DICE-APP-ID": "{{Company Code}}",
  "X-CLIENT-ID": "{{API Client ID}}",
  "X-CLIENT-SECRET": "{{API Client Secret}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/employee/create")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Employee_Create New Employee_example

**Request**

```json
{
  "data": {
    "email": "testUser123@gamil.com",
    "mobile": "1231231230",
    "code": "000069",
    "name": {
      "fullName": "test User 123",
      "firstName": "test",
      "lastName": "user 123"
    },
    "department": "Basic",
    "office": "Delhi",
    "dob": 0,
    "grade": "",
    "gender": "",
    "manager": "",
    "alternate": "",
    "hrHead": "",
    "additionalFirst": "",
    "additionalSecond": "",
    "active": true
  }
}
```

**Response**

```json
{
  "success": true
}
```

**SDK Code**

```python Employee_Create New Employee_example
import requests

url = "https://heimdall.eka.io/apis/external/employee/create"

payload = { "data": {
        "email": "testUser123@gamil.com",
        "mobile": "1231231230",
        "code": "000069",
        "name": {
            "fullName": "test User 123",
            "firstName": "test",
            "lastName": "user 123"
        },
        "department": "Basic",
        "office": "Delhi",
        "dob": 0,
        "grade": "",
        "gender": "",
        "manager": "",
        "alternate": "",
        "hrHead": "",
        "additionalFirst": "",
        "additionalSecond": "",
        "active": True
    } }
headers = {
    "DICE-APP-ID": "{{Company Code}}",
    "X-CLIENT-ID": "{{API Client ID}}",
    "X-CLIENT-SECRET": "{{API Client Secret}}",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Employee_Create New Employee_example
const url = 'https://heimdall.eka.io/apis/external/employee/create';
const options = {
  method: 'POST',
  headers: {
    'DICE-APP-ID': '{{Company Code}}',
    'X-CLIENT-ID': '{{API Client ID}}',
    'X-CLIENT-SECRET': '{{API Client Secret}}',
    'Content-Type': 'application/json'
  },
  body: '{"data":{"email":"testUser123@gamil.com","mobile":"1231231230","code":"000069","name":{"fullName":"test User 123","firstName":"test","lastName":"user 123"},"department":"Basic","office":"Delhi","dob":0,"grade":"","gender":"","manager":"","alternate":"","hrHead":"","additionalFirst":"","additionalSecond":"","active":true}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Employee_Create New Employee_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://heimdall.eka.io/apis/external/employee/create"

	payload := strings.NewReader("{\n  \"data\": {\n    \"email\": \"testUser123@gamil.com\",\n    \"mobile\": \"1231231230\",\n    \"code\": \"000069\",\n    \"name\": {\n      \"fullName\": \"test User 123\",\n      \"firstName\": \"test\",\n      \"lastName\": \"user 123\"\n    },\n    \"department\": \"Basic\",\n    \"office\": \"Delhi\",\n    \"dob\": 0,\n    \"grade\": \"\",\n    \"gender\": \"\",\n    \"manager\": \"\",\n    \"alternate\": \"\",\n    \"hrHead\": \"\",\n    \"additionalFirst\": \"\",\n    \"additionalSecond\": \"\",\n    \"active\": true\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("DICE-APP-ID", "{{Company Code}}")
	req.Header.Add("X-CLIENT-ID", "{{API Client ID}}")
	req.Header.Add("X-CLIENT-SECRET", "{{API Client Secret}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Employee_Create New Employee_example
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/employee/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["DICE-APP-ID"] = '{{Company Code}}'
request["X-CLIENT-ID"] = '{{API Client ID}}'
request["X-CLIENT-SECRET"] = '{{API Client Secret}}'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"data\": {\n    \"email\": \"testUser123@gamil.com\",\n    \"mobile\": \"1231231230\",\n    \"code\": \"000069\",\n    \"name\": {\n      \"fullName\": \"test User 123\",\n      \"firstName\": \"test\",\n      \"lastName\": \"user 123\"\n    },\n    \"department\": \"Basic\",\n    \"office\": \"Delhi\",\n    \"dob\": 0,\n    \"grade\": \"\",\n    \"gender\": \"\",\n    \"manager\": \"\",\n    \"alternate\": \"\",\n    \"hrHead\": \"\",\n    \"additionalFirst\": \"\",\n    \"additionalSecond\": \"\",\n    \"active\": true\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Employee_Create New Employee_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://heimdall.eka.io/apis/external/employee/create")
  .header("DICE-APP-ID", "{{Company Code}}")
  .header("X-CLIENT-ID", "{{API Client ID}}")
  .header("X-CLIENT-SECRET", "{{API Client Secret}}")
  .header("Content-Type", "application/json")
  .body("{\n  \"data\": {\n    \"email\": \"testUser123@gamil.com\",\n    \"mobile\": \"1231231230\",\n    \"code\": \"000069\",\n    \"name\": {\n      \"fullName\": \"test User 123\",\n      \"firstName\": \"test\",\n      \"lastName\": \"user 123\"\n    },\n    \"department\": \"Basic\",\n    \"office\": \"Delhi\",\n    \"dob\": 0,\n    \"grade\": \"\",\n    \"gender\": \"\",\n    \"manager\": \"\",\n    \"alternate\": \"\",\n    \"hrHead\": \"\",\n    \"additionalFirst\": \"\",\n    \"additionalSecond\": \"\",\n    \"active\": true\n  }\n}")
  .asString();
```

```php Employee_Create New Employee_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://heimdall.eka.io/apis/external/employee/create', [
  'body' => '{
  "data": {
    "email": "testUser123@gamil.com",
    "mobile": "1231231230",
    "code": "000069",
    "name": {
      "fullName": "test User 123",
      "firstName": "test",
      "lastName": "user 123"
    },
    "department": "Basic",
    "office": "Delhi",
    "dob": 0,
    "grade": "",
    "gender": "",
    "manager": "",
    "alternate": "",
    "hrHead": "",
    "additionalFirst": "",
    "additionalSecond": "",
    "active": true
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'DICE-APP-ID' => '{{Company Code}}',
    'X-CLIENT-ID' => '{{API Client ID}}',
    'X-CLIENT-SECRET' => '{{API Client Secret}}',
  ],
]);

echo $response->getBody();
```

```csharp Employee_Create New Employee_example
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/apis/external/employee/create");
var request = new RestRequest(Method.POST);
request.AddHeader("DICE-APP-ID", "{{Company Code}}");
request.AddHeader("X-CLIENT-ID", "{{API Client ID}}");
request.AddHeader("X-CLIENT-SECRET", "{{API Client Secret}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"data\": {\n    \"email\": \"testUser123@gamil.com\",\n    \"mobile\": \"1231231230\",\n    \"code\": \"000069\",\n    \"name\": {\n      \"fullName\": \"test User 123\",\n      \"firstName\": \"test\",\n      \"lastName\": \"user 123\"\n    },\n    \"department\": \"Basic\",\n    \"office\": \"Delhi\",\n    \"dob\": 0,\n    \"grade\": \"\",\n    \"gender\": \"\",\n    \"manager\": \"\",\n    \"alternate\": \"\",\n    \"hrHead\": \"\",\n    \"additionalFirst\": \"\",\n    \"additionalSecond\": \"\",\n    \"active\": true\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Employee_Create New Employee_example
import Foundation

let headers = [
  "DICE-APP-ID": "{{Company Code}}",
  "X-CLIENT-ID": "{{API Client ID}}",
  "X-CLIENT-SECRET": "{{API Client Secret}}",
  "Content-Type": "application/json"
]
let parameters = ["data": [
    "email": "testUser123@gamil.com",
    "mobile": "1231231230",
    "code": "000069",
    "name": [
      "fullName": "test User 123",
      "firstName": "test",
      "lastName": "user 123"
    ],
    "department": "Basic",
    "office": "Delhi",
    "dob": 0,
    "grade": "",
    "gender": "",
    "manager": "",
    "alternate": "",
    "hrHead": "",
    "additionalFirst": "",
    "additionalSecond": "",
    "active": true
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/employee/create")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```