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

     1  summary: Batch unlink child keys from a parent key
     2  description: Unlinks multiple child keys from a given parent key in a single operation.
     3  operationId: key_links/batch_destroy
     4  tags:
     5  - Linked Keys
     6  parameters:
     7  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     8  - "$ref": "../../parameters.yaml#/project_id"
     9  - "$ref": "../../parameters.yaml#/key_id_as_id"
    10  requestBody:
    11    required: true
    12    content:
    13      application/json:
    14        schema:
    15          required:
    16          - child_key_ids
    17          type: object
    18          title: key_links/batch_destroy/parameters
    19          properties:
    20            child_key_ids:
    21              description: The IDs of the child keys to unlink from the parent key.
    22              type: array
    23              example: ["child_key_id1", "child_key_id2"]
    24              items:
    25                type: string
    26            unlink_parent:
    27              description: Whether to unlink the parent key as well and unmark it as linked-key.
    28              type: boolean
    29              default: false
    30  responses:
    31    '200':
    32      description: OK
    33    '422':
    34      "$ref": "../../responses.yaml#/422"