DELETE api/PurchReqTables/{id}

Удаляет созданный Тендер

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

PurchReqId - Идентификатор

integer

Required

Body Parameters

None.

Response Information

Resource Description

PurchReqTable
NameDescriptionTypeAdditional information
PurchReqId

ИД - служит как номер документа

integer

None.

IdLocalQuoteOfPurchaseRequest

integer

None.

DocNum

Номер документа - не используется

string

Max length: 20

PurchReqName

Название заявки/тендера

string

Max length: 255

CompanyId

ИД компании, связана с таблицей Companies

integer

None.

UserId

Идентификатор пользователя, связана с таблицей UserProfiles

string

None.

CreateDateTime

Дата и время создания документа

date

None.

PurchBegDate

Срок выполнения работ: Начало

date

Data type: Date

PurchEndDate

Срок выполнения работ: Конец

date

Data type: Date

IsPublish

True - Опубликован (Активно), False - На модерации

boolean

None.

RegionId

В каком регионе/городе предстоят работы (связана с табл. Regions)

string

Max length: 2

PurchStatus

Статус заявки: 0-Модерация; 1-Открытый, заявки принимаются; 2-Закрыта

integer

None.

DocElementId

Тип документа -> DocElements.DocElementId (неиспользуется)

integer

None.

DocStateId

Статус документа по согласованию -> DocStates.DocStateId (неиспользуется)

integer

None.

DeliveryAddress

Адрес места поставки товара, проведения работ или оказания услуг

string

Max length: 255

IsSpecification

True - заявка/тендер с спец., False - обычный

boolean

None.

Description

Описание тендера

string

Max length: 1000

CategoryId

Категория работ - CategoryWorks

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "PurchReqId": 1,
  "IdLocalQuoteOfPurchaseRequest": 1,
  "DocNum": "sample string 1",
  "PurchReqName": "sample string 2",
  "CompanyId": 1,
  "UserId": "sample string 3",
  "CreateDateTime": "2025-12-12T04:29:46.3017099+01:00",
  "PurchBegDate": "2025-12-12T04:29:46.3017099+01:00",
  "PurchEndDate": "2025-12-12T04:29:46.3017099+01:00",
  "IsPublish": true,
  "RegionId": "sample string 4",
  "PurchStatus": 1,
  "DocElementId": 1,
  "DocStateId": 1,
  "DeliveryAddress": "sample string 5",
  "IsSpecification": true,
  "Description": "sample string 6",
  "CategoryId": 1
}

application/xml, text/xml

Sample:
<PurchReqTable xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SadiApi.Models">
  <CategoryId>1</CategoryId>
  <CompanyId>1</CompanyId>
  <CreateDateTime>2025-12-12T04:29:46.3017099+01:00</CreateDateTime>
  <DeliveryAddress>sample string 5</DeliveryAddress>
  <Description>sample string 6</Description>
  <DocElementId>1</DocElementId>
  <DocNum>sample string 1</DocNum>
  <DocStateId>1</DocStateId>
  <IdLocalQuoteOfPurchaseRequest>1</IdLocalQuoteOfPurchaseRequest>
  <IsPublish>true</IsPublish>
  <IsSpecification>true</IsSpecification>
  <PurchBegDate>2025-12-12T04:29:46.3017099+01:00</PurchBegDate>
  <PurchEndDate>2025-12-12T04:29:46.3017099+01:00</PurchEndDate>
  <PurchReqId>1</PurchReqId>
  <PurchReqName>sample string 2</PurchReqName>
  <PurchStatus>1</PurchStatus>
  <RegionId>sample string 4</RegionId>
  <UserId>sample string 3</UserId>
</PurchReqTable>