PUT api/TaskUserFilters/{id}

Редактировать пользовательский фильтр

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

None.

integer

Required

Body Parameters

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

UserTaskFilterModel
NameDescriptionTypeAdditional information
Id

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

integer

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

Name

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

string

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

Filter

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

TaskFilter

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Filter": {
    "Initiators": [
      1,
      2
    ],
    "Contractors": [
      1,
      2
    ],
    "Statuses": [
      1,
      2
    ],
    "HashTags": [
      1,
      2
    ],
    "BeginCreateDate": "2022-08-17T04:21:57+03:00",
    "EndCreateDate": "2022-08-17T04:21:57+03:00"
  }
}

text/html, multipart/form-data

Sample:
{"Id":1,"Name":"sample string 2","Filter":{"Initiators":[1,2],"Contractors":[1,2],"Statuses":[1,2],"HashTags":[1,2],"BeginCreateDate":"2022-08-17T04:21:57+03:00","EndCreateDate":"2022-08-17T04:21:57+03:00"}}

application/xml, text/xml

Sample:
<UserTaskFilterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Tasks">
  <Filter xmlns:d2p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.Logic.Filtering">
    <d2p1:BeginCreateDate>2022-08-17T04:21:57.6916657+03:00</d2p1:BeginCreateDate>
    <d2p1:Contractors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </d2p1:Contractors>
    <d2p1:EndCreateDate>2022-08-17T04:21:57.6916657+03:00</d2p1:EndCreateDate>
    <d2p1:HashTags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </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: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>
</UserTaskFilterModel>

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.