Learnifier
  1. Organization Units
Learnifier
  • Course Designs
    • Lists all global course design templates
      GET
  • Organization Units
    • Get Organization Unit with External Id
      GET
    • Organization Units
      GET
    • Adds an Organization Unit
      POST
    • Get Organization Unit
      GET
    • Updates an Organization Unit
      PATCH
  • Users
    • Gets a participation by external id
      GET
    • Gets a user by external id
      GET
    • Lists all users
      GET
    • Adds a user
      POST
    • User information
      GET
    • Updates user information
      PATCH
    • User profile picture
      GET
    • Returns information about the projects the user is a participant in.
      GET
  • Projects
    • Gets Organization Unit by external id
      GET
    • Organization Unit Projects
      GET
    • Create project
      POST
    • Deletes the project
      DELETE
    • Project information
      GET
    • Update project information
      PATCH
    • Project participants
      GET
    • Add participant
      POST
    • Deletes a participant
      DELETE
    • Activate participant
      POST
    • Participant login link
      POST
    • Project team members
      GET
  • Global User Groups
    • List Global User Groups.
    • List of all users in group.
  • User Groups
    • List User Groups.
    • Create a User Group.
    • Get user group
    • List of all users in group.
    • Add user group member.
    • Remove user group member.
  1. Organization Units

Adds an Organization Unit

POST
/orgunits
Organization Units
Adds an Organization Unit
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://learnifier.com/orgunits' \
--header 'Content-Type: application/json' \
--data-raw '{
    "caller": "81590981-1e05-4fd5-aa15-15bc4b06cf7f",
    "clientNumber": "X-1234",
    "country": "se",
    "displayName": "Sample Corp",
    "externalId": "string",
    "parent": "1234"
}'
Response Response Example
200 - Example 1
{
    "ouId": "12"
}

Request

Body Params application/json
caller
string <uuid>
optional
The id of the user that initiated this operation
Example:
81590981-1e05-4fd5-aa15-15bc4b06cf7f
clientNumber
string 
optional
A client number. Sometimes used when communicating with external system. Must be unique if specified.
Example:
X-1234
country
string <locale>
optional
The country code that best matches the organization unit. If unspecified the platform default will be set.
Example:
se
displayName
string 
required
The name shown for the organization unit
Example:
Sample Corp
externalId
string 
optional
The external id (foreign key). Must not exceed 255 characters.
parent
number 
optional
A Organization Unit id of the parent Organization Unit (optional).
Example:
1234
Examples

Responses

🟢200Organization Unit was successfully added
application/json
Body
ouId
number <int64>
optional
The Organization Unit id
Example:
12
🟠409An organization with the same clientNumber or external id already existed.
🔴500Unexpected error
Previous
Organization Units
Next
Get Organization Unit
Built with