POST api/Requests/UserFilter

Добавляет новый пользовательский фильтр

Request Information

URI Parameters

None.

Body Parameters

Модель фильтра

UserRequestFilterModel
NameDescriptionTypeAdditional information
Filter

Содержимое фильтра

RequestFilter

None.

Id

Идентификатор пользовательского фильтра

integer

Элемент не учитывается при создании/вставке

Name

Наименование пользовательского фильтра

string

Элемент является обязательным при сохранении

Request Formats

application/json, text/json

Sample:
{
  "Filter": {
    "Departments": [
      1,
      2
    ],
    "Categories": [
      1,
      2
    ],
    "RequestTypes": [
      1,
      2
    ],
    "JobTypes": [
      1,
      2
    ],
    "Initiators": [
      1,
      2
    ],
    "Contractors": [
      1,
      1
    ],
    "Statuses": [
      1,
      2
    ],
    "Regions": [
      1,
      2
    ],
    "HashTags": [
      "sample string 1",
      "sample string 2"
    ],
    "ResponsibilityGroups": [
      1,
      2
    ],
    "Observer": 1,
    "Approver": 1,
    "ActiveApprover": 1,
    "BeginCreateDate": "2022-08-17T05:19:44+03:00",
    "EndCreateDate": "2022-08-17T05:19:44+03:00",
    "Rating": 1,
    "Description": "sample string 1",
    "SeachRequest": "sample string 2",
    "Feedback": [
      1,
      2
    ],
    "IsActiveApprover": true,
    "IsWithoutContractor": true
  },
  "Id": 1,
  "Name": "sample string 2"
}

text/html, multipart/form-data

Sample:
{"Filter":{"Departments":[1,2],"Categories":[1,2],"RequestTypes":[1,2],"JobTypes":[1,2],"Initiators":[1,2],"Contractors":[1,1],"Statuses":[1,2],"Regions":[1,2],"HashTags":["sample string 1","sample string 2"],"ResponsibilityGroups":[1,2],"Observer":1,"Approver":1,"ActiveApprover":1,"BeginCreateDate":"2022-08-17T05:19:44+03:00","EndCreateDate":"2022-08-17T05:19:44+03:00","Rating":1,"Description":"sample string 1","SeachRequest":"sample string 2","Feedback":[1,2],"IsActiveApprover":true,"IsWithoutContractor":true},"Id":1,"Name":"sample string 2"}

application/xml, text/xml

Sample:
<UserRequestFilterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Requests">
  <Filter xmlns:d2p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.Logic.Filtering">
    <d2p1:ActiveApprover>1</d2p1:ActiveApprover>
    <d2p1:Approver>1</d2p1:Approver>
    <d2p1:BeginCreateDate>2022-08-17T05:19:44.094963+03:00</d2p1:BeginCreateDate>
    <d2p1:Categories xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:Categories>
    <d2p1:Contractors xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>1</d3p1:int>
    </d2p1:Contractors>
    <d2p1:Departments xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:Departments>
    <d2p1:Description>sample string 1</d2p1:Description>
    <d2p1:EndCreateDate>2022-08-17T05:19:44.094963+03:00</d2p1:EndCreateDate>
    <d2p1:Feedback xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:Feedback>
    <d2p1:HashTags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </d2p1:HashTags>
    <d2p1:Initiators xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:Initiators>
    <d2p1:IsActiveApprover>true</d2p1:IsActiveApprover>
    <d2p1:IsWithoutContractor>true</d2p1:IsWithoutContractor>
    <d2p1:JobTypes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:JobTypes>
    <d2p1:Observer>1</d2p1:Observer>
    <d2p1:Rating>1</d2p1:Rating>
    <d2p1:Regions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:Regions>
    <d2p1:RequestTypes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:RequestTypes>
    <d2p1:ResponsibilityGroups xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:ResponsibilityGroups>
    <d2p1:SeachRequest>sample string 2</d2p1:SeachRequest>
    <d2p1:Statuses xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:Statuses>
  </Filter>
  <Id>1</Id>
  <Name>sample string 2</Name>
</UserRequestFilterModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Success Resource Description

OperationResult
NameDescriptionTypeAdditional information
Target

Возвращаемый объект

Object

None.

Status

Статус операции

ResultStatus

None.

Error

Детализация ошибки

Error

None.

Error Resource Description (Реализовано не везде)

OperationResult
NameDescriptionTypeAdditional information
Target

Возвращаемый объект

Object

None.

Status

Статус операции

ResultStatus

None.

Error

Детализация ошибки

Error

None.

Response Formats

application/json, text/json

Sample:
{
  "Target": {},
  "Status": 0,
  "Error": {
    "Code": 0,
    "Message": "sample string 1",
    "Description": "sample string 2",
    "Details": []
  }
}

text/html, multipart/form-data

Sample:
{"Target":{},"Status":0,"Error":{"Code":0,"Message":"sample string 1","Description":"sample string 2","Details":[]}}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.