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
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

Path Params

Body Params application/json

Examples

Responses

🟢200Unexpected error
application/json
Body

🟢201Participant was created
🟠409Participant with the same email already existed. Location header contains the url to the already existing participant.
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"
}
Modified at 2023-08-17 09:38:12
Previous
Project participants
Next
Deletes a participant
Built with