Learnifier
  1. Projects
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. Projects

Add participant

POST
/orgunits/{orgid}/projects/{projectid}/participants
Projects
Add a user to the project. Participant information is created for the user. In the body object, only one of either email or userid must be specified. The participant needs to be activated before it the user can access it.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://learnifier.com/orgunits//projects//participants' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "user@example.com",
    "extid": "string",
    "userid": "81590981-1e05-4fd5-aa15-15bc4b06cf7f"
}'
Response Response Example
200 - Example 1
{
    "code": 0,
    "field": "string",
    "message": "string"
}

Request

Path Params
orgid
integer 
required
Id of the organization unit
projectid
integer 
required
Id of the project
Body Params application/json
email
string <email>
optional
The email of the user. If no user exists with the specified email a user will be created with default values and the specified email.
Example:
user@example.com
extid
string 
optional
An optional external id for the participation
userid
string <uuid>
optional
Example:
81590981-1e05-4fd5-aa15-15bc4b06cf7f
Examples

Responses

🟢200Unexpected error
application/json
Body
code
integer <int32>
optional
Optional error code
field
string 
optional
The input field that the error was related to
message
string 
optional
Optional error message
🟢201Participant was created
🟠409Participant with the same email already existed. Location header contains the url to the already existing participant.
Previous
Project participants
Next
Deletes a participant
Built with