Skip to content

Commit c8b1421

Browse files
committed
API-400: add documentation on the update of a family variant
1 parent 8cf5fbc commit c8b1421

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

content/swagger/resources/families/routes/families_code_variants_code.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,34 @@ get:
2323
$ref: "#/responses/404Error"
2424
406:
2525
$ref: "#/responses/406Error"
26+
patch:
27+
summary: Update/create a family a family variant
28+
operationId: "patch_families__family_code__variants__code__"
29+
tags:
30+
- Families
31+
x-versions:
32+
- 2.0
33+
description: This endpoint allows you to update a given family variant. Know more about <a href="/documentation/update.html#update-behavior">Update behavior</a>. Note that if no family variant exists for the given code, it creates it.
34+
parameters:
35+
- $ref: '#/parameters/family_code'
36+
- $ref: '#/parameters/code'
37+
- name: body
38+
in: body
39+
required: true
40+
schema:
41+
$ref: "#/definitions/FamilyVariant"
42+
responses:
43+
201:
44+
$ref: "#/responses/Created"
45+
204:
46+
$ref: "#/responses/NoContent"
47+
400:
48+
$ref: "#/responses/400Error"
49+
401:
50+
$ref: "#/responses/401Error"
51+
403:
52+
$ref: "#/responses/403Error"
53+
415:
54+
$ref: "#/responses/415Error"
55+
422:
56+
$ref: "#/responses/422Error"

0 commit comments

Comments
 (0)