TalentLyft API
HelpLoginRegisterGo to AppGo to TalentLyftRequest a Demo
  • 🎯Getting started
  • 🖥️Requests
  • 📨Responses
  • 🔐Authorization
  • ⚙️Customer API reference
    • Candidates
    • Departments
    • Employees
    • Events
    • Forms
    • Jobs
    • Members
    • Pipelines
    • Rejection reasons
    • Subscriptions
    • Articles
  • ⚙️Public API reference
    • Jobs
    • Departments
    • Locations
  • ⚙️Partner API reference
    • Assessments
    • HRIS & Onboarding
    • Background checks
    • Video Interviews
    • Job Boards
    • Sourcing & Employee referrals
Powered by GitBook
On this page
  1. Customer API reference

Departments

PreviousCandidatesNextEmployees

Last updated 1 year ago

⚙️

Get department

get
Authorizations
Path parameters
idinteger · int32Required
Header parameters
X-TL-CompanyIdguidOptional

Company Id

X-TL-SubdomainguidOptional

Account subdomain

X-TL-UserIdguidOptional

Team member id

Responses
200
Success
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Server Error
application/json
get
GET /v2/departments/{id} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "Id": 1,
  "Name": "text",
  "ExternalId": "text",
  "ParentId": 1,
  "Children": [
    {
      "Id": 1,
      "Name": "text",
      "ExternalId": "text",
      "ParentId": 1,
      "Children": [
        {
          "Id": 1,
          "Name": "text",
          "ExternalId": "text",
          "ParentId": 1,
          "Children": [
            "[Circular Reference]"
          ],
          "IsTranslated": true,
          "Translation": {
            "TranslationProperties": [
              "text"
            ],
            "TranslationRequiredProperties": [
              "text"
            ],
            "Translations": [
              {
                "Language": "text",
                "Property": "text",
                "TranslateValue": "text"
              }
            ]
          }
        }
      ],
      "IsTranslated": true,
      "Translation": {
        "TranslationProperties": [
          "text"
        ],
        "TranslationRequiredProperties": [
          "text"
        ],
        "Translations": [
          {
            "Language": "text",
            "Property": "text",
            "TranslateValue": "text"
          }
        ]
      }
    }
  ],
  "IsTranslated": true,
  "Translation": {
    "TranslationProperties": [
      "text"
    ],
    "TranslationRequiredProperties": [
      "text"
    ],
    "Translations": [
      {
        "Language": "text",
        "Property": "text",
        "TranslateValue": "text"
      }
    ]
  }
}

Delete department

delete
Authorizations
Path parameters
idinteger · int32Required
Header parameters
X-TL-CompanyIdguidOptional

Company Id

X-TL-SubdomainguidOptional

Account subdomain

X-TL-UserIdguidOptional

Team member id

Responses
204
No Content
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Server Error
application/json
delete
DELETE /v2/departments/{id} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*

No content

Get department by external ID

get
Authorizations
Path parameters
idstringRequired
Header parameters
X-TL-CompanyIdguidOptional

Company Id

X-TL-SubdomainguidOptional

Account subdomain

X-TL-UserIdguidOptional

Team member id

Responses
200
Success
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Server Error
application/json
get
GET /v2/departments/{id}/external HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "Id": 1,
  "Name": "text",
  "ExternalId": "text",
  "ParentId": 1,
  "Children": [
    {
      "Id": 1,
      "Name": "text",
      "ExternalId": "text",
      "ParentId": 1,
      "Children": [
        {
          "Id": 1,
          "Name": "text",
          "ExternalId": "text",
          "ParentId": 1,
          "Children": [
            "[Circular Reference]"
          ],
          "IsTranslated": true,
          "Translation": {
            "TranslationProperties": [
              "text"
            ],
            "TranslationRequiredProperties": [
              "text"
            ],
            "Translations": [
              {
                "Language": "text",
                "Property": "text",
                "TranslateValue": "text"
              }
            ]
          }
        }
      ],
      "IsTranslated": true,
      "Translation": {
        "TranslationProperties": [
          "text"
        ],
        "TranslationRequiredProperties": [
          "text"
        ],
        "Translations": [
          {
            "Language": "text",
            "Property": "text",
            "TranslateValue": "text"
          }
        ]
      }
    }
  ],
  "IsTranslated": true,
  "Translation": {
    "TranslationProperties": [
      "text"
    ],
    "TranslationRequiredProperties": [
      "text"
    ],
    "Translations": [
      {
        "Language": "text",
        "Property": "text",
        "TranslateValue": "text"
      }
    ]
  }
}
  • GETGet departments
  • POSTCreate department
  • GETGet department
  • PUTUpdate department
  • DELETEDelete department
  • GETGet department by external ID

Get departments

get
Authorizations
Query parameters
eidsstring[]Optional

External ids

Header parameters
X-TL-CompanyIdguidOptional

Company Id

X-TL-SubdomainguidOptional

Account subdomain

X-TL-UserIdguidOptional

Team member id

Responses
200
Success
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
500
Server Error
application/json
get
GET /v2/departments HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "Id": 1,
    "Name": "text",
    "ExternalId": "text",
    "ParentId": 1,
    "Children": [
      {
        "Id": 1,
        "Name": "text",
        "ExternalId": "text",
        "ParentId": 1,
        "Children": [
          {
            "Id": 1,
            "Name": "text",
            "ExternalId": "text",
            "ParentId": 1,
            "Children": "[Circular Reference]",
            "IsTranslated": true,
            "Translation": {
              "TranslationProperties": [
                "text"
              ],
              "TranslationRequiredProperties": [
                "text"
              ],
              "Translations": [
                {
                  "Language": "text",
                  "Property": "text",
                  "TranslateValue": "text"
                }
              ]
            }
          }
        ],
        "IsTranslated": true,
        "Translation": {
          "TranslationProperties": [
            "text"
          ],
          "TranslationRequiredProperties": [
            "text"
          ],
          "Translations": [
            {
              "Language": "text",
              "Property": "text",
              "TranslateValue": "text"
            }
          ]
        }
      }
    ],
    "IsTranslated": true,
    "Translation": {
      "TranslationProperties": [
        "text"
      ],
      "TranslationRequiredProperties": [
        "text"
      ],
      "Translations": [
        {
          "Language": "text",
          "Property": "text",
          "TranslateValue": "text"
        }
      ]
    }
  }
]

Create department

post
Authorizations
Header parameters
X-TL-CompanyIdguidOptional

Company Id

X-TL-SubdomainguidOptional

Account subdomain

X-TL-UserIdguidOptional

Team member id

Body
Idinteger · int32Optional
Namestring | nullableOptional
ExternalIdstring | nullableOptional
ParentIdinteger · int32 | nullableOptional
IsTranslatedbooleanOptional
Responses
201
Created
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
422
Client Error
application/json
500
Server Error
application/json
post
POST /v2/departments HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 244

{
  "Id": 1,
  "Name": "text",
  "ExternalId": "text",
  "ParentId": 1,
  "IsTranslated": true,
  "Translation": {
    "TranslationProperties": [
      "text"
    ],
    "TranslationRequiredProperties": [
      "text"
    ],
    "Translations": [
      {
        "Language": "text",
        "Property": "text",
        "TranslateValue": "text"
      }
    ]
  }
}
{
  "Id": 1,
  "Name": "text",
  "ExternalId": "text",
  "ParentId": 1,
  "Children": [
    {
      "Id": 1,
      "Name": "text",
      "ExternalId": "text",
      "ParentId": 1,
      "Children": [
        {
          "Id": 1,
          "Name": "text",
          "ExternalId": "text",
          "ParentId": 1,
          "Children": [
            "[Circular Reference]"
          ],
          "IsTranslated": true,
          "Translation": {
            "TranslationProperties": [
              "text"
            ],
            "TranslationRequiredProperties": [
              "text"
            ],
            "Translations": [
              {
                "Language": "text",
                "Property": "text",
                "TranslateValue": "text"
              }
            ]
          }
        }
      ],
      "IsTranslated": true,
      "Translation": {
        "TranslationProperties": [
          "text"
        ],
        "TranslationRequiredProperties": [
          "text"
        ],
        "Translations": [
          {
            "Language": "text",
            "Property": "text",
            "TranslateValue": "text"
          }
        ]
      }
    }
  ],
  "IsTranslated": true,
  "Translation": {
    "TranslationProperties": [
      "text"
    ],
    "TranslationRequiredProperties": [
      "text"
    ],
    "Translations": [
      {
        "Language": "text",
        "Property": "text",
        "TranslateValue": "text"
      }
    ]
  }
}

Update department

put
Authorizations
Path parameters
idinteger · int32Required
Header parameters
X-TL-CompanyIdguidOptional

Company Id

X-TL-SubdomainguidOptional

Account subdomain

X-TL-UserIdguidOptional

Team member id

Body
Idinteger · int32Optional
Namestring | nullableOptional
ExternalIdstring | nullableOptional
ParentIdinteger · int32 | nullableOptional
IsTranslatedbooleanOptional
Responses
204
No Content
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
422
Client Error
application/json
500
Server Error
application/json
put
PUT /v2/departments/{id} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 244

{
  "Id": 1,
  "Name": "text",
  "ExternalId": "text",
  "ParentId": 1,
  "IsTranslated": true,
  "Translation": {
    "TranslationProperties": [
      "text"
    ],
    "TranslationRequiredProperties": [
      "text"
    ],
    "Translations": [
      {
        "Language": "text",
        "Property": "text",
        "TranslateValue": "text"
      }
    ]
  }
}

No content