POST api/app-access/v1/save-general/{userId}/{app}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

Required

app

App

Required

Body Parameters

Collection of AppUserAccess
NameDescriptionTypeAdditional information
Enabled

boolean

None.

AccessName

string

None.

Id

integer

None.

AppId

App

None.

UserId

integer

None.

AppUserAccessType

AppUserAccessType

None.

AppAccessLevelType

AppAccessLevelType

None.

AccessValue

string

None.

CreatedAt

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Enabled": true,
    "AccessName": "sample string 2",
    "Id": 3,
    "AppId": 1,
    "UserId": 4,
    "AppUserAccessType": 0,
    "AppAccessLevelType": 1,
    "AccessValue": "sample string 5",
    "CreatedAt": "2025-12-10T09:35:31.1255457+00:00"
  },
  {
    "Enabled": true,
    "AccessName": "sample string 2",
    "Id": 3,
    "AppId": 1,
    "UserId": 4,
    "AppUserAccessType": 0,
    "AppAccessLevelType": 1,
    "AccessValue": "sample string 5",
    "CreatedAt": "2025-12-10T09:35:31.1255457+00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAppUserAccess xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.MyClass">
  <AppUserAccess>
    <AccessValue xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">sample string 5</AccessValue>
    <AppAccessLevelType xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">General</AppAccessLevelType>
    <AppId xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">UserManagement</AppId>
    <AppUserAccessType xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">CreateDepartment</AppUserAccessType>
    <CreatedAt xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">2025-12-10T09:35:31.1255457+00:00</CreatedAt>
    <Id xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">3</Id>
    <UserId xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">4</UserId>
    <AccessName>sample string 2</AccessName>
    <Enabled>true</Enabled>
  </AppUserAccess>
  <AppUserAccess>
    <AccessValue xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">sample string 5</AccessValue>
    <AppAccessLevelType xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">General</AppAccessLevelType>
    <AppId xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">UserManagement</AppId>
    <AppUserAccessType xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">CreateDepartment</AppUserAccessType>
    <CreatedAt xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">2025-12-10T09:35:31.1255457+00:00</CreatedAt>
    <Id xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">3</Id>
    <UserId xmlns="http://schemas.datacontract.org/2004/07/vouvher_sales_api.Models.Tables">4</UserId>
    <AccessName>sample string 2</AccessName>
    <Enabled>true</Enabled>
  </AppUserAccess>
</ArrayOfAppUserAccess>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.