Обновить объект сделки по id
Обновить объект сделки по id
Path Parameters
id int64 required
id
application/json
Request Body required
dealUpdateDTO
clientInteractMessages object[]
dealChecklist object
errors object[]
extraFields object
Responses
- 200
- 201
- 401
- 403
- 404
OK
*/*
Schema
Schema
integer
Created
Unauthorized
Forbidden
Not Found
PUT /main/deal/:id
Request
Request
curl / cURL
curl -L -X PUT '//localhost/main/deal/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"clientInteractMessages": [
{
"comment": "string",
"contractId": 0,
"date": "2024-11-20T07:47:13.200Z",
"trackNumber": "string"
}
],
"dealChecklist": {
"additionalAgreementReceived": true,
"applicationReceived": true,
"documentsReceived": true,
"dossierReceived": true,
"insuranceContractReceived": true,
"postponementCovid19": true,
"powerOfAttorneySent": true,
"rentalAgreementReceived": true,
"rentalApplicationReceived": true,
"rentalContractReceived": true,
"rentalDocumentsReceived": true,
"scheduleReceived": true,
"withdrawalLettersSent": true,
"writtenOff": true
},
"errors": [
{
"comment": "string",
"contractId": 0,
"createdById": 0,
"creationDate": "2024-11-20T07:47:13.200Z",
"errorData": "string",
"errorDate": "2024-11-20T07:47:13.200Z",
"errorTypeId": 0,
"guiltyId": 0,
"loanApplicationId": 0
}
],
"extraFields": {}
}'
python / requests
curl -L -X PUT '//localhost/main/deal/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"clientInteractMessages": [
{
"comment": "string",
"contractId": 0,
"date": "2024-11-20T07:47:13.200Z",
"trackNumber": "string"
}
],
"dealChecklist": {
"additionalAgreementReceived": true,
"applicationReceived": true,
"documentsReceived": true,
"dossierReceived": true,
"insuranceContractReceived": true,
"postponementCovid19": true,
"powerOfAttorneySent": true,
"rentalAgreementReceived": true,
"rentalApplicationReceived": true,
"rentalContractReceived": true,
"rentalDocumentsReceived": true,
"scheduleReceived": true,
"withdrawalLettersSent": true,
"writtenOff": true
},
"errors": [
{
"comment": "string",
"contractId": 0,
"createdById": 0,
"creationDate": "2024-11-20T07:47:13.200Z",
"errorData": "string",
"errorDate": "2024-11-20T07:47:13.200Z",
"errorTypeId": 0,
"guiltyId": 0,
"loanApplicationId": 0
}
],
"extraFields": {}
}'
go / native
curl -L -X PUT '//localhost/main/deal/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"clientInteractMessages": [
{
"comment": "string",
"contractId": 0,
"date": "2024-11-20T07:47:13.200Z",
"trackNumber": "string"
}
],
"dealChecklist": {
"additionalAgreementReceived": true,
"applicationReceived": true,
"documentsReceived": true,
"dossierReceived": true,
"insuranceContractReceived": true,
"postponementCovid19": true,
"powerOfAttorneySent": true,
"rentalAgreementReceived": true,
"rentalApplicationReceived": true,
"rentalContractReceived": true,
"rentalDocumentsReceived": true,
"scheduleReceived": true,
"withdrawalLettersSent": true,
"writtenOff": true
},
"errors": [
{
"comment": "string",
"contractId": 0,
"createdById": 0,
"creationDate": "2024-11-20T07:47:13.200Z",
"errorData": "string",
"errorDate": "2024-11-20T07:47:13.200Z",
"errorTypeId": 0,
"guiltyId": 0,
"loanApplicationId": 0
}
],
"extraFields": {}
}'
nodejs / axios
curl -L -X PUT '//localhost/main/deal/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"clientInteractMessages": [
{
"comment": "string",
"contractId": 0,
"date": "2024-11-20T07:47:13.200Z",
"trackNumber": "string"
}
],
"dealChecklist": {
"additionalAgreementReceived": true,
"applicationReceived": true,
"documentsReceived": true,
"dossierReceived": true,
"insuranceContractReceived": true,
"postponementCovid19": true,
"powerOfAttorneySent": true,
"rentalAgreementReceived": true,
"rentalApplicationReceived": true,
"rentalContractReceived": true,
"rentalDocumentsReceived": true,
"scheduleReceived": true,
"withdrawalLettersSent": true,
"writtenOff": true
},
"errors": [
{
"comment": "string",
"contractId": 0,
"createdById": 0,
"creationDate": "2024-11-20T07:47:13.200Z",
"errorData": "string",
"errorDate": "2024-11-20T07:47:13.200Z",
"errorTypeId": 0,
"guiltyId": 0,
"loanApplicationId": 0
}
],
"extraFields": {}
}'
php / guzzle
curl -L -X PUT '//localhost/main/deal/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"clientInteractMessages": [
{
"comment": "string",
"contractId": 0,
"date": "2024-11-20T07:47:13.200Z",
"trackNumber": "string"
}
],
"dealChecklist": {
"additionalAgreementReceived": true,
"applicationReceived": true,
"documentsReceived": true,
"dossierReceived": true,
"insuranceContractReceived": true,
"postponementCovid19": true,
"powerOfAttorneySent": true,
"rentalAgreementReceived": true,
"rentalApplicationReceived": true,
"rentalContractReceived": true,
"rentalDocumentsReceived": true,
"scheduleReceived": true,
"withdrawalLettersSent": true,
"writtenOff": true
},
"errors": [
{
"comment": "string",
"contractId": 0,
"createdById": 0,
"creationDate": "2024-11-20T07:47:13.200Z",
"errorData": "string",
"errorDate": "2024-11-20T07:47:13.200Z",
"errorTypeId": 0,
"guiltyId": 0,
"loanApplicationId": 0
}
],
"extraFields": {}
}'
java / OkHttp
curl -L -X PUT '//localhost/main/deal/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"clientInteractMessages": [
{
"comment": "string",
"contractId": 0,
"date": "2024-11-20T07:47:13.200Z",
"trackNumber": "string"
}
],
"dealChecklist": {
"additionalAgreementReceived": true,
"applicationReceived": true,
"documentsReceived": true,
"dossierReceived": true,
"insuranceContractReceived": true,
"postponementCovid19": true,
"powerOfAttorneySent": true,
"rentalAgreementReceived": true,
"rentalApplicationReceived": true,
"rentalContractReceived": true,
"rentalDocumentsReceived": true,
"scheduleReceived": true,
"withdrawalLettersSent": true,
"writtenOff": true
},
"errors": [
{
"comment": "string",
"contractId": 0,
"createdById": 0,
"creationDate": "2024-11-20T07:47:13.200Z",
"errorData": "string",
"errorDate": "2024-11-20T07:47:13.200Z",
"errorTypeId": 0,
"guiltyId": 0,
"loanApplicationId": 0
}
],
"extraFields": {}
}'