PUT api/RestrictionInsert

Request Information

URI Parameters

None.

Body Parameters

SuperRestrictViewModel
NameDescriptionTypeAdditional information
restriction

Restriction

None.

_Data

Collection of Restrictions_Sub

None.

Request Formats

application/json, text/json

Sample:
{
  "restriction": {
    "id": 1,
    "date": "2025-11-09T13:59:15.4334329+03:00",
    "doc_no": 1,
    "type": 1,
    "state": 1,
    "notes": "sample string 2",
    "branch": 1,
    "IS_Deleted": true,
    "omla": 1,
    "omlaval": 1.1,
    "doc_no2": 1,
    "total_dept": 1.1,
    "total_credit": 1.1,
    "rest_type": 1,
    "rest_cycle_no": 1,
    "book_id": 1,
    "Center": 1,
    "create_user": 1,
    "reshd_id": 3
  },
  "_Data": [
    {
      "res_id": 1,
      "dept": 1.1,
      "credit": 1.1,
      "acc_no": 1.1,
      "notes": "sample string 1",
      "branch": 1,
      "omla": 1,
      "omlaval": 1.1,
      "center": 1,
      "ref_no": "sample string 2",
      "RestDate": "2025-11-09T13:59:15.4344414+03:00",
      "sub_type": 1,
      "rest_sub_type": 1,
      "reshd_id": 3
    },
    {
      "res_id": 1,
      "dept": 1.1,
      "credit": 1.1,
      "acc_no": 1.1,
      "notes": "sample string 1",
      "branch": 1,
      "omla": 1,
      "omlaval": 1.1,
      "center": 1,
      "ref_no": "sample string 2",
      "RestDate": "2025-11-09T13:59:15.4344414+03:00",
      "sub_type": 1,
      "rest_sub_type": 1,
      "reshd_id": 3
    }
  ]
}

application/xml, text/xml

Sample:
<SuperRestrictViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiLite.ViewModel">
  <_Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/ApiLite.Models">
    <d2p1:Restrictions_Sub>
      <d2p1:RestDate>2025-11-09T13:59:15.4344414+03:00</d2p1:RestDate>
      <d2p1:acc_no>1.1</d2p1:acc_no>
      <d2p1:branch>1</d2p1:branch>
      <d2p1:center>1</d2p1:center>
      <d2p1:credit>1.1</d2p1:credit>
      <d2p1:dept>1.1</d2p1:dept>
      <d2p1:notes>sample string 1</d2p1:notes>
      <d2p1:omla>1</d2p1:omla>
      <d2p1:omlaval>1.1</d2p1:omlaval>
      <d2p1:ref_no>sample string 2</d2p1:ref_no>
      <d2p1:res_id>1</d2p1:res_id>
      <d2p1:reshd_id>3</d2p1:reshd_id>
      <d2p1:rest_sub_type>1</d2p1:rest_sub_type>
      <d2p1:sub_type>1</d2p1:sub_type>
    </d2p1:Restrictions_Sub>
    <d2p1:Restrictions_Sub>
      <d2p1:RestDate>2025-11-09T13:59:15.4344414+03:00</d2p1:RestDate>
      <d2p1:acc_no>1.1</d2p1:acc_no>
      <d2p1:branch>1</d2p1:branch>
      <d2p1:center>1</d2p1:center>
      <d2p1:credit>1.1</d2p1:credit>
      <d2p1:dept>1.1</d2p1:dept>
      <d2p1:notes>sample string 1</d2p1:notes>
      <d2p1:omla>1</d2p1:omla>
      <d2p1:omlaval>1.1</d2p1:omlaval>
      <d2p1:ref_no>sample string 2</d2p1:ref_no>
      <d2p1:res_id>1</d2p1:res_id>
      <d2p1:reshd_id>3</d2p1:reshd_id>
      <d2p1:rest_sub_type>1</d2p1:rest_sub_type>
      <d2p1:sub_type>1</d2p1:sub_type>
    </d2p1:Restrictions_Sub>
  </_Data>
  <restriction xmlns:d2p1="http://schemas.datacontract.org/2004/07/ApiLite.Models">
    <d2p1:Center>1</d2p1:Center>
    <d2p1:IS_Deleted>true</d2p1:IS_Deleted>
    <d2p1:book_id>1</d2p1:book_id>
    <d2p1:branch>1</d2p1:branch>
    <d2p1:create_user>1</d2p1:create_user>
    <d2p1:date>2025-11-09T13:59:15.4334329+03:00</d2p1:date>
    <d2p1:doc_no>1</d2p1:doc_no>
    <d2p1:doc_no2>1</d2p1:doc_no2>
    <d2p1:id>1</d2p1:id>
    <d2p1:notes>sample string 2</d2p1:notes>
    <d2p1:omla>1</d2p1:omla>
    <d2p1:omlaval>1.1</d2p1:omlaval>
    <d2p1:reshd_id>3</d2p1:reshd_id>
    <d2p1:rest_cycle_no>1</d2p1:rest_cycle_no>
    <d2p1:rest_type>1</d2p1:rest_type>
    <d2p1:state>1</d2p1:state>
    <d2p1:total_credit>1.1</d2p1:total_credit>
    <d2p1:total_dept>1.1</d2p1:total_dept>
    <d2p1:type>1</d2p1:type>
  </restriction>
</SuperRestrictViewModel>

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.