GET /api/accessgroups

Gets all general access groups

Responses

Code Returns Type
200 OK Acos.Websak.UserAPI.Core.Models.AccessGroup[]
401 Unauthorized - Missing or invalid access token
403 Forbidden - Provided access token does not permit usage of this API or data
Response Example
[{        
        "groupId":"string",
        "groupName":"string",
        "general":"string",
        "createdById":"string",
        "fromDate":"string",
        "toDate":"string"
}]

POST /api/accessgroups

Create a new Access Group from JSON object provided.Returns JSON object representing created Access Group.

Request body

{ 
        
        "groupName":"string"
}

Responses

Code Returns Type
201 Created Acos.Websak.UserAPI.Core.Models.AccessGroup
422 Unprocessable Content Microsoft.AspNetCore.Mvc.ProblemDetails
500 Internal Server Error
401 Unauthorized - Missing or invalid access token
403 Forbidden - Provided access token does not permit usage of this API or data
Response Example
{ 
        
        "groupId":"string",
        "groupName":"string",
        "general":"string",
        "createdById":"string",
        "fromDate":"string",
        "toDate":"string"
}