POST api/CRMRoles

Insert New Role

Request Information

URI Parameters

None.

Body Parameters

Roles
NameDescriptionTypeAdditional information
RoleID

integer

None.

RoleCode

string

None.

RoleName

string

None.

IsSystemRole

boolean

None.

IsEnabled

boolean

None.

CreatedUserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RoleID": 1,
  "RoleCode": "sample string 2",
  "RoleName": "sample string 3",
  "IsSystemRole": true,
  "IsEnabled": true,
  "CreatedUserID": 6
}

application/xml, text/xml

Sample:
<Roles xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sysmex.IT.NsGlobal.Models.CRM">
  <CreatedDateTime>2018-10-16T07:32:02.0675697+00:00</CreatedDateTime>
  <CreatedUserID>6</CreatedUserID>
  <UpdatedDateTime>2018-10-16T07:32:02.0675697+00:00</UpdatedDateTime>
  <UpdatedUserID>1</UpdatedUserID>
  <IsEnabled>true</IsEnabled>
  <IsSystemRole>true</IsSystemRole>
  <RoleCode>sample string 2</RoleCode>
  <RoleID>1</RoleID>
  <RoleName>sample string 3</RoleName>
</Roles>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.