POST api/teamsecurity/savepermission

Request Information

URI Parameters

None.

Body Parameters

SaveTeamSecurityPermissionDataContract
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

TeamId

integer

None.

AppliesToTeamId

integer

None.

AccessType

EnumDataContract

None.

EntityType

EnumDataContract

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "TeamId": 3,
  "AppliesToTeamId": 4,
  "AccessType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "EntityType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  }
}

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 'SaveTeamSecurityPermissionDataContract'.

Response Information

Resource Description

TeamSecurityPermissionDataContract
NameDescriptionTypeAdditional information
Name

string

None.

Team

TeamSecurityTeamDataContract

None.

AppliesTo

TeamSecurityTeamDataContract

None.

AccessType

EnumDataContract

None.

EntityType

EnumDataContract

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Team": {
    "Name": "sample string 1",
    "Id": 2
  },
  "AppliesTo": {
    "Name": "sample string 1",
    "Id": 2
  },
  "AccessType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "EntityType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "Id": 2
}