POST api/userGroup/AddUserGroup?token={token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

string

Required

Body Parameters

UserGroupModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Description

string

None.

NumberOfMembers

integer

None.

Jobs

Collection of JobModel

None.

JobInfo

JobInfoModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Description": "sample string 3",
  "NumberOfMembers": 4,
  "Jobs": [
    {
      "Id": 1,
      "UserId": 2,
      "UserName": "sample string 3",
      "UserGroup": "sample string 4",
      "UserEmail": "sample string 5",
      "MachineName": "sample string 6",
      "PrinterId": 7,
      "AccountMachineId": 8,
      "JobMachineId": 9,
      "DriverName": "sample string 10",
      "PrinterAttributes": 11,
      "JobId": 12,
      "IdUserGroup": 13,
      "JobGroup": "sample string 14",
      "JobStatus": 15,
      "Document": "sample string 16",
      "UsingPrinterDefaults": true,
      "Color": 18,
      "Duplex": true,
      "Economode": true,
      "TotalPages": 21,
      "PagesPrinted": 22,
      "PaperSize": 23,
      "PaperLength": 24,
      "PaperWidth": 25,
      "Cost": 26.1,
      "PrintDate": "2025-12-13T11:10:58.7420014-03:00",
      "RecordDate": "2025-12-13T11:10:58.7420014-03:00",
      "GclId": 29,
      "CreationDate": "2025-12-13T11:10:58.7420014-03:00"
    },
    {
      "Id": 1,
      "UserId": 2,
      "UserName": "sample string 3",
      "UserGroup": "sample string 4",
      "UserEmail": "sample string 5",
      "MachineName": "sample string 6",
      "PrinterId": 7,
      "AccountMachineId": 8,
      "JobMachineId": 9,
      "DriverName": "sample string 10",
      "PrinterAttributes": 11,
      "JobId": 12,
      "IdUserGroup": 13,
      "JobGroup": "sample string 14",
      "JobStatus": 15,
      "Document": "sample string 16",
      "UsingPrinterDefaults": true,
      "Color": 18,
      "Duplex": true,
      "Economode": true,
      "TotalPages": 21,
      "PagesPrinted": 22,
      "PaperSize": 23,
      "PaperLength": 24,
      "PaperWidth": 25,
      "Cost": 26.1,
      "PrintDate": "2025-12-13T11:10:58.7420014-03:00",
      "RecordDate": "2025-12-13T11:10:58.7420014-03:00",
      "GclId": 29,
      "CreationDate": "2025-12-13T11:10:58.7420014-03:00"
    }
  ],
  "JobInfo": {
    "JobCount": 1,
    "JobCost": 2.1
  }
}

application/xml, text/xml

Sample:
<UserGroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models">
  <Description>sample string 3</Description>
  <Id>1</Id>
  <JobInfo>
    <JobCost>2.1</JobCost>
    <JobCount>1</JobCount>
  </JobInfo>
  <Jobs>
    <JobModel>
      <AccountMachineId>8</AccountMachineId>
      <Color>18</Color>
      <Cost>26.1</Cost>
      <CreationDate>2025-12-13T11:10:58.7420014-03:00</CreationDate>
      <Document>sample string 16</Document>
      <DriverName>sample string 10</DriverName>
      <Duplex>true</Duplex>
      <Economode>true</Economode>
      <GclId>29</GclId>
      <Id>1</Id>
      <IdUserGroup>13</IdUserGroup>
      <JobGroup>sample string 14</JobGroup>
      <JobId>12</JobId>
      <JobMachineId>9</JobMachineId>
      <JobStatus>15</JobStatus>
      <MachineName>sample string 6</MachineName>
      <PagesPrinted>22</PagesPrinted>
      <PaperLength>24</PaperLength>
      <PaperSize>23</PaperSize>
      <PaperWidth>25</PaperWidth>
      <PrintDate>2025-12-13T11:10:58.7420014-03:00</PrintDate>
      <PrinterAttributes>11</PrinterAttributes>
      <PrinterId>7</PrinterId>
      <RecordDate>2025-12-13T11:10:58.7420014-03:00</RecordDate>
      <TotalPages>21</TotalPages>
      <UserEmail>sample string 5</UserEmail>
      <UserGroup>sample string 4</UserGroup>
      <UserId>2</UserId>
      <UserName>sample string 3</UserName>
      <UsingPrinterDefaults>true</UsingPrinterDefaults>
    </JobModel>
    <JobModel>
      <AccountMachineId>8</AccountMachineId>
      <Color>18</Color>
      <Cost>26.1</Cost>
      <CreationDate>2025-12-13T11:10:58.7420014-03:00</CreationDate>
      <Document>sample string 16</Document>
      <DriverName>sample string 10</DriverName>
      <Duplex>true</Duplex>
      <Economode>true</Economode>
      <GclId>29</GclId>
      <Id>1</Id>
      <IdUserGroup>13</IdUserGroup>
      <JobGroup>sample string 14</JobGroup>
      <JobId>12</JobId>
      <JobMachineId>9</JobMachineId>
      <JobStatus>15</JobStatus>
      <MachineName>sample string 6</MachineName>
      <PagesPrinted>22</PagesPrinted>
      <PaperLength>24</PaperLength>
      <PaperSize>23</PaperSize>
      <PaperWidth>25</PaperWidth>
      <PrintDate>2025-12-13T11:10:58.7420014-03:00</PrintDate>
      <PrinterAttributes>11</PrinterAttributes>
      <PrinterId>7</PrinterId>
      <RecordDate>2025-12-13T11:10:58.7420014-03:00</RecordDate>
      <TotalPages>21</TotalPages>
      <UserEmail>sample string 5</UserEmail>
      <UserGroup>sample string 4</UserGroup>
      <UserId>2</UserId>
      <UserName>sample string 3</UserName>
      <UsingPrinterDefaults>true</UsingPrinterDefaults>
    </JobModel>
  </Jobs>
  <Name>sample string 2</Name>
  <NumberOfMembers>4</NumberOfMembers>
</UserGroupModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>