API

Base APIs

POST base/organizational-units

Creates an organizational unit

HTTP method POST
URI https://api.rambase.net/base/organizational-units
Supported formats Xml, Html, Json (ex. $format=json)
Successful HTTP status code 201
API resource identifier 6427, version 8

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
<OrganizationalUnit>
2
     <Title
Title

Title of the organizational unit

This field is optional.

>
{String}</Title>
3
     <Description
Description

Description of the organizational unit

This field is optional.

>
{String}</Description>
4
     <Type
Type

Required/mandatory field

Domain value reference

Applicable domain values can be found here

>
{Integer}</Type>
5
     <AddDefaultCompetenceProfilesFromParent
AddDefaultCompetenceProfilesFromParent

Required/mandatory field

Add default competence profile from parent node if true

>
{Boolean}</AddDefaultCompetenceProfilesFromParent>
6
     <ParentUnit
ParentUnit

Identifier for the parent unit

This field is optional.

>
7
          <OrganizationalUnitId
OrganizationalUnitId

Identifier for organizational unit

Minimum value: 100000

This field is optional.

>
{Integer}</OrganizationalUnitId>
8
     </ParentUnit>
9
     <ObjectReference
ObjectReference

Required for types >= 10 and types <= 100 (country, company, location, departments etc)

This field is optional.

>
10
          <ObjectId
ObjectId

Identifier of the object

Minimum value: 100000

This field is optional.

>
{Integer}</ObjectId>
11
     </ObjectReference>
12
</OrganizationalUnit>
1
{
2
     "organizationalUnit": {
3
          "title
Title

Title of the organizational unit

This field is optional.

":
"{String}",
4
          "description
Description

Description of the organizational unit

This field is optional.

":
"{String}",
5
          "type
Type

Required/mandatory field

Domain value reference

Applicable domain values can be found here

":
"{Integer}",
6
          "addDefaultCompetenceProfilesFromParent
AddDefaultCompetenceProfilesFromParent

Required/mandatory field

Add default competence profile from parent node if true

":
"{Boolean}",
7
          "parentUnit
ParentUnit

Identifier for the parent unit

This field is optional.

":
{
8
               "organizationalUnitId
OrganizationalUnitId

Identifier for organizational unit

Minimum value: 100000

This field is optional.

":
"{Integer}"
9
          },
10
          "objectReference
ObjectReference

Required for types >= 10 and types <= 100 (country, company, location, departments etc)

This field is optional.

":
{
11
               "objectId
ObjectId

Identifier of the object

Minimum value: 100000

This field is optional.

":
"{Integer}"
12
          }
13
     }
14
}

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.
$showDomainDescriptions Boolean, optional Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false.
$lang String, optional Specifies the language used in the response, following the 3-letter ISO-639-1 [lll]

Read more about filters and sorting on how to use filter parameters and named filters.

Read more about filters and sorting on how to use sortable parameters

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<OrganizationalUnit>
2
     <OrganizationalUnitId
OrganizationalUnitId

Identifier for organizational unit

>
{Integer}</OrganizationalUnitId>
3
     <Status
Status

Status of organizational unit

Possible domain values can be found here

>
{Integer}</Status>
4
     <Title
Title

Title of the organizational unit

>
{String}</Title>
5
     <CreatedAt
CreatedAt

Date and time for when an organizational unit was created

>
{Datetime}</CreatedAt>
6
     <UpdatedAt
UpdatedAt

Date and time for when an organizational unit was updated

>
{Datetime}</UpdatedAt>
7
     <Description
Description

Description of the organizational unit

>
{String}</Description>
8
     <Type
Type

Domain value reference

Possible domain values can be found here

>
{Integer}</Type>
9
     <AddDefaultCompetenceProfilesFromParent
AddDefaultCompetenceProfilesFromParent

Add default competence profile from parent node if true

>
{Boolean}</AddDefaultCompetenceProfilesFromParent>
10
     <ParentUnit
ParentUnit

Identifier for the parent unit

>
11
          <OrganizationalUnitId
OrganizationalUnitId

Identifier for organizational unit

>
{Integer}</OrganizationalUnitId>
12
          <OrganizationalUnitLink
OrganizationalUnitLink

API reference to the item

>
{String}</OrganizationalUnitLink>
13
     </ParentUnit>
14
     <ObjectReference
ObjectReference

Required for types >= 10 and types <= 100 (country, company, location, departments etc)

>
15
          <ObjectId
ObjectId

Identifier of the object

>
{Integer}</ObjectId>
16
          <ObjectType
ObjectType

Type of object

>
{String}</ObjectType>
17
          <ObjectLink
ObjectLink

API reference to the item

>
{String}</ObjectLink>
18
          <OrganizationalUnit>
19
               <OrganizationalUnitId
OrganizationalUnitId

Identifier for organizational unit

>
{String}</OrganizationalUnitId>
20
               <Title
Title

Title of the organizational unit

>
{String}</Title>
21
               <OrganizationalUnitLink
OrganizationalUnitLink

Identifier of the organizational unit

>
{String}</OrganizationalUnitLink>
22
          </OrganizationalUnit>
23
          <OrganizationalUnitsChildrenCount
OrganizationalUnitsChildrenCount

The amount organizational unit that is thildren to this unit

>
{Integer}</OrganizationalUnitsChildrenCount>
24
          <DefaultCompetenceProfilesChildrenCount
DefaultCompetenceProfilesChildrenCount

The amount of competence profile that are children to this unit

>
{Integer}</DefaultCompetenceProfilesChildrenCount>
25
     </ObjectReference>
26
</OrganizationalUnit>
1
{
2
     "organizationalUnit": {
3
          "organizationalUnitId
OrganizationalUnitId

Identifier for organizational unit

":
"{Integer}",
4
          "status
Status

Status of organizational unit

Possible domain values can be found here

":
"{Integer}",
5
          "title
Title

Title of the organizational unit

":
"{String}",
6
          "createdAt
CreatedAt

Date and time for when an organizational unit was created

":
"{Datetime}",
7
          "updatedAt
UpdatedAt

Date and time for when an organizational unit was updated

":
"{Datetime}",
8
          "description
Description

Description of the organizational unit

":
"{String}",
9
          "type
Type

Domain value reference

Possible domain values can be found here

":
"{Integer}",
10
          "addDefaultCompetenceProfilesFromParent
AddDefaultCompetenceProfilesFromParent

Add default competence profile from parent node if true

":
"{Boolean}",
11
          "parentUnit
ParentUnit

Identifier for the parent unit

":
{
12
               "organizationalUnitId
OrganizationalUnitId

Identifier for organizational unit

":
"{Integer}",
13
               "organizationalUnitLink
OrganizationalUnitLink

API reference to the item

":
"{String}"
14
          },
15
          "objectReference
ObjectReference

Required for types >= 10 and types <= 100 (country, company, location, departments etc)

":
{
16
               "objectId
ObjectId

Identifier of the object

":
"{Integer}",
17
               "objectType
ObjectType

Type of object

":
"{String}",
18
               "objectLink
ObjectLink

API reference to the item

":
"{String}",
19
               "organizationalUnit": {
20
                    "organizationalUnitId
OrganizationalUnitId

Identifier for organizational unit

":
"{String}",
21
                    "title
Title

Title of the organizational unit

":
"{String}",
22
                    "organizationalUnitLink
OrganizationalUnitLink

Identifier of the organizational unit

":
"{String}"
23
               },
24
               "organizationalUnitsChildrenCount
OrganizationalUnitsChildrenCount

The amount organizational unit that is thildren to this unit

":
"{Integer}",
25
               "defaultCompetenceProfilesChildrenCount
DefaultCompetenceProfilesChildrenCount

The amount of competence profile that are children to this unit

":
"{Integer}"
26
          }
27
     }
28
}

List of available operations/actions for this resource.
See the operations documentation for more information about API operations.

Possible error codes the response might return: