github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/key_links/create.yaml (about)

     1  ---
     2  summary: Link child keys to a parent key
     3  description: Creates links between a given parent key and one or more child keys.
     4  operationId: key_links/create
     5  tags:
     6  - Linked Keys
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/project_id"
    10  - "$ref": "../../parameters.yaml#/key_id_as_id"
    11  requestBody:
    12    required: true
    13    content:
    14      application/json:
    15        schema:
    16          required:
    17          - child_key_ids
    18          type: object
    19          title: key_links/create/parameters
    20          properties:
    21            child_key_ids:
    22              description: The IDs of the child keys to link to the parent key. Can be left empty, to only mark the given translation-key as parent
    23              type: array
    24              example: ["child_key_id1", "child_key_id2"]
    25              items:
    26                type: string
    27  
    28  responses:
    29    '201':
    30      description: Created
    31      content:
    32        application/json:
    33          schema:
    34            "$ref": "../../schemas/key_link.yaml#/key_link"
    35    '422':
    36      "$ref": "../../responses.yaml#/422"