TIS Training API Documentation
  • Welcome!
  • Quick Start
  • Managing Users
  • Single Sign On (SSO)
    • General Options
    • Role and Group Mappings
    • Connection Types
      • Microsoft Entra ID (Formerly Azure AD)
      • Google Workspace
      • OpenID Connect (OIDC)
      • SAML (Security Assertion Markup Language)
  • SCORM Packages
  • Webhooks
  • API Reference
    • Users
      • 🔵GET users
      • 🔵GET users/seats
      • 🟢POST users
      • 🟠PUT users
      • 🟢POST users/password
      • 🟡PATCH users/enable
      • 🟡PATCH users/disable
      • 🔴DELETE users
    • Results
      • 🔵GET results
      • 🔵GET results/group
    • Groups
      • 🔵GET groups
      • 🟢POST groups/users
      • 🔴DELETE groups/users
    • 🔵GET courses
    • 🔵GET filters
    • 🟢POST login
    • â›”Standard Error Format
  • Webhook Reference
    • Standard Structure
    • Course Complete
    • Multi-Course Complete
  • OpenAPI Specification
Powered by GitBook
On this page
  • URL
  • Parameters
  • Responses
  1. API Reference
  2. Users

PUT users

Updates the details of a user within the organisation.

Currently, this endpoint can only be used to update the details of users created with the POST users endpoint. Details for accounts created using other methods cannot be changed.

URL

POST https://training.tapintosafety.com.au/api/v2/users

Parameters

As this endpoint is a PUT and not a PATCH you will need to send the existing values for any parameters you do not want to change.

Query Parameters

Name
Type
Description

userIdentifier*

string

The identifier of the user to update. Can be the users email or Id.

* required

Body Parameters

Name
Type
Description

email*

string

The email of the user.

firstName*

string

The first name of the user.

lastName*

string

The last name of the user.

role*

string

The role of the user.

(USER or ADMIN)

organisationIdentifier

string

The custom identifier for the user.

* required

curl https://training.tapintosafety.com.au/api/v2/users \
    -X PUT                                              \
    -H "Authorization: Bearer $APIKey"                  \
    -H "Content-Type: application/json"                 \
    -d '{ "email": "alicesmith@example.com",            \
          "firstName": "Alice",                         \
          "lastName": "Smith",                          \
          "role": "USER",                               \
          "organisationIdentifier": "Employee#1282" }

Responses

204 - OK

No response body.

400 - Bad Request

Error Code: INVALID_MODEL

One or more parameters provided are invalid. See details for more information.

400 - Bad Request

Error Code: USER_NOT_FOUND

A user could not be found with the specified userIdentifier

400 - Bad Request

Error Code: INVALID_USER_TYPE

The user specified was not created with the POST users endpoint and cannot be updated here.

400 - Bad Request

Error Code: EMAIL_IN_USE

The email specified is already in use by another user.

PreviousPOST usersNextPOST users/password

Last updated 9 months ago

ðŸŸ