For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
SupportDeel Home
OverviewPlatformEmployer of RecordContractorsGlobal PayrollHREmbeddedDeel ITAPI ReferenceChangelog
OverviewPlatformEmployer of RecordContractorsGlobal PayrollHREmbeddedDeel ITAPI ReferenceChangelog
  • Resources
    • Blog
    • Community
    • API spec
  • HRIS Guides
    • Introduction
  • HRIS Common Use Cases
    • Sync Deel users to identity providers
  • SCIM API
    • Overview
  • HRIS Endpoints
      • POSTCreate a new HRIS Organization Structure.
      • DELDelete an Org Structure from the Organization by external ID
      • DELDelete Organization Structure
      • GETFetch an Org Structure from the Organization
      • GETGet Organization Structure
      • GETGet Organization Structure
      • GETRetrieve custom fields for organization
      • PATCHUpdate an existing HRIS Org Structure by external ID
      • PUTUpdate organization structure
      • PATCHUpdate Organization Structure
      • PATCHUpdate organization structure team custom fields
  • ATS Guides
    • Introduction
    • Getting started
    • Manage jobs
    • Manage candidates and applications
    • Webhooks
  • ATS Common Use Cases
    • From candidate to contract
  • ATS Endpoints
LogoLogo
SupportDeel Home
HRIS EndpointsOrganization Structure

Create a new HRIS Organization Structure.

POST
/hris/organization_structures
POST
/rest/v2/hris/organization_structures
$curl -X POST https://api.letsdeel.com/rest/v2/hris/organization_structures \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "body": {
> "data": {
> "name": "Product Development",
> "teams": [
> {
> "name": "Frontend Team",
> "external_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab"
> },
> {
> "name": "Backend Team",
> "external_id": "b2c3d4e5-6789-01bc-defa-2345678901bc"
> }
> ],
> "external_id": "f1234567-89ab-4cde-9012-3456789abcde",
> "enable_roles": true,
> "is_multiple_select": true
> }
> }
>}'
1{
2 "data": {
3 "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
4 "name": "Product Development",
5 "type": "team",
6 "created_at": "2024-05-10T09:15:00Z",
7 "updated_at": "2024-05-10T09:15:00Z",
8 "external_id": "f1234567-89ab-4cde-9012-3456789abcde",
9 "enable_roles": true,
10 "is_multi_select": true,
11 "organization_id": 42
12 }
13}
Creates a new organization structure within the HRIS, returning the created record including its assigned `id` and `organization_id`. The `is_multi_select` and `enable_roles` flags on the request body control whether the structure supports multiple team assignments and role management respectively. **Token scopes**: `organizations:write`
Was this page helpful?
Previous

Delete an Org Structure from the Organization by external ID

Next
Built with

Creates a new organization structure within the HRIS, returning the created record including its assigned id and organization_id. The is_multi_select and enable_roles flags on the request body control whether the structure supports multiple team assignments and role management respectively. Token scopes: organizations:write

Authentication

AuthorizationBearer
## Authentication The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail. ```curl curl -X GET 'https://api.letsdeel.com/rest/v2/contracts' \ -H 'Authorization: Bearer YOUR-TOKEN-HERE' ``` [Learn more about authentication](/api/authentication)
OR
AuthorizationBearer

Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/

Request

This endpoint expects an object.
dataobjectOptional

Response

Successful operation
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error

Authentication

The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail.

1curl -X GET 'https://api.letsdeel.com/rest/v2/contracts' \
2 -H 'Authorization: Bearer YOUR-TOKEN-HERE'

Learn more about authentication