TempAccessCodesApi
| Method | HTTP request | Description |
|---|---|---|
| createTempAccessCodeUsingPOST | POST /api/web/v1/users/{userid}/tempaccesscode | Create a temporary access code |
| deleteTempAccessCodeUsingDELETE | DELETE /api/web/v1/users/{userid}/tempaccesscode | Delete a temporary access code |
| getTempAccessCodeUsingGET | GET /api/web/v1/users/{userid}/tempaccesscode | Get 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
| Name | Type | Description | Notes |
|---|---|---|---|
| userid | String | The UUID of the user for which a temporary access code will be created. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful | - |
| 400 | Bad Request | - |
| 401 | Access denied | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
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
| Name | Type | Description | Notes |
|---|---|---|---|
| userid | String | The UUID of the user whose temporary access code will be deleted. |
Return type
null (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful | - |
| 400 | Bad Request | - |
| 401 | Access denied | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
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
| Name | Type | Description | Notes |
|---|---|---|---|
| userid | String | The UUID of the user whose temporary access code will be fetched. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful | - |
| 400 | Bad Request | - |
| 401 | Access denied | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |