GET /api/users/{id}/useraccesses
Gets UserAccess mappings for the specified GID id.
Parameters
| Name | In | Description | Required | Type |
|---|---|---|---|---|
| id | path | GID id (gid_gidid). | true | integer |
Responses
| Code | Returns | Type |
|---|---|---|
| 200 | Ok | Acos.Websak.UserAPI.Core.Models.UserAccess[] |
| 401 | Unauthorized - Missing or invalid access token | |
| 403 | Forbidden - Provided access token does not permit usage of this API or data | |
| 404 | Not found | Microsoft.AspNetCore.Mvc.ProblemDetails |
| 500 | Error fetching data |
Response Example
[{
"domain":"string",
"id":"integer",
"isPrimary":"boolean",
"key":"string",
"provider":"string"
}]PUT /api/users/{id}/useraccesses
Replaces UserAccess mappings for the specified GID id.
Parameters
| Name | In | Description | Required | Type |
|---|---|---|---|---|
| id | path | GID id (gid_gidid). | true | integer |
Request body
Responses
| Code | Returns | Type |
|---|---|---|
| 200 | Ok | Acos.Websak.UserAPI.Core.Models.UserAccess[] |
| 400 | Invalid request | Microsoft.AspNetCore.Mvc.ProblemDetails |
| 401 | Unauthorized - Missing or invalid access token | |
| 403 | Forbidden - Provided access token does not permit usage of this API or data | |
| 404 | Not found | Microsoft.AspNetCore.Mvc.ProblemDetails |
| 500 | Error setting data |
Response Example
[{
"domain":"string",
"id":"integer",
"isPrimary":"boolean",
"key":"string",
"provider":"string"
}]