Skip to main content

TempAccessCodesApi

MethodHTTP requestDescription
createTempAccessCodeUsingPOSTPOST /api/web/v1/users/{userid}/tempaccesscodeCreate a temporary access code
deleteTempAccessCodeUsingDELETEDELETE /api/web/v1/users/{userid}/tempaccesscodeDelete a temporary access code
getTempAccessCodeUsingGETGET /api/web/v1/users/{userid}/tempaccesscodeGet a temporary access code

createTempAccessCodeUsingPOST

TempAccessCode createTempAccessCodeUsingPOST(userid)

Create a temporary access code

Create a temporary access code for the given user. Caller requires the TEMPACCESSCODE:ADD permission.

Parameters

NameTypeDescriptionNotes
useridStringThe UUID of the user for which a temporary access code will be created.

Return type

TempAccessCode

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

deleteTempAccessCodeUsingDELETE

deleteTempAccessCodeUsingDELETE(userid)

Delete a temporary access code

Delete the temporary access code for the given user. Caller requires the TEMPACCESSCODE:REMOVE permission.

Example

Parameters

NameTypeDescriptionNotes
useridStringThe UUID of the user whose temporary access code will be deleted.

Return type

null (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

getTempAccessCodeUsingGET

TempAccessCode getTempAccessCodeUsingGET(userid)

Get a temporary access code

Get the temporary access code for the given user. Caller requires the TEMPACCESSCODE:VIEW permission.

Example

Parameters

NameTypeDescriptionNotes
useridStringThe UUID of the user whose temporary access code will be fetched.

Return type

TempAccessCode

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-