mirror of
https://github.com/valitydev/swag-claim-management.git
synced 2024-11-06 01:35:18 +00:00
ded0ac5f9a
* JD-206 add partyID query parameter * JD-206 change partyID parameter type Co-authored-by: ElenaKushchenko <e.kushchenko@rbkmoney.com>
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
put:
|
|
description: Обновить заявку по её идентификатору.
|
|
operationId: updateClaimByID
|
|
tags:
|
|
- Claims
|
|
parameters:
|
|
- $ref: '#/parameters/requestID'
|
|
- $ref: '#/parameters/partyID'
|
|
- $ref: '#/parameters/deadline'
|
|
- $ref: '#/parameters/claimID'
|
|
- $ref: '#/parameters/claimRevision'
|
|
- name: changeset
|
|
in: body
|
|
required: true
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: '#/definitions/Modification'
|
|
responses:
|
|
'201':
|
|
description: Заявка обновлена
|
|
'404':
|
|
$ref: '#/responses/NotFound'
|
|
'401':
|
|
$ref: '#/responses/Unauthorized'
|
|
'400':
|
|
description: Ошибка при изменении заявки
|
|
schema:
|
|
type: object
|
|
required:
|
|
- code
|
|
- message
|
|
properties:
|
|
code:
|
|
description: |
|
|
[Код ошибки](#tag/Error-Codes)
|
|
type: string
|
|
enum:
|
|
- invalidClaimStatus
|
|
- changesetConflict
|
|
- invalidChangeset
|
|
- invalidClaimRevision
|
|
- invalidDeadline
|
|
message:
|
|
description: Человекочитаемое описание ошибки
|
|
type: string
|
|
example: Invalid claim status
|