POST api/Group/saveNewGroup

Request Information

URI Parameters

None.

Body Parameters

AddNewGroupMdl
NameDescriptionTypeAdditional information
GroupName

string

None.

Users

Collection of string

None.

ReportsType

Collection of ReportTypeMdl

None.

SafetyType

Collection of SafetyTypeMdl

None.

Request Formats

application/json, text/json

Sample:
{
  "GroupName": "sample string 1",
  "Users": [
    "sample string 1",
    "sample string 2"
  ],
  "ReportsType": [
    {
      "Id": 1,
      "reportType": "sample string 2"
    },
    {
      "Id": 1,
      "reportType": "sample string 2"
    }
  ],
  "SafetyType": [
    {
      "Id": 1,
      "safetyType": "sample string 2"
    },
    {
      "Id": 1,
      "safetyType": "sample string 2"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddNewGroupMdl'.

Response Information

Resource Description

ResponseMdl
NameDescriptionTypeAdditional information
Status

boolean

None.

Data

Object

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Data": {},
  "Message": "sample string 3"
}