POST api/Guarantee

Creates a Guarantee

Request Information

URI Parameters

None.

Body Parameters

GuaranteeCuDto
NameDescriptionTypeAdditional information
GuaranteeTypeId

integer

None.

SubcontractId

integer

None.

Name

string

None.

Description

string

None.

Amount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "guaranteeTypeId": 1,
  "subcontractId": 2,
  "name": "sample string 3",
  "description": "sample string 4",
  "amount": 1.0
}

text/html

Sample:
{"guaranteeTypeId":1,"subcontractId":2,"name":"sample string 3","description":"sample string 4","amount":1.0}

application/xml, text/xml

Sample:
<GuaranteeCuDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.GuaranteeAgg">
  <Amount>1</Amount>
  <Description>sample string 4</Description>
  <GuaranteeTypeId>1</GuaranteeTypeId>
  <Name>sample string 3</Name>
  <SubcontractId>2</SubcontractId>
</GuaranteeCuDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/html

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>