PUT api/private/Roles/Edit

Request Information

URI Parameters

None.

Body Parameters

Domain.Role.Role
NameDescriptionTypeAdditional information
Description

string

None.

RoleTypeId

integer

None.

RoleType

Domain.Role.RoleType

None.

Id

integer

None.

CreatedDate

date

None.

ModifiedDate

date

None.

Disabled

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Description": "sample string 1",
  "RoleTypeId": 2,
  "RoleType": {
    "Description": "sample string 1",
    "Id": 2,
    "CreatedDate": "2025-04-25T18:08:56.7848998Z",
    "ModifiedDate": "2025-04-25T18:08:56.7848998Z",
    "Disabled": true
  },
  "Id": 3,
  "CreatedDate": "2025-04-25T18:08:56.7858969Z",
  "ModifiedDate": "2025-04-25T18:08:56.7858969Z",
  "Disabled": true
}

text/xml

Sample:
<Role xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Role">
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">2025-04-25T14:08:56.7858969-04:00</CreatedDate>
  <Disabled xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">true</Disabled>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">3</Id>
  <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">2025-04-25T14:08:56.7858969-04:00</ModifiedDate>
  <Description>sample string 1</Description>
  <RoleType>
    <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">2025-04-25T14:08:56.7848998-04:00</CreatedDate>
    <Disabled xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">true</Disabled>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">2</Id>
    <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">2025-04-25T14:08:56.7848998-04:00</ModifiedDate>
    <Description>sample string 1</Description>
  </RoleType>
  <RoleTypeId>2</RoleTypeId>
</Role>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Domain.Role.Role
NameDescriptionTypeAdditional information
Description

string

None.

RoleTypeId

integer

None.

RoleType

Domain.Role.RoleType

None.

Id

integer

None.

CreatedDate

date

None.

ModifiedDate

date

None.

Disabled

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Description": "sample string 1",
  "RoleTypeId": 2,
  "RoleType": {
    "Description": "sample string 1",
    "Id": 2,
    "CreatedDate": "2025-04-25T18:08:56.7918961Z",
    "ModifiedDate": "2025-04-25T18:08:56.7918961Z",
    "Disabled": true
  },
  "Id": 3,
  "CreatedDate": "2025-04-25T18:08:56.7918961Z",
  "ModifiedDate": "2025-04-25T18:08:56.7918961Z",
  "Disabled": true
}

text/xml

Sample:
<Role xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Role">
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">2025-04-25T14:08:56.7918961-04:00</CreatedDate>
  <Disabled xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">true</Disabled>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">3</Id>
  <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">2025-04-25T14:08:56.7918961-04:00</ModifiedDate>
  <Description>sample string 1</Description>
  <RoleType>
    <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">2025-04-25T14:08:56.7918961-04:00</CreatedDate>
    <Disabled xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">true</Disabled>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">2</Id>
    <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Core">2025-04-25T14:08:56.7918961-04:00</ModifiedDate>
    <Description>sample string 1</Description>
  </RoleType>
  <RoleTypeId>2</RoleTypeId>
</Role>