Редактировать элемент справочника 'Цель кредита' по ID
Замещает элемент справочника "Цель кредита" по ID.
Path Parameters
id int64 required
id
application/json
Request Body required
request
bureauCode string
creditSecondPurposes object[]
name string
Responses
- 200
- 201
- 401
- 403
- 404
OK
*/*
Schema
Schema
integer
Created
Unauthorized
Forbidden
Not Found
PUT /dicts/credit-purposes/:id
Request
Request
curl / cURL
curl -L -X PUT '//localhost/dicts/credit-purposes/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"bureauCode": "string",
"creditSecondPurposes": [
{
"name": "string"
}
],
"name": "string"
}'
python / requests
curl -L -X PUT '//localhost/dicts/credit-purposes/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"bureauCode": "string",
"creditSecondPurposes": [
{
"name": "string"
}
],
"name": "string"
}'
go / native
curl -L -X PUT '//localhost/dicts/credit-purposes/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"bureauCode": "string",
"creditSecondPurposes": [
{
"name": "string"
}
],
"name": "string"
}'
nodejs / axios
curl -L -X PUT '//localhost/dicts/credit-purposes/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"bureauCode": "string",
"creditSecondPurposes": [
{
"name": "string"
}
],
"name": "string"
}'
php / guzzle
curl -L -X PUT '//localhost/dicts/credit-purposes/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"bureauCode": "string",
"creditSecondPurposes": [
{
"name": "string"
}
],
"name": "string"
}'
java / OkHttp
curl -L -X PUT '//localhost/dicts/credit-purposes/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"bureauCode": "string",
"creditSecondPurposes": [
{
"name": "string"
}
],
"name": "string"
}'