POST api/secRight

Insert a new record into the Rights table.

Request Information

URI Parameters

None.

Body Parameters

secRightDb
NameDescriptionTypeAdditional information
RightID

integer

None.

RightName

string

Required

Max length: 50

RightDescription

string

Max length: 120

RightTypeID

integer

None.

IsActive

boolean

None.

IsClientAssignable

boolean

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

ReportID

integer

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "RightID": 1,
  "RightName": "sample string 2",
  "RightDescription": "sample string 3",
  "RightTypeID": 4,
  "IsActive": true,
  "IsClientAssignable": true,
  "CreatedBy": 7,
  "CreatedDate": "2025-12-06T23:39:27.3527522+00:00",
  "UpdatedBy": 9,
  "UpdatedDate": "2025-12-06T23:39:27.3527522+00:00",
  "ReportID": 1
}

application/xml, text/xml

Sample:
<secRightDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <CreatedBy>7</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:27.3527522Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <IsActive>true</IsActive>
  <IsClientAssignable>true</IsClientAssignable>
  <ReportID>1</ReportID>
  <RightDescription>sample string 3</RightDescription>
  <RightID>1</RightID>
  <RightName>sample string 2</RightName>
  <RightTypeID>4</RightTypeID>
  <UpdatedBy>9</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:27.3527522Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</secRightDb>

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

Response Information

Resource Description

UpsertRetOfsecRightDb
NameDescriptionTypeAdditional information
returnID

integer

None.

results

Collection of ValidationResult

None.

returnItem

secRightDb

None.

displayMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "returnID": 1,
  "results": null,
  "returnItem": {
    "results": null,
    "RightID": 1,
    "RightName": "sample string 2",
    "RightDescription": "sample string 3",
    "RightTypeID": 4,
    "IsActive": true,
    "IsClientAssignable": true,
    "CreatedBy": 7,
    "CreatedDate": "2025-12-06T23:39:27.3527522+00:00",
    "UpdatedBy": 9,
    "UpdatedDate": "2025-12-06T23:39:27.3527522+00:00",
    "ReportID": 1
  },
  "displayMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<UpsertRetOfsecRightDb66KPc_SrH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility">
  <displayMessage>sample string 1</displayMessage>
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
  <returnID>1</returnID>
  <returnItem xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
    <results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
    <d2p1:CreatedBy>7</d2p1:CreatedBy>
    <d2p1:CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:39:27.3527522Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:CreatedDate>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:IsClientAssignable>true</d2p1:IsClientAssignable>
    <d2p1:ReportID>1</d2p1:ReportID>
    <d2p1:RightDescription>sample string 3</d2p1:RightDescription>
    <d2p1:RightID>1</d2p1:RightID>
    <d2p1:RightName>sample string 2</d2p1:RightName>
    <d2p1:RightTypeID>4</d2p1:RightTypeID>
    <d2p1:UpdatedBy>9</d2p1:UpdatedBy>
    <d2p1:UpdatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:39:27.3527522Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:UpdatedDate>
  </returnItem>
</UpsertRetOfsecRightDb66KPc_SrH>