{
  "openapi": "3.1.1",
  "info": {
    "title": "Translation Memory API",
    "description": "Translation memories, glossaries, term bases and style guides, and the translation that uses them.",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "{{API_BASE_URL}}",
      "description": "Your API environment"
    }
  ],
  "tags": [
    {
      "name": "Memories"
    },
    {
      "name": "Imports and exports"
    },
    {
      "name": "Terms"
    },
    {
      "name": "Translation"
    },
    {
      "name": "Term bases"
    },
    {
      "name": "Concepts"
    },
    {
      "name": "Glossaries"
    },
    {
      "name": "Glossary entries"
    },
    {
      "name": "Style guides"
    },
    {
      "name": "Style guide rules"
    },
    {
      "name": "Linked resources"
    },
    {
      "name": "Sharing"
    }
  ],
  "paths": {
    "/v1/glossary": {
      "get": {
        "operationId": "list-glossaries",
        "parameters": [
          {
            "name": "tmId",
            "required": false,
            "in": "query",
            "description": "Only the glossaries this memory applies. Pass the memory's `tmRef` (its ID on the translation service), not its `id`.",
            "schema": {
              "examples": [
                "8a0c2e4f-6b1d-4f3a-9c5e-7b9d1f3a5c8e"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Glossaries per page, from 1 to 200. Defaults to 50.",
            "schema": {
              "type": "number",
              "examples": [
                50
              ]
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`nextCursor` from the previous page. Omit for the first page.",
            "schema": {
              "examples": [
                "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0VDEwOjMyOjA3LjAwMFoifQ"
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only glossaries whose name contains this text (any case).",
            "schema": {
              "examples": [
                "brand"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of glossaries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlossaryPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List glossaries",
        "tags": [
          "Glossaries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Your organization's glossaries, newest first. Paginated with a cursor: pass `nextCursor` back as `cursor` until `hasMore` is false. With `tmId`, returns only the glossaries that memory applies, on one page.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "create-a-glossary",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGlossaryBodyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new glossary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlossaryDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The name is used by another glossary (`A glossary with this name already exists.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Create a glossary",
        "tags": [
          "Glossaries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Create an empty glossary. Add entries with Add a glossary entry or Import a glossary file, then attach it to memories with Set memories using a glossary.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/glossary/{id}": {
      "get": {
        "operationId": "get-a-glossary",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the glossary (`glossaryId`), from List glossaries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The glossary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlossaryDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Get a glossary",
        "tags": [
          "Glossaries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One glossary with its entry count and the memories that apply it.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "update-a-glossary",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the glossary (`glossaryId`), from List glossaries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateGlossaryBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated glossary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlossaryDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The new name is used by another glossary (`A glossary with this name already exists.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update a glossary",
        "tags": [
          "Glossaries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Rename a glossary or change its description. Only the fields you send change.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/glossary/{id}/entries": {
      "get": {
        "operationId": "list-glossary-entries",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the glossary (`glossaryId`), from List glossaries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Entries per page, from 1 to 200. Defaults to 50.",
            "schema": {
              "type": "number",
              "examples": [
                50
              ]
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`nextCursor` from the previous page. Omit for the first page.",
            "schema": {
              "examples": [
                "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0VDEwOjMyOjA3LjAwMFoifQ"
              ]
            }
          },
          {
            "name": "translatable",
            "required": false,
            "in": "query",
            "description": "`false` for do-not-translate entries only; `true` for translatable entries only.",
            "schema": {
              "type": "boolean",
              "examples": [
                false
              ]
            }
          },
          {
            "name": "tag",
            "required": false,
            "in": "query",
            "description": "Only entries with this tag.",
            "schema": {
              "examples": [
                "ui"
              ]
            }
          },
          {
            "name": "language",
            "required": false,
            "in": "query",
            "description": "BCP-47 code. Only entries written in, or translated into, this language.",
            "schema": {
              "examples": [
                "fr-FR"
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only entries whose term or a translation contains this text.",
            "schema": {
              "examples": [
                "dashboard"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of entries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlossaryEntryPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List glossary entries",
        "tags": [
          "Glossary entries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Entries of a glossary with their translations. Paginated with a cursor: pass `nextCursor` back as `cursor` until `hasMore` is false.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "add-a-glossary-entry",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the glossary (`glossaryId`), from List glossaries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGlossaryEntryBodyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new entry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlossaryEntryDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The glossary already has this term in this language (`The glossary term already exists.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Add a glossary entry",
        "tags": [
          "Glossary entries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add a term with its translations. A term and language pair can appear only once in a glossary. Set `translatable: false` for a name that must never be translated.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/glossary/{id}/entries/{entryId}": {
      "patch": {
        "description": "Change an entry. Only the fields you send change. `translations` works per language: each listed language is set, `text: null` removes one, and languages you leave out are kept.",
        "operationId": "update-a-glossary-entry",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the glossary (`glossaryId`), from List glossaries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            }
          },
          {
            "name": "entryId",
            "required": true,
            "in": "path",
            "description": "ID of the entry, from List glossary entries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "d8f0b2c4-6e1a-4d3f-9b5c-7a9e1c3f5b8d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateGlossaryEntryBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated entry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlossaryEntryDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The glossary already has the new term in this language (`The glossary term already exists.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update a glossary entry",
        "tags": [
          "Glossary entries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/glossary/{id}/export": {
      "get": {
        "operationId": "export-a-glossary",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the glossary (`glossaryId`), from List glossaries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            }
          },
          {
            "name": "format",
            "required": false,
            "in": "query",
            "description": "File format. Defaults to `xlsx`.",
            "schema": {
              "enum": [
                "xlsx",
                "csv"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file, as an attachment named after the glossary (`Content-Disposition: attachment; filename=\"<name>.xlsx\"`).",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {}
              },
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              },
              "text/csv; charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              },
              "text/csv; charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Export a glossary",
        "tags": [
          "Glossaries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Download every entry of a glossary as an XLSX or CSV file, in the same layout Import a glossary file reads.",
        "x-orbitdocs-order": 10,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/glossary/{id}/import": {
      "post": {
        "description": "Add or update entries from an XLSX or CSV file (up to 25 MB and 20,000 entries), sent as `multipart/form-data`, or put in storage with Get an upload URL for a glossary file and named by its `uploadKey` in a JSON body. One row per entry: Term, Language, Description, Translatable, Case sensitive, Tags, then one column per language (and an optional `<code> note` column). An entry is matched by term and language, so importing again updates it in place. Start from Download a glossary template.",
        "operationId": "import-a-glossary-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the glossary (`glossaryId`), from List glossaries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The XLSX or CSV file, up to 25 MB. Send `file` or `uploadKey`."
                  },
                  "uploadKey": {
                    "type": "string",
                    "description": "Instead of `file`, in a JSON body: the `uploadKey` from Get an upload URL for a glossary file, once the file is in storage.",
                    "examples": [
                      "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65/staged-uploads/0c7d2e5a-9b1f-4c3d-8e6a-2f4b1d9c7a50.xlsx"
                    ]
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "xlsx",
                      "csv"
                    ],
                    "description": "Format of the file. Omit to use the file name's extension (`.csv` and `.tsv` read as CSV, anything else as XLSX).",
                    "examples": [
                      "xlsx"
                    ]
                  },
                  "replace": {
                    "type": "boolean",
                    "default": false,
                    "description": "`true` deletes every entry of the glossary before importing.",
                    "examples": [
                      false
                    ]
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The XLSX or CSV file, up to 25 MB. Send `file` or `uploadKey`."
                  },
                  "uploadKey": {
                    "type": "string",
                    "description": "Instead of `file`, in a JSON body: the `uploadKey` from Get an upload URL for a glossary file, once the file is in storage.",
                    "examples": [
                      "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65/staged-uploads/0c7d2e5a-9b1f-4c3d-8e6a-2f4b1d9c7a50.xlsx"
                    ]
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "xlsx",
                      "csv"
                    ],
                    "description": "Format of the file. Omit to use the file name's extension (`.csv` and `.tsv` read as CSV, anything else as XLSX).",
                    "examples": [
                      "xlsx"
                    ]
                  },
                  "replace": {
                    "type": "boolean",
                    "default": false,
                    "description": "`true` deletes every entry of the glossary before importing.",
                    "examples": [
                      false
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The file was imported. Counts of what changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlossaryImportResultDto"
                }
              }
            }
          },
          "400": {
            "description": "No file was sent in the `file` field (`No file was uploaded. Attach an XLSX or CSV file.`), the `uploadKey` cannot be used (`The upload could not be found. Please try uploading the file again.`, `That upload was already used. Please upload the file again.`, `The upload did not complete. Please try uploading the file again.`), or the file cannot be imported. The `message` says what to fix, e.g. `Row 3: \"Language\" must be a valid language code.`, `Unknown column \"…\".`, or a file with too many entries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The file is larger than 25 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Import a glossary file",
        "tags": [
          "Glossaries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:import`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/glossary/{id}/import-template": {
      "get": {
        "operationId": "download-a-glossary-template",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the glossary (`glossaryId`), from List glossaries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            }
          },
          {
            "name": "format",
            "required": false,
            "in": "query",
            "description": "File format. Defaults to `xlsx`.",
            "schema": {
              "enum": [
                "xlsx",
                "csv"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The template, as an attachment (`Content-Disposition: attachment; filename=\"<name>-import-template.xlsx\"`).",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {}
              },
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              },
              "text/csv; charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              },
              "text/csv; charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Download a glossary template",
        "tags": [
          "Glossaries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A starter XLSX or CSV file with the columns Import a glossary file reads, including a column for each language the glossary already holds.",
        "x-orbitdocs-order": 11,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/glossary/{id}/memories": {
      "get": {
        "operationId": "list-memories-using-a-glossary",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the glossary (`glossaryId`), from List glossaries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The memories that apply the glossary.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedMemoryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List memories using a glossary",
        "tags": [
          "Glossaries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The translation memories of your organization that apply this glossary, by `id` and name.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "description": "Replace the set of memories that apply this glossary. Send the complete list: memories you leave out stop applying it, so a retry is safe. Other glossaries those memories apply are not touched.",
        "operationId": "set-memories-using-a-glossary",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the glossary (`glossaryId`), from List glossaries.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetGlossaryMemoriesBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The memories that now apply the glossary.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedMemoryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a glossary or entry ID that does not exist in your organization and a value the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Set memories using a glossary",
        "tags": [
          "Glossaries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/glossary/import/upload/presign": {
      "post": {
        "operationId": "get-an-upload-url-for-a-glossary-file",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to `PUT` the file, and the `uploadKey` to send once it is there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the file is empty (`The file is empty.`) or larger than 25 MB (`The glossary file is larger than the 25 MB limit.`), or its extension or type is not one this step takes (`That isn't a glossary file this step takes (.xlsx, .csv, .tsv).`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many upload URLs were asked for in the last hour (`Too many uploads in the last hour. Please wait and try again.`), or too many uploads are waiting to be used (`Too many uploads are waiting to be used. Please finish or discard them, then try again.`). Also returned when the key exceeds its request rate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an upload URL for a glossary file",
        "tags": [
          "Glossaries"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:import`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For Import a glossary file, without a multipart form: an XLSX or CSV file of up to 25 MB. Returns a presigned `uploadUrl`. `PUT` the file to it within 10 minutes, with exactly `size` bytes and the `headers` returned, then send its `uploadKey` to Import a glossary file in a JSON body instead of the file. The file never passes through this API. An upload can be used once, and one not used within a day is deleted.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide": {
      "get": {
        "operationId": "list-style-guides",
        "parameters": [
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only guides whose name contains this text.",
            "schema": {
              "type": "string",
              "examples": [
                "brand"
              ]
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "The `nextCursor` from the previous page. Omit it for the first page.",
            "schema": {
              "type": "string",
              "examples": [
                "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0In0"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Guides per page, up to 200 (larger values are capped). Defaults to 50.",
            "schema": {
              "minimum": 1,
              "maximum": 200,
              "type": "string",
              "examples": [
                50
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of style guides.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuidePageDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List style guides",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Your organization's style guides, with their status and rule counts. Paginated with a cursor: pass `nextCursor` as `cursor` for the next page.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "description": "Create a style guide, with or without documents: sent in a `multipart/form-data` form, or put in storage with Get an upload URL for new style guides and named by their `uploadKeys` in a JSON body. With files, the guide starts `processing` while rules are extracted from them in the background: poll Get a style guide until `status` is `ready` or `failed`. Without files it starts `empty` and you add rules with Add a rule. Then link memories with Set memories using a style guide.",
        "operationId": "create-a-style-guide",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 256,
                    "description": "Name of the guide, unique within your organization. Up to 256 characters.",
                    "examples": [
                      "Brand voice 2026"
                    ]
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "Optional description, up to 2,000 characters.",
                    "examples": [
                      "House style for all consumer-facing copy."
                    ]
                  },
                  "files": {
                    "type": "array",
                    "items": {
                      "contentMediaType": "application/octet-stream"
                    },
                    "description": "Optional style guide documents: PDF, Word (.docx), Markdown (.md) or text (.txt), up to 25 MB each and 20 per request. Repeat the `files` field once per file. Rules are extracted from them in the background."
                  },
                  "uploadKeys": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string"
                    },
                    "description": "Instead of `files`, in a JSON body: the `uploadKey` of each document from Get an upload URL for new style guides, in the order of `fileLanguages`. Up to 20.",
                    "examples": [
                      [
                        "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65/staged-uploads/9a1c3e5b-7d2f-4b6a-8c0e-1f3a5b7d9c2e.pdf"
                      ]
                    ]
                  },
                  "fileLanguages": {
                    "type": "string",
                    "description": "Optional JSON array with one entry per file, in the same order: the BCP-47 languages that file is about (up to 50), or `[]` for any language. Omit it for any language for every file. In a JSON body, send the array itself or the same text.",
                    "examples": [
                      "[[\"hi-IN\"], []]"
                    ]
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 256,
                    "description": "Name of the guide, unique within your organization. Up to 256 characters.",
                    "examples": [
                      "Brand voice 2026"
                    ]
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "Optional description, up to 2,000 characters.",
                    "examples": [
                      "House style for all consumer-facing copy."
                    ]
                  },
                  "files": {
                    "type": "array",
                    "items": {
                      "contentMediaType": "application/octet-stream"
                    },
                    "description": "Optional style guide documents: PDF, Word (.docx), Markdown (.md) or text (.txt), up to 25 MB each and 20 per request. Repeat the `files` field once per file. Rules are extracted from them in the background."
                  },
                  "uploadKeys": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string"
                    },
                    "description": "Instead of `files`, in a JSON body: the `uploadKey` of each document from Get an upload URL for new style guides, in the order of `fileLanguages`. Up to 20.",
                    "examples": [
                      [
                        "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65/staged-uploads/9a1c3e5b-7d2f-4b6a-8c0e-1f3a5b7d9c2e.pdf"
                      ]
                    ]
                  },
                  "fileLanguages": {
                    "type": "string",
                    "description": "Optional JSON array with one entry per file, in the same order: the BCP-47 languages that file is about (up to 50), or `[]` for any language. Omit it for any language for every file. In a JSON body, send the array itself or the same text.",
                    "examples": [
                      "[[\"hi-IN\"], []]"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new style guide.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "`name` is missing or too long (`name is required`, `name must be 256 characters or fewer`), more than 20 files were sent (`Upload at most 20 files at a time; add the rest in another upload.`), `fileLanguages` is malformed or names an unsupported language (`fileLanguages must be a JSON array with one entry per file.`, `fileLanguages[<i>]: \"<code>\" is not a supported language code.`), a file is not a PDF, .docx, .md or .txt, `uploadKeys` repeats one (`uploadKeys must not repeat.`), or the `uploadKey` cannot be used (`The upload could not be found. Please try uploading the file again.`, `That upload was already used. Please upload the file again.`, `The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The style guide (or the file or rule in the path) does not exist in your organization (`Style guide '<id>' not found`, `File '<id>' not found`, `Rule '<id>' not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "Your organization already has a style guide with this name (`A style guide named '<name>' already exists`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "413": {
            "description": "A file is larger than 25 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Create a style guide",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}": {
      "get": {
        "operationId": "get-a-style-guide",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The style guide.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Get a style guide",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One style guide with its rules (in the order translation sends them), files, rule counts per language and the memories that follow it. Poll it while `status` is `processing`.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "update-a-style-guide",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStyleGuideDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated style guide.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or `name` is empty (`name must not be empty`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The style guide (or the file or rule in the path) does not exist in your organization (`Style guide '<id>' not found`, `File '<id>' not found`, `Rule '<id>' not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "Your organization already has a style guide with this name (`A style guide named '<name>' already exists`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update a style guide",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Rename a style guide or change its description. Send only the fields to change.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}/extract": {
      "post": {
        "description": "Rebuild every rule from the current files, in the background. This replaces all rules, including ones written or edited by hand. Poll Get a style guide while `status` is `processing`.",
        "operationId": "re-extract-style-guide-rules",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Extraction has started. The style guide, now `processing`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Re-extract style guide rules",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 10,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}/files": {
      "post": {
        "operationId": "add-style-guide-files",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "contentMediaType": "application/octet-stream"
                    },
                    "description": "The documents to add: PDF, Word (.docx), Markdown (.md) or text (.txt), up to 25 MB each and 20 per request. Repeat the `files` field once per file. Send `files` or `uploadKeys`."
                  },
                  "uploadKeys": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string"
                    },
                    "description": "Instead of `files`, in a JSON body: the `uploadKey` of each document from Get an upload URL for style guide files, in the order of `fileLanguages`. Up to 20.",
                    "examples": [
                      [
                        "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65/staged-uploads/9a1c3e5b-7d2f-4b6a-8c0e-1f3a5b7d9c2e.pdf"
                      ]
                    ]
                  },
                  "fileLanguages": {
                    "type": "string",
                    "description": "Optional JSON array with one entry per file, in the same order: the BCP-47 languages that file is about (up to 50), or `[]` for any language. In a JSON body, send the array itself or the same text.",
                    "examples": [
                      "[[\"mr-IN\"]]"
                    ]
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "contentMediaType": "application/octet-stream"
                    },
                    "description": "The documents to add: PDF, Word (.docx), Markdown (.md) or text (.txt), up to 25 MB each and 20 per request. Repeat the `files` field once per file. Send `files` or `uploadKeys`."
                  },
                  "uploadKeys": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string"
                    },
                    "description": "Instead of `files`, in a JSON body: the `uploadKey` of each document from Get an upload URL for style guide files, in the order of `fileLanguages`. Up to 20.",
                    "examples": [
                      [
                        "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65/staged-uploads/9a1c3e5b-7d2f-4b6a-8c0e-1f3a5b7d9c2e.pdf"
                      ]
                    ]
                  },
                  "fileLanguages": {
                    "type": "string",
                    "description": "Optional JSON array with one entry per file, in the same order: the BCP-47 languages that file is about (up to 50), or `[]` for any language. In a JSON body, send the array itself or the same text.",
                    "examples": [
                      "[[\"mr-IN\"]]"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The style guide with the new files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "No file was sent (`Upload at least one file — a PDF, Word (.docx), Markdown (.md) or text (.txt) document.`), more than 20 files were sent, `fileLanguages` is malformed or names an unsupported language, a file is not a PDF, .docx, .md or .txt, `uploadKeys` repeats one (`uploadKeys must not repeat.`), or the `uploadKey` cannot be used (`The upload could not be found. Please try uploading the file again.`, `That upload was already used. Please upload the file again.`, `The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The style guide (or the file or rule in the path) does not exist in your organization (`Style guide '<id>' not found`, `File '<id>' not found`, `Rule '<id>' not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "413": {
            "description": "A file is larger than 25 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Add style guide files",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add documents to a style guide: sent in a `multipart/form-data` form, or put in storage with Get an upload URL for style guide files and named by their `uploadKeys` in a JSON body. Rules are extracted from them in the background and added to the guide; existing rules, including hand edits, are kept. Poll Get a style guide while `status` is `processing`.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}/files/{fileId}": {
      "patch": {
        "operationId": "update-a-style-guide-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          },
          {
            "name": "fileId",
            "required": true,
            "in": "path",
            "description": "ID of the file, from `files` in Get a style guide.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "9c1e3a5b-7d2f-4a6c-8e0b-2d4f6a8c0e1b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStyleGuideFileDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The style guide.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "A language is not a supported BCP-47 code, or there are more than 50.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The style guide (or the file or rule in the path) does not exist in your organization (`Style guide '<id>' not found`, `File '<id>' not found`, `Rule '<id>' not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update a style guide file",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change the languages a document is about. Its rules are extracted again for the new languages, in the background.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}/files/{fileId}/content": {
      "get": {
        "description": "The bytes of an uploaded document, with its own media type. Shown inline by default; send `download=true` to get it as an attachment.",
        "operationId": "download-a-style-guide-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          },
          {
            "name": "fileId",
            "required": true,
            "in": "path",
            "description": "ID of the file, from `files` in Get a style guide.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "9c1e3a5b-7d2f-4a6c-8e0b-2d4f6a8c0e1b"
              ]
            }
          },
          {
            "name": "download",
            "required": false,
            "in": "query",
            "description": "`true` to get the file as an attachment instead of inline.",
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file. `Content-Disposition` is `inline` (or `attachment` with `download=true`) and carries the file name.",
            "content": {
              "application/pdf": {
                "schema": {}
              },
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document": {
                "schema": {}
              },
              "text/markdown; charset=utf-8": {
                "schema": {}
              },
              "text/plain; charset=utf-8": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Download a style guide file",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}/memories": {
      "get": {
        "operationId": "list-memories-using-a-style-guide",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The memories, by name.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedMemoryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List memories using a style guide",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The translation memories of your organization that follow a style guide, by name.",
        "x-orbitdocs-order": 11,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "description": "Set which translation memories follow a style guide. Send the complete list: memories left out stop following it, so a retry is safe. A memory follows one guide, so adding it here moves it off its previous guide. Only VitraTM memories your organization owns are linked; other IDs are ignored.",
        "operationId": "set-memories-using-a-style-guide",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetStyleGuideMemoriesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The memories that now follow the guide.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedMemoryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Set memories using a style guide",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 12,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}/rules": {
      "post": {
        "description": "Add a rule by hand. `languages: []` makes it apply to every language. If another rule already has the same text (ignoring case), the languages are added to that rule instead, and `outcome.merged` is true.",
        "operationId": "add-a-rule",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStyleGuideRuleDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The style guide with the rule, and `outcome: { ruleId, merged }`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideRuleMutationDto"
                }
              }
            }
          },
          "400": {
            "description": "The guide would go over a cap (`A style guide may hold at most 1000 rules.`, `<language> may have at most 100 active rules.`, `At most 100 active rules may apply to every language.`), or a field failed validation (languages must be supported BCP-47 codes such as `hi-IN`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The style guide (or the file or rule in the path) does not exist in your organization (`Style guide '<id>' not found`, `File '<id>' not found`, `Rule '<id>' not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Add a rule",
        "tags": [
          "Style guide rules"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}/rules/{ruleId}": {
      "patch": {
        "description": "Change a rule's text or languages, or turn it on or off. Only the fields you send change. A text that another rule already has answers 409 with `details.code: \"RULE_EXISTS\"` and that rule's `ruleId`, unless you send `merge: true` to fold the two rules together.",
        "operationId": "update-a-rule",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          },
          {
            "name": "ruleId",
            "required": true,
            "in": "path",
            "description": "ID of the rule, from `rules` in Get a style guide.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStyleGuideRuleDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The style guide with the change, and `outcome: { ruleId, merged }`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideRuleMutationDto"
                }
              }
            }
          },
          "400": {
            "description": "The guide would go over a cap (`A style guide may hold at most 1000 rules.`, `<language> may have at most 100 active rules.`, `At most 100 active rules may apply to every language.`), or a field failed validation (languages must be supported BCP-47 codes such as `hi-IN`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The style guide (or the file or rule in the path) does not exist in your organization (`Style guide '<id>' not found`, `File '<id>' not found`, `Rule '<id>' not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "Another rule already has this text (`Another rule already says this.`, `details: { code: \"RULE_EXISTS\", ruleId }`). Send `merge: true` to combine them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update a rule",
        "tags": [
          "Style guide rules"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}/rules/bulk": {
      "post": {
        "description": "Apply one operation to many rules: add, remove or set languages, turn them on or off, or delete them. `removeLanguages` deletes a rule left with no language; it never turns a rule into one for every language. `outcome` counts what changed.",
        "operationId": "update-rules-in-bulk",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkStyleGuideRulesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The style guide after the change, and `outcome: { op, updated, deleted, unchanged, missing }`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideRuleMutationDto"
                }
              }
            }
          },
          "400": {
            "description": "`addLanguages` or `removeLanguages` was sent without languages (`<op> needs at least one language.`), or The guide would go over a cap (`A style guide may hold at most 1000 rules.`, `<language> may have at most 100 active rules.`, `At most 100 active rules may apply to every language.`), or a field failed validation (languages must be supported BCP-47 codes such as `hi-IN`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The style guide (or the file or rule in the path) does not exist in your organization (`Style guide '<id>' not found`, `File '<id>' not found`, `Rule '<id>' not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update rules in bulk",
        "tags": [
          "Style guide rules"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}/rules/copy-language": {
      "post": {
        "operationId": "copy-rules-to-another-language",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyStyleGuideLanguageDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The style guide after the change, and `outcome: { updated }`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideRuleMutationDto"
                }
              }
            }
          },
          "400": {
            "description": "`from` and `to` are the same (`Pick a different language to copy to.`), or The guide would go over a cap (`A style guide may hold at most 1000 rules.`, `<language> may have at most 100 active rules.`, `At most 100 active rules may apply to every language.`), or a field failed validation (languages must be supported BCP-47 codes such as `hi-IN`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The style guide (or the file or rule in the path) does not exist in your organization (`Style guide '<id>' not found`, `File '<id>' not found`, `Rule '<id>' not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Copy rules to another language",
        "tags": [
          "Style guide rules"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Make the rules for one language apply to another one too: `to` is added to every rule naming `from`. Rules for every language already apply to both and are left alone.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/{id}/rules/reorder": {
      "post": {
        "description": "Put rules in a new order, which is also the order translation sends them in. The rules you list swap among the positions they already hold, so you can reorder a filtered list without moving other rules.",
        "operationId": "reorder-rules",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the style guide, from List style guides.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderStyleGuideRulesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The style guide in its new order, and `outcome: { moved }`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideRuleMutationDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID repeats (`ruleIds must not repeat.`), or a field failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The style guide (or the file or rule in the path) does not exist in your organization (`Style guide '<id>' not found`, `File '<id>' not found`, `Rule '<id>' not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "409": {
            "description": "A rule in the list is no longer in the guide (`The rules changed since they were loaded. Reload and try again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleGuideEditErrorDto"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Reorder rules",
        "tags": [
          "Style guide rules"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/files/upload/presign": {
      "post": {
        "operationId": "get-an-upload-url-for-style-guide-files",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to `PUT` the file, and the `uploadKey` to send once it is there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the file is empty (`The file is empty.`) or larger than 25 MB (`The style guide document is larger than the 25 MB limit.`), or its extension or type is not one this step takes (`That isn't a style guide document this step takes (.pdf, .docx, .md, .markdown, .txt).`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many upload URLs were asked for in the last hour (`Too many uploads in the last hour. Please wait and try again.`), or too many uploads are waiting to be used (`Too many uploads are waiting to be used. Please finish or discard them, then try again.`). Also returned when the key exceeds its request rate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an upload URL for style guide files",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For each document of Add style guide files, without a multipart form: a PDF, Word (.docx), Markdown (.md) or text (.txt) file of up to 25 MB. Returns a presigned `uploadUrl`. `PUT` the file to it within 10 minutes, with exactly `size` bytes and the `headers` returned, then send the `uploadKey` of every document, in the order of `fileLanguages`, as `uploadKeys` to Add style guide files in a JSON body. The file never passes through this API. An upload can be used once, and one not used within a day is deleted.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/style-guide/upload/presign": {
      "post": {
        "operationId": "get-an-upload-url-for-new-style-guides",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to `PUT` the file, and the `uploadKey` to send once it is there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the file is empty (`The file is empty.`) or larger than 25 MB (`The style guide document is larger than the 25 MB limit.`), or its extension or type is not one this step takes (`That isn't a style guide document this step takes (.pdf, .docx, .md, .markdown, .txt).`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many upload URLs were asked for in the last hour (`Too many uploads in the last hour. Please wait and try again.`), or too many uploads are waiting to be used (`Too many uploads are waiting to be used. Please finish or discard them, then try again.`). Also returned when the key exceeds its request rate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an upload URL for new style guides",
        "tags": [
          "Style guides"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For each document of Create a style guide, without a multipart form: a PDF, Word (.docx), Markdown (.md) or text (.txt) file of up to 25 MB. Returns a presigned `uploadUrl`. `PUT` the file to it within 10 minutes, with exactly `size` bytes and the `headers` returned, then send the `uploadKey` of every document, in the order of `fileLanguages`, as `uploadKeys` to Create a style guide in a JSON body. The file never passes through this API. An upload can be used once, and one not used within a day is deleted.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base": {
      "get": {
        "operationId": "list-term-bases",
        "parameters": [
          {
            "name": "tmId",
            "required": false,
            "in": "query",
            "description": "Only the term bases this translation memory uses. Pass the memory's `tmRef` (the ID the translation service gives it), not its `id`.",
            "schema": {
              "examples": [
                "4f9a2c7e1b3d4e5f8a6c0b2d9e1f3a5c"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Page size, 1 to 200. Default 50.",
            "schema": {
              "minimum": 1,
              "maximum": 200,
              "type": "number",
              "examples": [
                50
              ]
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`nextCursor` from the previous page. Omit it for the first page.",
            "schema": {
              "examples": [
                "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0VDEwOjMyOjA3LjAwMFoifQ"
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only term bases whose name contains this text.",
            "schema": {
              "examples": [
                "product"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of term bases.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TermBasePageDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List term bases",
        "tags": [
          "Term bases"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Your organization's term bases, newest first, one page at a time. Follow `nextCursor` while `hasMore` is true.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "create-a-term-base",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTermBaseBodyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The term base was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TermBaseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The name is used by another term base (`A term base with this name already exists.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. This includes a missing or too long `name`, which the translation service rejects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 502,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Create a term base",
        "tags": [
          "Term bases"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Create an empty term base. Add terminology with Create a concept or Import a term base file, then attach it to memories with Set memories using a term base.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base/{id}": {
      "get": {
        "operationId": "get-a-term-base",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The term base.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TermBaseDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. An `id` that is not one of your term bases also returns 502.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 502,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Get a term base",
        "tags": [
          "Term bases"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One term base with its concept and term counts and the memories that use it.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "update-a-term-base",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTermBaseBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated term base.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TermBaseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The new name is used by another term base (`A term base with this name already exists.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update a term base",
        "tags": [
          "Term bases"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Rename a term base or change its description. Only the fields you send change.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base/{id}/concepts": {
      "get": {
        "description": "Concepts in a term base, each with all its terms, one page at a time. The filters apply to terms, but the page holds concepts: a concept is returned when any of its terms matches.",
        "operationId": "list-concepts",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Page size, 1 to 200. Default 50.",
            "schema": {
              "minimum": 1,
              "maximum": 200,
              "type": "number",
              "examples": [
                50
              ]
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`nextCursor` from the previous page. Omit it for the first page.",
            "schema": {
              "examples": [
                "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0VDEwOjMyOjA3LjAwMFoifQ"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Only concepts with a term in this review state.",
            "schema": {
              "enum": [
                "new",
                "approved",
                "rejected"
              ],
              "type": "string"
            }
          },
          {
            "name": "languages",
            "required": false,
            "in": "query",
            "description": "Comma-separated BCP-47 codes. Only concepts with a term in one of these languages.",
            "schema": {
              "examples": [
                "en-US,fr-FR"
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only concepts with a term containing this text.",
            "schema": {
              "examples": [
                "dashboard"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of concepts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConceptPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List concepts",
        "tags": [
          "Concepts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "create-a-concept",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConceptBodyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The concept was created, with its terms.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConceptDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The concept would hold the same term twice in one language (`This concept already has that term in this language.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Create a concept",
        "tags": [
          "Concepts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add a concept with its terms in one call: for example the source term and its approved translations. Each new language is added to the term base.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base/{id}/concepts/{conceptId}": {
      "patch": {
        "operationId": "update-a-concept",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          },
          {
            "name": "conceptId",
            "required": true,
            "in": "path",
            "description": "ID of the concept, from List concepts.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c7e9a1b3-5d2f-4c6e-9a8b-0f1e2d3c4b5a"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConceptBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated concept, with its terms.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConceptDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The concept would hold the same term twice in one language (`This concept already has that term in this language.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update a concept",
        "tags": [
          "Concepts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change a concept's fields. Only the fields you send change. Send `terms` to replace the concept's whole term set at once: terms you leave out are deleted.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base/{id}/concepts/{conceptId}/terms": {
      "post": {
        "operationId": "add-a-term-to-a-concept",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          },
          {
            "name": "conceptId",
            "required": true,
            "in": "path",
            "description": "ID of the concept, from List concepts.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c7e9a1b3-5d2f-4c6e-9a8b-0f1e2d3c4b5a"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTermBodyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The term was added.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TermBaseTermDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The concept already has this term in this language (`This concept already has that term in this language.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Add a term to a concept",
        "tags": [
          "Concepts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add one term to an existing concept, such as a translation in a new language or a synonym.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base/{id}/export": {
      "get": {
        "operationId": "export-a-term-base",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          },
          {
            "name": "format",
            "required": false,
            "in": "query",
            "description": "File format. Default `xlsx`; any other value is also exported as XLSX.",
            "schema": {
              "enum": [
                "xlsx",
                "csv",
                "tbx"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file, as an attachment (`Content-Disposition: attachment; filename=\"<term base name>.<format>\"`).",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {}
              },
              "text/csv; charset=utf-8": {
                "schema": {}
              },
              "application/xml; charset=utf-8": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Export a term base",
        "tags": [
          "Term bases"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Download every concept and term as an XLSX (default), CSV or TBX file. The file comes as an attachment named after the term base.",
        "x-orbitdocs-order": 10,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base/{id}/import": {
      "post": {
        "description": "Add terminology from an XLSX, CSV or TBX file (`multipart/form-data`, up to 25 MB), or one put in storage with Get an upload URL for term base files and named by its `uploadKey` in a JSON body. Start from Download a term base template. A term is identified by its concept, language and text, so importing the same file again adds nothing. Send `replace=true` to empty the term base first.",
        "operationId": "import-a-term-base-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The XLSX, CSV or TBX file, up to 25 MB. Send `file` or `uploadKey`."
                  },
                  "uploadKey": {
                    "type": "string",
                    "description": "Instead of `file`, in a JSON body: the `uploadKey` from Get an upload URL for term base files, once the file is in storage.",
                    "examples": [
                      "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65/staged-uploads/0c7d2e5a-9b1f-4c3d-8e6a-2f4b1d9c7a50.xlsx"
                    ]
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "xlsx",
                      "csv",
                      "tbx"
                    ],
                    "description": "Format of the file. Omit it to use the file name's extension; an unknown extension is read as XLSX.",
                    "examples": [
                      "tbx"
                    ]
                  },
                  "replace": {
                    "type": "boolean",
                    "default": false,
                    "description": "`true` deletes every concept in the term base before the import.",
                    "examples": [
                      false
                    ]
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The XLSX, CSV or TBX file, up to 25 MB. Send `file` or `uploadKey`."
                  },
                  "uploadKey": {
                    "type": "string",
                    "description": "Instead of `file`, in a JSON body: the `uploadKey` from Get an upload URL for term base files, once the file is in storage.",
                    "examples": [
                      "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65/staged-uploads/0c7d2e5a-9b1f-4c3d-8e6a-2f4b1d9c7a50.xlsx"
                    ]
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "xlsx",
                      "csv",
                      "tbx"
                    ],
                    "description": "Format of the file. Omit it to use the file name's extension; an unknown extension is read as XLSX.",
                    "examples": [
                      "tbx"
                    ]
                  },
                  "replace": {
                    "type": "boolean",
                    "default": false,
                    "description": "`true` deletes every concept in the term base before the import.",
                    "examples": [
                      false
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The file was imported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TermBaseImportResultDto"
                }
              }
            }
          },
          "400": {
            "description": "No file was sent in the `file` field (`No file was uploaded. Attach an XLSX, CSV or TBX file.`), the `uploadKey` cannot be used (`The upload could not be found. Please try uploading the file again.`, `That upload was already used. Please upload the file again.`, `The upload did not complete. Please try uploading the file again.`), or the file cannot be imported. The `message` says what to fix, e.g. `Row 2: \"Language\" is required when \"Term\" is filled.`, `The file has no rows.`, or a file with too many concepts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The file is larger than 25 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 502,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Import a term base file",
        "tags": [
          "Term bases"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:import`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base/{id}/import-template": {
      "get": {
        "operationId": "download-a-term-base-template",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          },
          {
            "name": "format",
            "required": false,
            "in": "query",
            "description": "File format. Default `xlsx`.",
            "schema": {
              "enum": [
                "xlsx",
                "csv",
                "tbx"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The template, as an attachment (`Content-Disposition: attachment; filename=\"<term base name>-import-template.<format>\"`).",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {}
              },
              "text/csv; charset=utf-8": {
                "schema": {}
              },
              "application/xml; charset=utf-8": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`. A `format` other than `xlsx`, `csv` or `tbx` also returns 502.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 502,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Download a term base template",
        "tags": [
          "Term bases"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A starter file for Import a term base file, with the expected columns, a worked example and a blank row for each language the term base already holds.",
        "x-orbitdocs-order": 11,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base/{id}/memories": {
      "get": {
        "description": "The translation memories of your organization that apply this term base when they translate. Memories shared with you by another organization are not listed.",
        "operationId": "list-memories-using-a-term-base",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The memories, by ID and name.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedMemoryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List memories using a term base",
        "tags": [
          "Term bases"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "description": "Choose which of your translation memories apply this term base. Send the complete list: memories you leave out stop using it, so a retry is safe. Other term bases on those memories are kept. Returns the memories that use it now.",
        "operationId": "set-memories-using-a-term-base",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTermBaseMemoriesBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The memories that use the term base now.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedMemoryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Set memories using a term base",
        "tags": [
          "Term bases"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base/{id}/terms/{termId}": {
      "patch": {
        "operationId": "update-a-concept-term",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the term base (`termBaseId`), from List term bases.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            }
          },
          {
            "name": "termId",
            "required": true,
            "in": "path",
            "description": "ID of the term (`terms[].id` in List concepts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e1f3a5c7-9b2d-4e6f-8a0c-1d3e5f7a9b2c"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTermBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated term.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TermBaseTermDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The concept already has this term in this language (`This concept already has that term in this language.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update a concept term",
        "tags": [
          "Concepts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change one term, for example its text or review state. Only the fields you send change.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/term-base/import/upload/presign": {
      "post": {
        "operationId": "get-an-upload-url-for-term-base-files",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to `PUT` the file, and the `uploadKey` to send once it is there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the file is empty (`The file is empty.`) or larger than 25 MB (`The term base file is larger than the 25 MB limit.`), or its extension or type is not one this step takes (`That isn't a term base file this step takes (.xlsx, .xls, .csv, .tbx, .xml).`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many upload URLs were asked for in the last hour (`Too many uploads in the last hour. Please wait and try again.`), or too many uploads are waiting to be used (`Too many uploads are waiting to be used. Please finish or discard them, then try again.`). Also returned when the key exceeds its request rate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an upload URL for term base files",
        "tags": [
          "Term bases"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:import`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For Import a term base file, without a multipart form: an XLSX, CSV or TBX file of up to 25 MB. Returns a presigned `uploadUrl`. `PUT` the file to it within 10 minutes, with exactly `size` bytes and the `headers` returned, then send its `uploadKey` to Import a term base file in a JSON body instead of the file. The file never passes through this API. An upload can be used once, and one not used within a day is deleted.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory": {
      "get": {
        "operationId": "list-translation-memories",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number, from 1.",
            "schema": {
              "minimum": 1,
              "default": 1,
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Memories per page, 1 to 100.",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "type": "number",
              "examples": [
                20
              ]
            }
          },
          {
            "name": "keyword",
            "required": false,
            "in": "query",
            "description": "Only memories whose name or description contains this text (not case-sensitive).",
            "schema": {
              "type": "string",
              "examples": [
                "marketing"
              ]
            }
          },
          {
            "name": "sourceLanguage",
            "required": false,
            "in": "query",
            "description": "Only memories with this primary source language (BCP-47). A VitraTM memory's extra source languages are not matched.",
            "schema": {
              "type": "string",
              "examples": [
                "en-US"
              ]
            }
          },
          {
            "name": "provider",
            "required": false,
            "in": "query",
            "description": "Only memories on this provider.",
            "schema": {
              "type": "string",
              "enum": [
                "vitratm",
                "phrase"
              ],
              "examples": [
                "vitratm"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of memories, with `total` and counts per provider.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedTranslationMemoriesDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List translation memories",
        "tags": [
          "Memories"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Memories your organization owns and memories its parent organization shared with it, newest first. Paginated with `page` and `limit`; filter by name, source language or provider.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "create-a-translation-memory",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTmDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new memory. `styleGuideId` is not echoed: read it with Get the style guide of a memory.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationMemoryDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation (for example `Context is required`, `Phrase project ID is required`, `At least one target language is required`), `context` was sent for Phrase (`Context is only supported for VitraTM translation memories.`), or the provider memory to link is missing or taken (`tmRef is required when tmMode=existing.`, `No <provider> memory found for tmRef '<tmRef>'.`, `This <provider> memory is already linked to a translation memory.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Your organization already has a memory with this name (`A translation memory named \"<name>\" already exists in this organization.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The memory was made on the provider but could not be saved (`Failed to create translation memory`). Retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Create a translation memory",
        "tags": [
          "Memories"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Create a translation memory on VitraTM (the default) or Phrase. By default a new memory is made on the provider; with `tmMode: \"existing\"` you link one that is already there (from List provider memories), and its languages are used. For VitraTM, `context` is required. The provider cannot be changed later. Keep the returned `id`: every other call takes it.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}": {
      "get": {
        "operationId": "get-a-translation-memory",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The memory.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationMemoryDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a translation memory",
        "tags": [
          "Memories"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One memory with its languages, settings and access. For VitraTM it also returns `context` and `additionalSourceLanguages`, read live from the provider; if that read fails they come back empty rather than failing the call.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "operationId": "update-a-translation-memory",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTmDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated memory.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationMemoryDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, `context` was sent for Phrase (`Context is only supported for VitraTM translation memories.`) or is blank (`Context cannot be empty.`), a Phrase project ID was cleared (`Phrase project ID is required.`), or the provider rejected the new engine or context (`Could not switch the translation engine to \"<engine>\" — …`, `Could not save the context — …`); nothing was changed then. Also when `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "A memory shared with you cannot have its style guide changed (`Only the organization that owns this memory can change its style guide.`), or the key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update a translation memory",
        "tags": [
          "Memories"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change the name, description, context, engine or Phrase settings, add target languages, or link a style guide. Send only the fields to change. The provider, `tmRef` and Smart Match cannot be changed, and target languages can only be added.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/export": {
      "get": {
        "description": "Download the whole memory, or one source language and some target languages, as a TMX, XLIFF, XLSX, CSV or TSV file. VitraTM memories only.",
        "operationId": "export-a-translation-memory",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          },
          {
            "name": "targetLanguages",
            "required": false,
            "in": "query",
            "description": "Only these target languages, as comma-separated BCP-47 codes. Omit it for all.",
            "schema": {
              "examples": [
                "hi-IN,fr-FR"
              ]
            }
          },
          {
            "name": "sourceLanguage",
            "required": false,
            "in": "query",
            "description": "Only terms with this source language (BCP-47). Omit it for all source languages.",
            "schema": {
              "examples": [
                "en-US"
              ]
            }
          },
          {
            "name": "format",
            "required": false,
            "in": "query",
            "description": "File format. Defaults to `tmx`.",
            "schema": {
              "enum": [
                "tmx",
                "xliff",
                "xlsx",
                "csv",
                "tsv"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file, as an attachment (`Content-Disposition: attachment; filename=\"…\"`).",
            "content": {
              "application/x-tmx+xml": {
                "schema": {}
              },
              "application/xliff+xml": {
                "schema": {}
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {}
              },
              "text/csv": {
                "schema": {}
              },
              "text/tab-separated-values": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "`format` is not allowed (`Unsupported format '<format>'. Use one of: tmx, xliff, xlsx, csv, tsv.`), the memory is on Phrase (`File import and export are not available for 'phrase' translation memories.`), or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Export a translation memory",
        "tags": [
          "Imports and exports"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/glossaries": {
      "get": {
        "operationId": "list-attached-glossaries",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The attached glossaries.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GlossaryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List attached glossaries",
        "tags": [
          "Linked resources"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The glossaries a memory applies when it translates. Empty for Phrase memories.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "description": "Replace the glossaries a memory applies. Send the complete list: glossaries left out are detached, so a retry is safe. VitraTM memories only.",
        "operationId": "set-attached-glossaries",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetMemoryGlossariesBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The glossaries now attached.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GlossaryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The memory is on Phrase (`Glossaries are not available for this memory's provider.`), or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Set attached glossaries",
        "tags": [
          "Linked resources"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/glossary-terminology": {
      "get": {
        "description": "The glossary entries a memory applies to its source language and one target language, whether or not a text uses them: keep verbatim (`dnt`), the wording to use (`binding`), or a description only (`context`). Use it to show translators the glossary beside the terms. `available: false` means glossaries do not apply to this memory (a Phrase memory, or an Azure or DeepL engine, which translates without them), which is not the same as an empty list.",
        "operationId": "get-glossary-entries-for-a-memory",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          },
          {
            "name": "targetLanguage",
            "required": true,
            "in": "query",
            "description": "Target language to return entries for: a BCP-47 code, or a language name such as `hindi_india`, which is converted.",
            "schema": {
              "type": "string",
              "examples": [
                "hi-IN"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The glossary entries for the language pair.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlossaryTerminologyResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get glossary entries for a memory",
        "tags": [
          "Linked resources"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/import-template": {
      "get": {
        "operationId": "download-an-import-template",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          },
          {
            "name": "format",
            "required": false,
            "in": "query",
            "description": "File format of the template. Defaults to `xlsx`.",
            "schema": {
              "enum": [
                "xlsx",
                "csv",
                "tsv",
                "tmx"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The template, as an attachment (`Content-Disposition: attachment; filename=\"…\"`).",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {}
              },
              "text/csv": {
                "schema": {}
              },
              "text/tab-separated-values": {
                "schema": {}
              },
              "application/x-tmx+xml": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "`format` is not allowed (`Templates are available as: xlsx, csv, tsv, tmx.`), the memory is on Phrase (`File import and export are not available for 'phrase' translation memories.`), or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Download an import template",
        "tags": [
          "Imports and exports"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A starter file for Import a file, with columns for the memory's source and target languages. `xlsx`, `csv` and `tsv` are templates to fill in; `tmx` is a sample of the shape a CAT tool export should have. VitraTM memories only.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/shareable-orgs": {
      "get": {
        "operationId": "list-shareable-organizations",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organizations, by name.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TmOrganizationDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Only the organization that owns the memory can manage its sharing (`Only the owner organization can manage sharing for this translation memory.`), or the key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List shareable organizations",
        "tags": [
          "Sharing"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Your organization's direct child organizations that a memory you own is not shared with yet.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/shares": {
      "get": {
        "operationId": "list-shares",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organizations, by name. Empty when the memory is not shared.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TmOrganizationDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Only the organization that owns the memory can manage its sharing (`Only the owner organization can manage sharing for this translation memory.`), or the key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List shares",
        "tags": [
          "Sharing"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The child organizations a memory you own is shared with, by name.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "share-a-translation-memory",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTmDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Every organization the memory is now shared with.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TmOrganizationDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "An ID is not a direct child of your organization (`These orgs are not child orgs of the owner: <ids>`), `orgIds` is empty (`At least one org is required`), or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Only the organization that owns the memory can manage its sharing (`Only the owner organization can manage sharing for this translation memory.`), or the key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Share a translation memory",
        "tags": [
          "Sharing"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:share`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Share a memory you own with one or more of your direct child organizations. They can then translate with it and read and edit its terms, under their own permissions; only you manage its sharing. Sharing again with an organization that already has access changes nothing.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/style-guide": {
      "get": {
        "description": "The style guidance a memory's translations follow. For VitraTM, `content` holds exactly the rules translation sends (rules for every language plus those for `targetLanguage`) and `styleGuide` names the organization style guide. Phrase does not expose a guide's content, so it returns `guide`, a name and a link into Phrase. If the provider cannot be read, you get `available: false` and a `warning`, not an error.",
        "operationId": "get-the-style-guide-of-a-memory",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          },
          {
            "name": "targetLanguage",
            "required": false,
            "in": "query",
            "description": "Target language: a BCP-47 code, or a language name such as `hindi_india`. VitraTM adds that language's rules to the general ones (omit it for every language's rules); Phrase picks the guide for that locale.",
            "schema": {
              "type": "string",
              "examples": [
                "hi-IN"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The style guide that applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemoryStyleGuideDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get the style guide of a memory",
        "tags": [
          "Linked resources"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "description": "Make a VitraTM memory follow one of your organization's style guides, or send `styleGuideId: null` to stop. A memory follows one guide at a time. Only the organization that owns the memory can change it. Returns the same as Get the style guide of a memory, for all languages.",
        "operationId": "set-the-style-guide-of-a-memory",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTmStyleGuideDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The style guide that now applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemoryStyleGuideDto"
                }
              }
            }
          },
          "400": {
            "description": "The memory is on Phrase (`Style guides are available for VitraTM memories only.`), or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The memory was shared with you (`Only the organization that owns this memory can change its style guide.`), or the key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Set the style guide of a memory",
        "tags": [
          "Linked resources"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/term-bases": {
      "get": {
        "operationId": "list-attached-term-bases",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The attached term bases.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TermBaseDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List attached term bases",
        "tags": [
          "Linked resources"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The term bases a memory uses when it translates. Empty for Phrase memories, whose term bases are managed in Phrase.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "description": "Replace the term bases a memory uses. Send the complete list: bases left out are detached, so a retry is safe. VitraTM memories only. To attach one base to many memories, use Set memories using a term base.",
        "operationId": "set-attached-term-bases",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetMemoryTermBasesBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The term bases now attached.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TermBaseDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The memory is on Phrase (`Term bases are not available for this memory's provider.`), or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Set attached term bases",
        "tags": [
          "Linked resources"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/terminology": {
      "get": {
        "description": "The approved terms for the memory's source language and one target language: from the term bases attached to a VitraTM memory, or to a Phrase memory's project. Use it to show translators the words to use. `available: false` means the provider has no terminology, which is not the same as an empty list.",
        "operationId": "get-terminology-for-a-memory",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          },
          {
            "name": "targetLanguage",
            "required": true,
            "in": "query",
            "description": "Target language to return terms for: a BCP-47 code, or a language name such as `hindi_india`, which is converted.",
            "schema": {
              "type": "string",
              "examples": [
                "hi-IN"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The terms for the language pair.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TerminologyResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Get terminology for a memory",
        "tags": [
          "Linked resources"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/terms": {
      "get": {
        "operationId": "list-terms",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "The `nextCursor` from the previous page. Omit it for the first page.",
            "schema": {
              "type": "string",
              "examples": [
                "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0In0"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Terms per page, 1 to 200.",
            "schema": {
              "minimum": 1,
              "maximum": 200,
              "default": 50,
              "type": "number",
              "examples": [
                50
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only terms whose source text matches this text (fuzzy).",
            "schema": {
              "type": "string",
              "examples": [
                "account"
              ]
            }
          },
          {
            "name": "language",
            "required": false,
            "in": "query",
            "description": "Only terms that have a translation in this target language (BCP-47).",
            "schema": {
              "type": "string",
              "examples": [
                "hi-IN"
              ]
            }
          },
          {
            "name": "sourceLanguage",
            "required": false,
            "in": "query",
            "description": "Only terms with this source language (BCP-47). VitraTM only; Phrase memories always list their primary source.",
            "schema": {
              "type": "string",
              "examples": [
                "en-US"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Only terms with a translation at this review status; each term then lists only those translations. VitraTM only.",
            "schema": {
              "type": "string",
              "enum": [
                "unverified",
                "verified",
                "approved"
              ],
              "examples": [
                "unverified"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of terms.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TmTermPageDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List terms",
        "tags": [
          "Terms"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The terms stored in a memory: each source text with its translations and their review status. Filter by text, target language, source language or status. Paginated with a cursor: pass `nextCursor` as `cursor` for the next page. `total` comes only with the first page.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "operationId": "update-a-term",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertTermDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The translation was saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TmSuccessResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation (a language must be a supported BCP-47 code such as `en-US`), a Phrase memory got another source language (`Additional source languages are not supported by the 'phrase' provider.`), or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Update a term",
        "tags": [
          "Terms"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Set the translation of a source text in one target language, replacing the stored one. If the term or language does not exist yet, it is added. The status goes back to `unverified` unless you send `status`.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/terms/import": {
      "post": {
        "operationId": "import-terms",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportTermsDto"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The import has started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TmImportQueuedDto"
                }
              }
            }
          },
          "400": {
            "description": "`terms` is empty or an item failed validation (languages must be supported BCP-47 codes such as `en-US`), a Phrase memory got another source language (`Additional source languages are not supported by the 'phrase' provider.`), or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Import terms",
        "tags": [
          "Imports and exports"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add translations to a memory from JSON, in the background. Each item is one source text and one target language; items with the same source text become one term. Existing translations are overwritten, and new target languages are added to the memory. Returns an `operationId` at once: poll Get an import until `status` is `COMPLETED` or `FAILED`.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/terms/import-file": {
      "post": {
        "description": "Import a TMX, XLIFF, XLSX, CSV or TSV file (up to 25 MB) into a VitraTM memory, in the background. Send the file in a `multipart/form-data` form, or put it in storage with Get an upload URL for a file import and send its `uploadKey` in a JSON body. Every unit must name its source language and every translation its target language; download a starter file with Download an import template. Translations without a status in the file get `defaultStatus`. Returns what was found in the file and an `operationId` to poll with Get an import.",
        "operationId": "import-a-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The file to import, up to 25 MB, in the `file` form field. Give it its real extension (`.tmx`, `.xliff`, `.xlf`, `.xlsx`, `.csv`, `.tsv`) or send `format`. Send `file` or `uploadKey`."
                  },
                  "uploadKey": {
                    "type": "string",
                    "description": "Instead of `file`, in a JSON body: the `uploadKey` from Get an upload URL for a file import, once the file is in storage.",
                    "examples": [
                      "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65/staged-uploads/0c7d2e5a-9b1f-4c3d-8e6a-2f4b1d9c7a50.xlsx"
                    ]
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "tmx",
                      "xliff",
                      "xlsx",
                      "csv",
                      "tsv"
                    ],
                    "description": "The file format. Omit it to detect the format from the file.",
                    "examples": [
                      "tmx"
                    ]
                  },
                  "defaultStatus": {
                    "type": "string",
                    "enum": [
                      "unverified",
                      "verified",
                      "approved"
                    ],
                    "default": "unverified",
                    "description": "Review status for translations that have none in the file. A status in the file wins.",
                    "examples": [
                      "verified"
                    ]
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The file to import, up to 25 MB, in the `file` form field. Give it its real extension (`.tmx`, `.xliff`, `.xlf`, `.xlsx`, `.csv`, `.tsv`) or send `format`. Send `file` or `uploadKey`."
                  },
                  "uploadKey": {
                    "type": "string",
                    "description": "Instead of `file`, in a JSON body: the `uploadKey` from Get an upload URL for a file import, once the file is in storage.",
                    "examples": [
                      "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65/staged-uploads/0c7d2e5a-9b1f-4c3d-8e6a-2f4b1d9c7a50.xlsx"
                    ]
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "tmx",
                      "xliff",
                      "xlsx",
                      "csv",
                      "tsv"
                    ],
                    "description": "The file format. Omit it to detect the format from the file.",
                    "examples": [
                      "tmx"
                    ]
                  },
                  "defaultStatus": {
                    "type": "string",
                    "enum": [
                      "unverified",
                      "verified",
                      "approved"
                    ],
                    "default": "unverified",
                    "description": "Review status for translations that have none in the file. A status in the file wins.",
                    "examples": [
                      "verified"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The file was read and the import has started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TmImportFileQueuedDto"
                }
              }
            }
          },
          "400": {
            "description": "No file was sent (`No file was uploaded. Attach a TMX, XLIFF, XLSX, CSV or TSV file.`), `format` or `defaultStatus` is not allowed (`Unsupported format '<format>'. Use one of: tmx, xliff, xlsx, csv, tsv.`, `defaultStatus must be one of: unverified, verified, approved.`), the memory is on Phrase (`File import and export are not available for 'phrase' translation memories.`), the file uses a language the platform does not support (`The file uses language codes this platform doesn't support: <codes>. Use codes such as en-US or hi-IN.`), or the `uploadKey` cannot be used (`The upload could not be found. Please try uploading the file again.`, `That upload was already used. Please upload the file again.`, `The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The file is larger than 25 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Import a file",
        "tags": [
          "Imports and exports"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:import`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/terms/import/{operationId}": {
      "get": {
        "operationId": "get-an-import",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          },
          {
            "name": "operationId",
            "required": true,
            "in": "path",
            "description": "The `operationId` returned by Import terms or Import a file.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d9f1b3c-5e2a-4c6d-8f0a-6b8d0f2a4c7e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The progress of the import.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TmImportOperationDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` or `operationId` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No import with this ID for this memory (`Import operation not found`), or the memory is not yours (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an import",
        "tags": [
          "Imports and exports"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Progress of an import started by Import terms or Import a file. Poll every few seconds until `status` is `COMPLETED` or `FAILED`. `processed`, `imported` and `failed` count entries (source texts), not translations.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/terms/origin": {
      "post": {
        "operationId": "explain-a-translation",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TermOriginDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The origin, or why there is none.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TmTermOriginResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Explain a translation",
        "tags": [
          "Terms"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Why a machine translation in this memory reads as it does: what the model was shown (similar stored translations, term-base and glossary entries, style-guide and built-in rules), which of it the translation uses, what the model says it followed and what was left out. Address the translation by its source text and languages. Answers `found: false` with a `reason` for a translation a person wrote or imported, one machine-translated before origins were recorded, and for a Phrase memory. Free: nothing is translated again. VitraTM only.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/terms/status": {
      "put": {
        "operationId": "set-a-term-status",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTermStatusDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The status was saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TmSuccessResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The memory is on Phrase (`Review status is not supported by the 'phrase' provider.`), a field failed validation, or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Set a term status",
        "tags": [
          "Terms"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Mark one translation `unverified`, `verified` or `approved`. Send the stored `targetText` unchanged, because the status is saved with the text. VitraTM memories only.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/{id}/terms/status/bulk": {
      "put": {
        "description": "Set one review status on up to 500 translations in one request. Items whose `previousStatus` already equals `status` are skipped. The write is not atomic: if it fails part way, some items may already be saved, so retry the whole list. VitraTM memories only.",
        "operationId": "set-term-statuses-in-bulk",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the translation memory, from Create a translation memory or List translation memories.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkSetTermStatusDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "How many translations were written.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkTermStatusResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The memory is on Phrase (`Review status is not supported by the 'phrase' provider.`), `items` is empty or has more than 500 entries, a field failed validation, or `id` is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Set term statuses in bulk",
        "tags": [
          "Terms"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/import-file/upload/presign": {
      "post": {
        "operationId": "get-an-upload-url-for-a-file-import",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to `PUT` the file, and the `uploadKey` to send once it is there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the file is empty (`The file is empty.`) or larger than 25 MB (`The translation memory file is larger than the 25 MB limit.`), or its extension or type is not one this step takes (`That isn't a translation memory file this step takes (.tmx, .xlf, .xliff, .sdlxliff, .mqxliff, .mxliff, .xml, .xlsx, .xls, .csv, .tsv, .tab).`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many upload URLs were asked for in the last hour (`Too many uploads in the last hour. Please wait and try again.`), or too many uploads are waiting to be used (`Too many uploads are waiting to be used. Please finish or discard them, then try again.`). Also returned when the key exceeds its request rate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an upload URL for a file import",
        "tags": [
          "Imports and exports"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:import`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For Import a file, without a multipart form: a TMX, XLIFF, XLSX, CSV or TSV file of up to 25 MB. Returns a presigned `uploadUrl`. `PUT` the file to it within 10 minutes, with exactly `size` bytes and the `headers` returned, then send its `uploadKey` to Import a file in a JSON body instead of the file. The file never passes through this API. An upload can be used once, and one not used within a day is deleted.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/linked-resources": {
      "get": {
        "operationId": "linked-resources-of-many-memories",
        "parameters": [
          {
            "name": "ids",
            "required": true,
            "in": "query",
            "description": "Translation memory ids, comma separated (or repeated), at most 100. Ids your organization cannot use are left out of the answer.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "examples": [
                "0b6c2f3e-8a1d-4a51-9a40-1c2d3e4f5a6b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`{ data: [...] }`, in the order of `ids`."
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Linked resources of many memories",
        "tags": [
          "Linked resources"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For each memory in `ids` (at most 100, one list page): its term bases with term counts, glossaries with entry counts, style guide with rule count, and whether the built-in locale rules are on. One request for the whole page. Memories your organization cannot use are left out; a Phrase memory, or one whose provider could not be read, comes back with `available: false`.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/memories": {
      "get": {
        "operationId": "list-provider-memories",
        "parameters": [
          {
            "name": "provider",
            "required": true,
            "in": "query",
            "description": "The provider to list. Required: without it, or with another value, the request fails with 502.",
            "schema": {
              "enum": [
                "vitratm",
                "phrase"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The unlinked memories, in the order the provider lists them.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderMemoryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "List provider memories",
        "tags": [
          "Memories"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Memories that already exist on a provider and are not linked to any translation memory yet. To link one, send its `id` as `tmRef` with `tmMode: \"existing\"` to Create a translation memory. Phrase memories need your organization's Phrase API token.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/operations/{operationId}": {
      "get": {
        "operationId": "get-a-translation-operation",
        "parameters": [
          {
            "name": "operationId",
            "required": true,
            "in": "path",
            "description": "The `operationId` returned by Translate texts.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d9f1b3c-5e2a-4c6d-8f0a-6b8d0f2a4c7e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The state of the operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationOperationDto"
                }
              }
            }
          },
          "400": {
            "description": "`operationId` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation operation with this ID in your organization (`Translation operation not found`), or its memory was deleted or is no longer shared with you (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Get a translation operation",
        "tags": [
          "Translation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Poll a translation that Translate texts started in the background (Phrase `pretranslate_job`). Each call checks Phrase and moves the operation on. Poll every 5 to 30 seconds until `status` is `COMPLETED` (translations in `data`) or `FAILED` (reason in `error`). Once completed, the translations are also saved to the memory.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/providers": {
      "get": {
        "operationId": "list-providers",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Both providers, VitraTM first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TmProviderInfoDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List providers",
        "tags": [
          "Memories"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The providers a translation memory can be stored with (`vitratm`, `phrase`), whether your organization can use each, and their translation methods. Phrase becomes available once your organization has saved a Phrase API token in its settings.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/translation-memory/translate": {
      "post": {
        "operationId": "translate-texts",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Either the translations (`status: \"COMPLETED\"`), or, for Phrase `pretranslate_job`, an operation to poll (`status: \"RUNNING\"`).",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/TranslateReadyResponseDto"
                    },
                    {
                      "$ref": "#/components/schemas/TranslateProcessingResponseDto"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation (languages must be supported BCP-47 codes such as `en-US`), `sourceTexts` mixes strings and objects (`sourceTexts must be all strings or all objects, not a mix of both`), the `method` does not fit the provider (`Method '<method>' is not valid for the '<provider>' provider.`), a Phrase memory got another `sourceLanguage` (`The 'phrase' provider only supports its configured source language '<code>'.`), or a Phrase memory has no project for `pretranslate_job` (`This translation memory has no Phrase project id configured (required for pretranslate_job).`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation memory with this `id` is owned by or shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "A VitraTM request of more than 50 texts ran as a background job that failed (`Translation memory job failed: <reason>`) or took over 20 minutes (`Translation memory job timed out; please retry.`). Retry, or send fewer texts per request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: \"TranslationServiceError\" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          },
          "503": {
            "description": "The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationServiceErrorDto"
                }
              }
            }
          }
        },
        "summary": "Translate texts",
        "tags": [
          "Translation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translation_memory:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Translate a list of texts into one or more languages with a translation memory. Stored translations are reused first (exact matches, filtered by `leverageMinStatus`); the rest is machine translated, following the memory's style guide, glossaries and term bases, and saved back to the memory as `unverified`. Target languages the memory does not have yet are added. VitraTM and Phrase `language_ai` answer in the request with `status: \"COMPLETED\"`. VitraTM requests of more than 50 texts run as a background job while the request waits, so allow several minutes. Phrase `pretranslate_job`, the Phrase default, answers at once with `status: \"RUNNING\"` and an `operationId` to poll with Get a translation operation.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys."
      }
    },
    "schemas": {
      "BulkSetTermStatusDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "description": "The review status to set on every item.",
            "examples": [
              "verified"
            ]
          },
          "items": {
            "minItems": 1,
            "maxItems": 500,
            "description": "The translations to change, 1 to 500 per request.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkTermStatusItemDto"
            }
          }
        },
        "required": [
          "status",
          "items"
        ]
      },
      "BulkStyleGuideRulesDto": {
        "type": "object",
        "properties": {
          "ruleIds": {
            "minItems": 1,
            "maxItems": 1000,
            "description": "IDs of the rules to change, from Get a style guide. IDs that are not in the guide are counted in `outcome.missing`.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d"
              ]
            ]
          },
          "op": {
            "type": "string",
            "enum": [
              "addLanguages",
              "removeLanguages",
              "setLanguages",
              "activate",
              "deactivate",
              "delete"
            ],
            "description": "What to do: `addLanguages`, `removeLanguages` or `setLanguages` (with `languages`), `activate`, `deactivate` or `delete`. `addLanguages` leaves rules for every language as they are; `removeLanguages` deletes a rule left with no language.",
            "examples": [
              "addLanguages"
            ]
          },
          "languages": {
            "maxItems": 50,
            "description": "The languages for `addLanguages`, `removeLanguages` (both need at least one) and `setLanguages` (an empty list makes the rules apply to every language), as BCP-47 codes. Ignored by the other operations.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "mr-IN"
              ]
            ]
          }
        },
        "required": [
          "ruleIds",
          "op"
        ]
      },
      "BulkTermStatusItemDto": {
        "type": "object",
        "properties": {
          "previousTargetText": {
            "type": "string",
            "description": "The translation as you last read it. Optional; only used to record the change in your organization's change history.",
            "examples": [
              "मिनटों में अकाउंट खोलें"
            ]
          },
          "previousStatus": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "description": "The review status as you last read it. Optional; used for the change history (and, in bulk, to skip translations already at the new status).",
            "examples": [
              "unverified"
            ]
          },
          "sourceText": {
            "type": "string",
            "description": "The source text of the term, exactly as stored.",
            "examples": [
              "Open an account in minutes"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language of the term (BCP-47), for a memory with several source languages. Defaults to the memory’s primary source language.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language (BCP-47).",
            "examples": [
              "hi-IN"
            ]
          },
          "targetText": {
            "type": "string",
            "description": "The stored translation, sent back unchanged: the status is saved together with the text.",
            "examples": [
              "मिनटों में खाता खोलें"
            ]
          }
        },
        "required": [
          "sourceText",
          "targetLanguage",
          "targetText"
        ]
      },
      "BulkTermStatusResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "enum": [
              200
            ],
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              true
            ],
            "description": "Always true.",
            "examples": [
              true
            ]
          },
          "updated": {
            "type": "number",
            "description": "How many translations were written. Items whose `previousStatus` already equals `status` are skipped and not counted.",
            "examples": [
              25
            ]
          }
        },
        "required": [
          "statusCode",
          "success",
          "updated"
        ]
      },
      "ConceptDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the concept.",
            "examples": [
              "c7e9a1b3-5d2f-4c6e-9a8b-0f1e2d3c4b5a"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject field.",
            "examples": [
              "Analytics"
            ]
          },
          "subDomains": {
            "description": "Narrower subject fields.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Reporting"
              ]
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "A reference URL for the concept.",
            "examples": [
              "https://example.com/docs/dashboard"
            ]
          },
          "definition": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the concept means, in any language.",
            "examples": [
              "The screen that summarizes account activity."
            ]
          },
          "conceptNote": {
            "type": [
              "string",
              "null"
            ],
            "description": "Scope note, usually what the concept does not cover.",
            "examples": [
              "Not the admin console."
            ]
          },
          "terms": {
            "description": "The terms that name this concept, in every language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TermBaseTermDto"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the concept was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the concept was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          }
        },
        "required": [
          "id",
          "domain",
          "subDomains",
          "url",
          "definition",
          "conceptNote",
          "terms",
          "createdAt",
          "updatedAt"
        ]
      },
      "ConceptPageDto": {
        "type": "object",
        "properties": {
          "concepts": {
            "description": "One page of concepts.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConceptDto"
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page.",
            "examples": [
              "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0VDEwOjMyOjA3LjAwMFoifQ"
            ]
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether another page follows.",
            "examples": [
              true
            ]
          },
          "total": {
            "type": "number",
            "description": "Number of concepts that match the filters.",
            "examples": [
              128
            ]
          }
        },
        "required": [
          "concepts",
          "nextCursor",
          "hasMore"
        ]
      },
      "ConceptTermUpsertBodyDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "new",
              "approved",
              "rejected"
            ],
            "description": "Review state. New terms default to `new`.",
            "examples": [
              "approved"
            ]
          },
          "forbidden": {
            "type": "boolean",
            "description": "Translators must not use this term.",
            "examples": [
              false
            ]
          },
          "preferred": {
            "type": "boolean",
            "description": "The recommended term among the concept's synonyms.",
            "examples": [
              true
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "description": "Match only with the same capitalization.",
            "examples": [
              false
            ]
          },
          "exactMatch": {
            "type": "boolean",
            "description": "Match only the exact wording. False also matches forms such as plurals.",
            "examples": [
              false
            ]
          },
          "note": {
            "type": "string",
            "maxLength": 4000,
            "description": "A note for translators.",
            "examples": [
              "Use for the analytics screen only."
            ]
          },
          "usage": {
            "type": "string",
            "maxLength": 4000,
            "description": "An example sentence with the term in use.",
            "examples": [
              "Ouvrez le tableau de bord pour voir vos ventes."
            ]
          },
          "shortTranslation": {
            "type": "string",
            "maxLength": 2000,
            "description": "A short form for places with little space.",
            "examples": [
              "TdB"
            ]
          },
          "termType": {
            "type": "string",
            "enum": [
              "full_form",
              "short_form",
              "acronym",
              "abbreviation",
              "phrase",
              "variant",
              "other"
            ],
            "description": "What kind of term it is.",
            "examples": [
              "full_form"
            ]
          },
          "partOfSpeech": {
            "type": "string",
            "enum": [
              "noun",
              "verb",
              "adjective",
              "adverb",
              "other"
            ],
            "description": "Part of speech.",
            "examples": [
              "noun"
            ]
          },
          "gender": {
            "type": "string",
            "enum": [
              "masculine",
              "feminine",
              "neuter",
              "other"
            ],
            "description": "Grammatical gender.",
            "examples": [
              "masculine"
            ]
          },
          "number": {
            "type": "string",
            "enum": [
              "singular",
              "plural",
              "uncountable",
              "other"
            ],
            "description": "Grammatical number.",
            "examples": [
              "singular"
            ]
          },
          "language": {
            "type": "string",
            "maxLength": 35,
            "description": "BCP-47 code of the language the term is in.",
            "examples": [
              "fr-FR"
            ]
          },
          "text": {
            "type": "string",
            "maxLength": 2000,
            "description": "The term itself.",
            "examples": [
              "tableau de bord"
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of an existing term to update. Omit to add a new term to the concept.",
            "examples": [
              "e1f3a5c7-9b2d-4e6f-8a0c-1d3e5f7a9b2c"
            ]
          }
        },
        "required": [
          "language",
          "text"
        ]
      },
      "CopyStyleGuideLanguageDto": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "The language whose rules to copy, as a BCP-47 code. Rules naming this language (or a broader tag such as `hi` for `hi-IN`) get `to` added.",
            "examples": [
              "hi-IN"
            ]
          },
          "to": {
            "type": "string",
            "description": "The language to add to those rules (BCP-47). Must differ from `from`.",
            "examples": [
              "mr-IN"
            ]
          }
        },
        "required": [
          "from",
          "to"
        ]
      },
      "CreateConceptBodyDto": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "maxLength": 256,
            "description": "Subject field.",
            "examples": [
              "Analytics"
            ]
          },
          "subDomains": {
            "description": "Narrower subject fields (each up to 256 characters).",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Reporting"
              ]
            ]
          },
          "url": {
            "type": "string",
            "maxLength": 2000,
            "description": "A reference URL for the concept.",
            "examples": [
              "https://example.com/docs/dashboard"
            ]
          },
          "definition": {
            "type": "string",
            "maxLength": 8000,
            "description": "What the concept means, in any language.",
            "examples": [
              "The screen that summarizes account activity."
            ]
          },
          "conceptNote": {
            "type": "string",
            "maxLength": 8000,
            "description": "Scope note, usually what the concept does not cover.",
            "examples": [
              "Not the admin console."
            ]
          },
          "terms": {
            "description": "The terms that name the concept, in any languages.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateTermBodyDto"
            }
          }
        }
      },
      "CreateGlossaryBodyDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 256,
            "description": "Name of the glossary. Must be unique in your organization and not blank.",
            "examples": [
              "Brand and product names"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 2000,
            "description": "What the glossary is for.",
            "examples": [
              "Product names and UI labels that must stay consistent."
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "CreateGlossaryEntryBodyDto": {
        "type": "object",
        "properties": {
          "term": {
            "type": "string",
            "maxLength": 2000,
            "description": "The term, as written in `language`. A term and language pair can appear only once in a glossary.",
            "examples": [
              "Dashboard"
            ]
          },
          "language": {
            "type": "string",
            "maxLength": 35,
            "description": "BCP-47 code of the language the term is written in.",
            "examples": [
              "en-US"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 4000,
            "description": "What the term means or how to use it. Sent to translation as context.",
            "examples": [
              "The home screen that shows usage charts."
            ]
          },
          "translatable": {
            "type": "boolean",
            "default": true,
            "description": "`false` means do not translate: the term must stay exactly as written.",
            "examples": [
              true
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "default": false,
            "description": "Match the term only with the same letter case.",
            "examples": [
              false
            ]
          },
          "tags": {
            "maxItems": 50,
            "description": "Labels for grouping and filtering, up to 64 characters each.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "ui"
              ]
            ]
          },
          "translations": {
            "maxItems": 200,
            "description": "The wording to use in other languages, one per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlossaryTranslationInputDto"
            }
          }
        },
        "required": [
          "term",
          "language"
        ]
      },
      "CreateStagedUploadDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file you will upload. Its extension must be one this step takes.",
            "examples": [
              "catalogue.csv"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "The file's type, sent again as the `Content-Type` of the `PUT` (the URL is signed over it). `application/octet-stream` is accepted when the type is unknown.",
            "examples": [
              "text/csv"
            ]
          },
          "size": {
            "type": "number",
            "description": "Exact size of the file in bytes. It is part of the signed URL: storage refuses a `PUT` of any other length.",
            "examples": [
              524288
            ]
          }
        },
        "required": [
          "fileName",
          "contentType",
          "size"
        ]
      },
      "CreateStyleGuideRuleDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 2000,
            "description": "The rule, in plain words, up to 2,000 characters. If another rule already has the same text (ignoring case), the languages are added to that rule instead (`outcome.merged` is true).",
            "examples": [
              "Address the reader as \"aap\", never \"tum\"."
            ]
          },
          "languages": {
            "maxItems": 50,
            "description": "The languages the rule is for, as BCP-47 codes (up to 50). An empty list means every language.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN"
              ]
            ]
          },
          "active": {
            "type": "boolean",
            "default": true,
            "description": "Whether translation uses the rule. An inactive rule is kept but not sent to the model.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "text",
          "languages"
        ]
      },
      "CreateTermBaseBodyDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 256,
            "description": "Name of the term base.",
            "examples": [
              "Product terminology"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 2000,
            "description": "What the term base is for.",
            "examples": [
              "Approved product and feature names."
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "CreateTermBodyDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "new",
              "approved",
              "rejected"
            ],
            "description": "Review state. New terms default to `new`.",
            "examples": [
              "approved"
            ]
          },
          "forbidden": {
            "type": "boolean",
            "description": "Translators must not use this term.",
            "examples": [
              false
            ]
          },
          "preferred": {
            "type": "boolean",
            "description": "The recommended term among the concept's synonyms.",
            "examples": [
              true
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "description": "Match only with the same capitalization.",
            "examples": [
              false
            ]
          },
          "exactMatch": {
            "type": "boolean",
            "description": "Match only the exact wording. False also matches forms such as plurals.",
            "examples": [
              false
            ]
          },
          "note": {
            "type": "string",
            "maxLength": 4000,
            "description": "A note for translators.",
            "examples": [
              "Use for the analytics screen only."
            ]
          },
          "usage": {
            "type": "string",
            "maxLength": 4000,
            "description": "An example sentence with the term in use.",
            "examples": [
              "Ouvrez le tableau de bord pour voir vos ventes."
            ]
          },
          "shortTranslation": {
            "type": "string",
            "maxLength": 2000,
            "description": "A short form for places with little space.",
            "examples": [
              "TdB"
            ]
          },
          "termType": {
            "type": "string",
            "enum": [
              "full_form",
              "short_form",
              "acronym",
              "abbreviation",
              "phrase",
              "variant",
              "other"
            ],
            "description": "What kind of term it is.",
            "examples": [
              "full_form"
            ]
          },
          "partOfSpeech": {
            "type": "string",
            "enum": [
              "noun",
              "verb",
              "adjective",
              "adverb",
              "other"
            ],
            "description": "Part of speech.",
            "examples": [
              "noun"
            ]
          },
          "gender": {
            "type": "string",
            "enum": [
              "masculine",
              "feminine",
              "neuter",
              "other"
            ],
            "description": "Grammatical gender.",
            "examples": [
              "masculine"
            ]
          },
          "number": {
            "type": "string",
            "enum": [
              "singular",
              "plural",
              "uncountable",
              "other"
            ],
            "description": "Grammatical number.",
            "examples": [
              "singular"
            ]
          },
          "language": {
            "type": "string",
            "maxLength": 35,
            "description": "BCP-47 code of the language the term is in.",
            "examples": [
              "fr-FR"
            ]
          },
          "text": {
            "type": "string",
            "maxLength": 2000,
            "description": "The term itself.",
            "examples": [
              "tableau de bord"
            ]
          }
        },
        "required": [
          "language",
          "text"
        ]
      },
      "CreateTmDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the memory, unique within your organization. Up to 120 characters.",
            "maxLength": 120,
            "examples": [
              "Marketing site"
            ]
          },
          "description": {
            "type": "string",
            "description": "Free-text description. Up to 1,000 characters.",
            "maxLength": 1000,
            "examples": [
              "Website and campaign copy for the EMEA launch."
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Primary source language, as a BCP-47 code. With `tmMode: \"existing\"` the provider memory's own languages are used instead.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguages": {
            "minItems": 1,
            "description": "Target languages, as BCP-47 codes. At least one. More are added automatically when you translate into them.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "fr-FR"
              ]
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "vitratm",
              "phrase"
            ],
            "default": "vitratm",
            "description": "Where the memory is stored. `phrase` needs a Phrase API token in your organization settings (see List providers). Cannot be changed later.",
            "examples": [
              "vitratm"
            ]
          },
          "tmMode": {
            "type": "string",
            "enum": [
              "create",
              "existing"
            ],
            "default": "create",
            "description": "`create` makes a new memory on the provider; `existing` links one that is already there (send its ID in `tmRef`, from List provider memories).",
            "examples": [
              "create"
            ]
          },
          "tmRef": {
            "type": "string",
            "description": "ID of the provider memory to link. Required when `tmMode` is `existing`. A provider memory can be linked to only one translation memory.",
            "examples": [
              "0b6f7d2a-41c9-4d8e-a3f5-9c2e7b1d4a60"
            ]
          },
          "styleGuideId": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of an organization style guide for the memory to follow (VitraTM only; ignored for Phrase). If the link fails, the memory is still created without it.",
            "examples": [
              "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
            ]
          },
          "embeddingEnabled": {
            "type": "boolean",
            "default": false,
            "description": "Smart Match: also match by meaning, on top of exact and fuzzy matches. VitraTM only; ignored for Phrase. Cannot be changed later.",
            "examples": [
              false
            ]
          },
          "engine": {
            "type": "string",
            "enum": [
              "gemini",
              "azure",
              "deepl"
            ],
            "default": "gemini",
            "description": "Machine translation engine for text the memory has no match for (VitraTM only; ignored for Phrase). `azure` is Microsoft Translator and `deepl` is DeepL: both ignore the style guide, term bases, glossaries and `additionalPrompt` (DeepL uses the memory’s context), and both translate a fixed list of languages — a source or target they can’t translate is a 400.",
            "examples": [
              "gemini"
            ]
          },
          "context": {
            "type": "string",
            "maxLength": 1000,
            "description": "What the memory is for: the client, the product, the audience, in up to 1,000 characters. Required for VitraTM memories (sent to the model with every translation); not allowed for Phrase.",
            "examples": [
              "Consumer banking app for first-time investors in India. Friendly, plain and short."
            ]
          },
          "matchMode": {
            "type": "string",
            "enum": [
              "match",
              "reference"
            ],
            "default": "match",
            "description": "How the memory serves its own 100% matches (VitraTM only). `match` reuses an exact match as it is and saves new machine translations to the memory. `reference` never returns an exact match as it is: the AI receives it as a reference that may contain errors, keeps what is right and fixes what is wrong (term bases, glossaries and the style guide win), and nothing is saved to the memory automatically — only \"Sync to TM\" writes. Every 100% match is then processed and charged like machine-translated text. `reference` needs the `gemini` engine (400 otherwise).",
            "examples": [
              "reference"
            ]
          },
          "providerProjectId": {
            "type": "string",
            "maxLength": 120,
            "description": "Phrase project UID that `pretranslate_job` translations run in. Required when `provider` is `phrase`; ignored otherwise.",
            "examples": [
              "Kp3sT8vQwXyZ1aB2cD4eF5"
            ]
          },
          "mtProfileUid": {
            "type": "string",
            "maxLength": 120,
            "description": "Phrase machine translation profile UID used by the `language_ai` method. Phrase only; ignored otherwise.",
            "examples": [
              "mtp_7Hk2Lm9Np4Qr"
            ]
          }
        },
        "required": [
          "name",
          "sourceLanguage",
          "targetLanguages"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Error body returned for every 4xx and 5xx response.",
        "required": [
          "statusCode",
          "message"
        ],
        "properties": {
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code, repeated in the body.",
            "examples": [
              404
            ]
          },
          "message": {
            "description": "What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "examples": [
              "Booking not found"
            ]
          },
          "error": {
            "type": "string",
            "description": "Short name of the status.",
            "examples": [
              "Not Found"
            ]
          }
        }
      },
      "GlossaryDetailDto": {
        "type": "object",
        "properties": {
          "glossaryId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the glossary.",
            "examples": [
              "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the glossary. Unique in your organization.",
            "examples": [
              "Brand and product names"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the glossary is for. Null when not set.",
            "examples": [
              "Product names and UI labels that must stay consistent."
            ]
          },
          "languages": {
            "description": "BCP-47 codes of every language the entries are written or translated in. Updated as entries change.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "en-US",
                "fr-FR",
                "hi-IN"
              ]
            ]
          },
          "createdBy": {
            "description": "Who created the glossary. Null when not recorded.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "updatedBy": {
            "description": "Who last changed the glossary. Null when not recorded.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the glossary was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the glossary was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "entryCount": {
            "type": "number",
            "minimum": 0,
            "description": "Number of entries in the glossary.",
            "examples": [
              128
            ]
          },
          "attachedTmIds": {
            "description": "The memories that apply this glossary, as their `tmRef` (the ID on the translation service), not their `id`. Use List memories using a glossary to get them by `id` and name.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "8a0c2e4f-6b1d-4f3a-9c5e-7b9d1f3a5c8e"
              ]
            ]
          }
        },
        "required": [
          "glossaryId",
          "name",
          "description",
          "languages",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt",
          "entryCount",
          "attachedTmIds"
        ]
      },
      "GlossaryDto": {
        "type": "object",
        "properties": {
          "glossaryId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the glossary.",
            "examples": [
              "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the glossary. Unique in your organization.",
            "examples": [
              "Brand and product names"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the glossary is for. Null when not set.",
            "examples": [
              "Product names and UI labels that must stay consistent."
            ]
          },
          "languages": {
            "description": "BCP-47 codes of every language the entries are written or translated in. Updated as entries change.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "en-US",
                "fr-FR",
                "hi-IN"
              ]
            ]
          },
          "createdBy": {
            "description": "Who created the glossary. Null when not recorded.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "updatedBy": {
            "description": "Who last changed the glossary. Null when not recorded.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the glossary was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the glossary was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          }
        },
        "required": [
          "glossaryId",
          "name",
          "description",
          "languages",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt"
        ]
      },
      "GlossaryEntryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the entry.",
            "examples": [
              "d8f0b2c4-6e1a-4d3f-9b5c-7a9e1c3f5b8d"
            ]
          },
          "glossaryId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the glossary the entry belongs to.",
            "examples": [
              "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
            ]
          },
          "term": {
            "type": "string",
            "description": "The term, as written in `language`.",
            "examples": [
              "Dashboard"
            ]
          },
          "language": {
            "type": "string",
            "description": "BCP-47 code of the language the term is written in.",
            "examples": [
              "en-US"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the term means or how to use it. Sent to translation as context. Null when not set.",
            "examples": [
              "The home screen that shows usage charts."
            ]
          },
          "translatable": {
            "type": "boolean",
            "description": "`false` means do not translate: the term must appear in translations exactly as written.",
            "examples": [
              true
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "description": "Whether the term only matches with the same letter case.",
            "examples": [
              false
            ]
          },
          "tags": {
            "description": "Labels for grouping and filtering entries.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "ui"
              ]
            ]
          },
          "translations": {
            "description": "The wording to use in each other language, one per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlossaryTranslationDto"
            }
          },
          "createdBy": {
            "description": "Who added the entry. Null when not recorded.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the entry was added.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the entry was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          }
        },
        "required": [
          "id",
          "glossaryId",
          "term",
          "language",
          "description",
          "translatable",
          "caseSensitive",
          "tags",
          "translations",
          "createdBy",
          "createdAt",
          "updatedAt"
        ]
      },
      "GlossaryEntryPageDto": {
        "type": "object",
        "properties": {
          "entries": {
            "description": "One page of entries.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlossaryEntryDto"
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page.",
            "examples": [
              "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0VDEwOjMyOjA3LjAwMFoifQ"
            ]
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether there is another page.",
            "examples": [
              true
            ]
          },
          "total": {
            "type": "number",
            "description": "Number of entries that match, across all pages.",
            "examples": [
              128
            ]
          }
        },
        "required": [
          "entries",
          "nextCursor",
          "hasMore",
          "total"
        ]
      },
      "GlossaryImportResultDto": {
        "type": "object",
        "properties": {
          "entriesCreated": {
            "type": "number",
            "minimum": 0,
            "description": "Entries the file added.",
            "examples": [
              42
            ]
          },
          "entriesUpdated": {
            "type": "number",
            "minimum": 0,
            "description": "Existing entries (same term and language) the file changed.",
            "examples": [
              7
            ]
          },
          "entriesUnchanged": {
            "type": "number",
            "minimum": 0,
            "description": "Existing entries the file left as they were.",
            "examples": [
              3
            ]
          },
          "translationsWritten": {
            "type": "number",
            "minimum": 0,
            "description": "Translations written, across all entries.",
            "examples": [
              96
            ]
          }
        },
        "required": [
          "entriesCreated",
          "entriesUpdated",
          "entriesUnchanged",
          "translationsWritten"
        ]
      },
      "GlossaryPageDto": {
        "type": "object",
        "properties": {
          "glossaries": {
            "description": "One page of glossaries, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlossaryDto"
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page.",
            "examples": [
              "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0VDEwOjMyOjA3LjAwMFoifQ"
            ]
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether there is another page.",
            "examples": [
              false
            ]
          },
          "total": {
            "type": "number",
            "description": "Number of glossaries that match, across all pages.",
            "examples": [
              3
            ]
          }
        },
        "required": [
          "glossaries",
          "nextCursor",
          "hasMore",
          "total"
        ]
      },
      "GlossaryTerminologyEntryDto": {
        "type": "object",
        "properties": {
          "entryId": {
            "type": "string",
            "description": "Glossary entry ID.",
            "examples": [
              "3f6c2a9e-1b7d-4c55-9e0a-8d2f4b6a1c33"
            ]
          },
          "glossaryId": {
            "type": "string",
            "description": "Glossary ID.",
            "examples": [
              "gl_8f2c1a"
            ]
          },
          "glossaryName": {
            "type": "string",
            "description": "Glossary name.",
            "examples": [
              "Brand names"
            ]
          },
          "sourceText": {
            "type": "string",
            "description": "The entry's wording in the memory's source language: what is looked for in a text.",
            "examples": [
              "Invoice"
            ]
          },
          "targetText": {
            "type": [
              "string",
              "null"
            ],
            "description": "The wording to use in the target language. Repeats `sourceText` for a do-not-translate entry; null for a context-only entry.",
            "examples": [
              "चालान"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "dnt",
              "binding",
              "context"
            ],
            "description": "`dnt`: keep `sourceText` exactly as written. `binding`: use `targetText`. `context`: no target wording; the description guides the translation.",
            "examples": [
              "binding"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the term means, or how to use it.",
            "examples": [
              "A bill sent to a customer."
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "description": "Matched only with the same letter case.",
            "examples": [
              false
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "billing"
              ]
            ]
          }
        },
        "required": [
          "entryId",
          "glossaryId",
          "glossaryName",
          "sourceText",
          "targetText",
          "kind",
          "description",
          "caseSensitive",
          "tags"
        ]
      },
      "GlossaryTerminologyResponseDto": {
        "type": "object",
        "properties": {
          "available": {
            "type": "boolean",
            "description": "False when glossaries do not apply to this memory: a Phrase memory, an Azure or DeepL memory, or a provider that could not be read (see `warning`). Treat that differently from an empty `entries` list.",
            "examples": [
              true
            ]
          },
          "ignoredByEngine": {
            "type": "boolean",
            "description": "True when the memory's engine (Azure or DeepL) translates without glossaries.",
            "examples": [
              false
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "The memory's primary source language (BCP-47).",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "The target language you asked for, as a BCP-47 code (a language name you sent is converted).",
            "examples": [
              "hi-IN"
            ]
          },
          "entries": {
            "description": "Entries of the memory's attached glossaries that apply to the language pair, A to Z by term.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlossaryTerminologyEntryDto"
            }
          },
          "truncated": {
            "type": "boolean",
            "description": "True when the 5,000-entry cap was reached.",
            "examples": [
              false
            ]
          },
          "warning": {
            "type": [
              "string",
              "null"
            ],
            "description": "A provider problem worth showing the reader, or null.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "available",
          "ignoredByEngine",
          "sourceLanguage",
          "targetLanguage",
          "entries",
          "truncated",
          "warning"
        ]
      },
      "GlossaryTranslationDto": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "description": "BCP-47 code of the translation language.",
            "examples": [
              "fr-FR"
            ]
          },
          "text": {
            "type": "string",
            "description": "The wording to use in this language.",
            "examples": [
              "Tableau de bord"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "A note for translators. Null when not set.",
            "examples": [
              "Masculine noun."
            ]
          }
        },
        "required": [
          "language",
          "text",
          "note"
        ]
      },
      "GlossaryTranslationInputDto": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "maxLength": 35,
            "description": "BCP-47 code of the translation language. Must differ from the entry's own `language`.",
            "examples": [
              "fr-FR"
            ]
          },
          "text": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000,
            "description": "The wording to use in this language. On Update a glossary entry, `null` or an empty string removes this language.",
            "examples": [
              "Tableau de bord"
            ]
          },
          "note": {
            "type": "string",
            "maxLength": 2000,
            "description": "A note for translators.",
            "examples": [
              "Masculine noun."
            ]
          }
        },
        "required": [
          "language",
          "text"
        ]
      },
      "ImportTermItem": {
        "type": "object",
        "properties": {
          "sourceText": {
            "type": "string",
            "description": "The source text.",
            "examples": [
              "Open an account in minutes"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language of the term (BCP-47), for a memory with several source languages. Defaults to the memory’s primary source language; Phrase memories accept only that one.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language (BCP-47). A language the memory does not have yet is added.",
            "examples": [
              "hi-IN"
            ]
          },
          "targetText": {
            "type": "string",
            "description": "The translation.",
            "examples": [
              "मिनटों में खाता खोलें"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "default": "unverified",
            "description": "Review status to store. Defaults to `unverified`.",
            "examples": [
              "verified"
            ]
          }
        },
        "required": [
          "sourceText",
          "targetLanguage",
          "targetText"
        ]
      },
      "ImportTermsDto": {
        "type": "object",
        "properties": {
          "terms": {
            "minItems": 1,
            "description": "The translations to import, one item per source text and target language. Items with the same source text are written as one term.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportTermItem"
            }
          }
        },
        "required": [
          "terms"
        ]
      },
      "LinkedMemoryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation memory.",
            "examples": [
              "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the translation memory.",
            "examples": [
              "Marketing site"
            ]
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "MemoryStyleGuideDto": {
        "type": "object",
        "properties": {
          "available": {
            "type": "boolean",
            "description": "False when the provider could not be read (see `warning`), or, for Phrase, when no guide exists for the language.",
            "examples": [
              true
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "vitratm",
              "phrase"
            ],
            "description": "The memory's provider.",
            "examples": [
              "vitratm"
            ]
          },
          "targetLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `targetLanguage` you asked for, as a BCP-47 code. Null when you sent none.",
            "examples": [
              "hi-IN"
            ]
          },
          "content": {
            "type": [
              "string",
              "null"
            ],
            "description": "VitraTM: exactly what translation sends to the model, the active rules for every language plus those for `targetLanguage` (all languages when you sent none), as Markdown. Null when no rule applies, and always null for Phrase.",
            "examples": [
              "- Address the reader as \"aap\", never \"tum\".\n- Keep product names in English."
            ]
          },
          "guide": {
            "description": "Phrase: the guide for `targetLanguage`, by name and link (Phrase does not expose its content). Null for VitraTM.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PhraseStyleGuideRefDto"
              }
            ]
          },
          "styleGuide": {
            "description": "VitraTM: the organization style guide the memory follows. Null when it follows none, and for Phrase.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/MemoryStyleGuideSummaryDto"
              }
            ]
          },
          "ignoredByEngine": {
            "type": "boolean",
            "description": "True when the memory uses the `azure` or `deepl` engine, which ignore the style guide, and the guide has content.",
            "examples": [
              false
            ]
          },
          "warning": {
            "type": [
              "string",
              "null"
            ],
            "description": "Set when the guide could not be read from the provider (`The style guide could not be read from the provider.`).",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "available",
          "provider",
          "targetLanguage",
          "content",
          "guide",
          "styleGuide",
          "ignoredByEngine",
          "warning"
        ]
      },
      "MemoryStyleGuideSummaryDto": {
        "type": "object",
        "properties": {
          "styleGuideId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the style guide.",
            "examples": [
              "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the style guide.",
            "examples": [
              "Brand voice 2026"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "empty",
              "processing",
              "ready",
              "failed"
            ],
            "description": "`empty` (no rules yet), `processing` (rules are being extracted from its files), `ready` or `failed`.",
            "examples": [
              "ready"
            ]
          },
          "ruleCount": {
            "type": "number",
            "description": "Number of rules in the guide.",
            "examples": [
              42
            ]
          }
        },
        "required": [
          "styleGuideId",
          "name",
          "status",
          "ruleCount"
        ]
      },
      "PaginatedTranslationMemoriesDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "Memories your organization owns or that were shared with it, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslationMemoryListItemDto"
            }
          },
          "total": {
            "type": "number",
            "description": "Number of memories that match the filters, on all pages.",
            "examples": [
              15
            ]
          },
          "page": {
            "type": "number",
            "description": "The page returned (from 1).",
            "examples": [
              1
            ]
          },
          "limit": {
            "type": "number",
            "description": "Page size used.",
            "examples": [
              20
            ]
          },
          "providerCounts": {
            "description": "How many memories each provider has, counted before the `provider` filter, so you can show the count for each option.",
            "allOf": [
              {
                "$ref": "#/components/schemas/TmProviderCountsDto"
              }
            ]
          }
        },
        "required": [
          "data",
          "total",
          "page",
          "limit",
          "providerCounts"
        ]
      },
      "PhraseStyleGuideRefDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the style guide in Phrase.",
            "examples": [
              "1042"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the style guide in Phrase.",
            "examples": [
              "Hindi marketing style"
            ]
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "description": "The locale the guide applies to (BCP-47).",
            "examples": [
              "hi-IN"
            ]
          },
          "url": {
            "type": "string",
            "description": "Link to the guide in the Phrase app, where it can be read.",
            "examples": [
              "https://cloud.memsource.com/web/styleGuide/1042"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "url"
        ]
      },
      "ProviderMemoryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The memory ID on the provider. Send it as `tmRef` with `tmMode: \"existing\"` to Create a translation memory.",
            "examples": [
              "0b6f7d2a-41c9-4d8e-a3f5-9c2e7b1d4a60"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name on the provider.",
            "examples": [
              "Legacy product UI"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language, as a BCP-47 code.",
            "examples": [
              "en-US"
            ]
          },
          "additionalSourceLanguages": {
            "description": "Extra source languages (VitraTM only).",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          },
          "targetLanguages": {
            "description": "Target languages, as BCP-47 codes.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "ta-IN"
              ]
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "vitratm",
              "phrase"
            ],
            "description": "The provider you asked for.",
            "examples": [
              "vitratm"
            ]
          },
          "embeddingEnabled": {
            "type": "boolean",
            "description": "Smart Match on the provider memory (VitraTM only).",
            "examples": [
              false
            ]
          },
          "engine": {
            "type": "string",
            "enum": [
              "gemini",
              "azure",
              "deepl"
            ],
            "description": "Machine translation engine (VitraTM only).",
            "examples": [
              "gemini"
            ]
          },
          "matchMode": {
            "type": "string",
            "enum": [
              "match",
              "reference"
            ],
            "description": "How the memory serves its own 100% matches: `match` or `reference` (VitraTM only).",
            "examples": [
              "match"
            ]
          },
          "context": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the memory is for (VitraTM only).",
            "examples": [
              null
            ]
          },
          "raw": {
            "type": "object",
            "additionalProperties": true,
            "description": "The provider's own record of the memory, unchanged. Its contents differ by provider and may change; do not depend on them.",
            "examples": [
              {
                "tmId": "0b6f7d2a-41c9-4d8e-a3f5-9c2e7b1d4a60"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "sourceLanguage",
          "targetLanguages",
          "provider",
          "raw"
        ]
      },
      "ReorderStyleGuideRulesDto": {
        "type": "object",
        "properties": {
          "ruleIds": {
            "minItems": 1,
            "maxItems": 1000,
            "description": "Rule IDs in their new order. A subset is fine: the listed rules swap among the positions they already hold, and other rules do not move. No ID may repeat.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d",
                "2b4d6f8a-0c1e-4a3b-9d5f-6a8c0e2b4d1f"
              ]
            ]
          }
        },
        "required": [
          "ruleIds"
        ]
      },
      "SetGlossaryMemoriesBodyDto": {
        "type": "object",
        "properties": {
          "tmIds": {
            "description": "IDs of every translation memory that should apply this glossary: the complete list, not the ones to add. Memories not in the list stop applying it. IDs that are not memories owned by your organization are ignored. An empty array detaches all.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "examples": [
              [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            ]
          }
        },
        "required": [
          "tmIds"
        ]
      },
      "SetMemoryGlossariesBodyDto": {
        "type": "object",
        "properties": {
          "glossaryIds": {
            "description": "The complete list of glossaries the memory should apply, from List glossaries. Glossaries not in the list are detached; an empty list (or no field) detaches them all.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "examples": [
              [
                "b5c7d9e1-2f4a-4b6c-8d0e-3a5c7e9b1d2f"
              ]
            ]
          }
        },
        "required": [
          "glossaryIds"
        ]
      },
      "SetMemoryTermBasesBodyDto": {
        "type": "object",
        "properties": {
          "termBaseIds": {
            "description": "The complete list of term bases the memory should use, from List term bases. Bases not in the list are detached; an empty list (or no field) detaches them all.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "examples": [
              [
                "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
              ]
            ]
          }
        },
        "required": [
          "termBaseIds"
        ]
      },
      "SetStyleGuideMemoriesDto": {
        "type": "object",
        "properties": {
          "tmIds": {
            "description": "The complete list of translation memories that should follow the guide (VitraTM memories your organization owns). Memories left out stop following it. A memory follows one guide, so adding it here moves it off its previous guide.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "examples": [
              [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            ]
          }
        },
        "required": [
          "tmIds"
        ]
      },
      "SetTermBaseMemoriesBodyDto": {
        "type": "object",
        "properties": {
          "tmIds": {
            "description": "IDs of every translation memory that should use this term base: the complete list, not an addition. Memories left out stop using it; `[]` detaches it from all. IDs of memories your organization does not own are ignored.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "examples": [
              [
                "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
              ]
            ]
          }
        },
        "required": [
          "tmIds"
        ]
      },
      "SetTermStatusDto": {
        "type": "object",
        "properties": {
          "previousTargetText": {
            "type": "string",
            "description": "The translation as you last read it. Optional; only used to record the change in your organization's change history.",
            "examples": [
              "मिनटों में अकाउंट खोलें"
            ]
          },
          "previousStatus": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "description": "The review status as you last read it. Optional; used for the change history (and, in bulk, to skip translations already at the new status).",
            "examples": [
              "unverified"
            ]
          },
          "sourceText": {
            "type": "string",
            "description": "The source text of the term, exactly as stored.",
            "examples": [
              "Open an account in minutes"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language of the term (BCP-47), for a memory with several source languages. Defaults to the memory’s primary source language.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language (BCP-47).",
            "examples": [
              "hi-IN"
            ]
          },
          "targetText": {
            "type": "string",
            "description": "The stored translation, sent back unchanged: the status is saved together with the text.",
            "examples": [
              "मिनटों में खाता खोलें"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "description": "The new review status: `unverified` (machine output), `verified` (proofread) or `approved`.",
            "examples": [
              "approved"
            ]
          }
        },
        "required": [
          "sourceText",
          "targetLanguage",
          "targetText",
          "status"
        ]
      },
      "SetTmStyleGuideDto": {
        "type": "object",
        "properties": {
          "styleGuideId": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the organization style guide to follow, from List style guides. `null` (or no field) stops following one.",
            "examples": [
              "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
            ]
          }
        }
      },
      "ShareTmDto": {
        "type": "object",
        "properties": {
          "orgIds": {
            "minItems": 1,
            "description": "IDs of the child organizations to share with (from List shareable organizations). Each must be a direct child of your organization. Sharing again with an organization that already has access does nothing.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "examples": [
              [
                "8a2c4e6f-1b3d-4f5a-9c7e-2d4f6b8a0c1e"
              ]
            ]
          }
        },
        "required": [
          "orgIds"
        ]
      },
      "SourceTextItemDto": {
        "type": "object",
        "properties": {
          "text_to_translate": {
            "type": "string",
            "description": "The text to translate. `text` is accepted as an alias.",
            "examples": [
              "Open an account"
            ]
          },
          "meta": {
            "type": "object",
            "additionalProperties": true,
            "description": "Free-form context for this text only, such as its i18n key, the screen it is on or a length limit. VitraTM passes it to the model and returns it on the matching result; Phrase ignores it.",
            "examples": [
              {
                "key": "onboarding.cta",
                "maxLength": 24
              }
            ]
          }
        },
        "required": [
          "text_to_translate"
        ]
      },
      "StagedUploadTicketDto": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "Presigned URL. `PUT` the file bytes to it within `expiresInSeconds`, with exactly the headers in `headers`, without your API key."
          },
          "uploadKey": {
            "type": "string",
            "description": "The upload key. Send it as `uploadKey` to the step the file is for once the `PUT` has finished. It can be used once, and an upload not used within a day is deleted.",
            "examples": [
              "1f0c…/staged-uploads/7b9e….csv"
            ]
          },
          "headers": {
            "type": "object",
            "description": "Headers the `PUT` must send exactly (the URL is signed over them).",
            "examples": [
              {
                "Content-Type": "text/csv",
                "Content-Disposition": "attachment"
              }
            ]
          },
          "expiresInSeconds": {
            "type": "number",
            "description": "Seconds the URL stays valid for starting the `PUT`.",
            "examples": [
              600
            ]
          },
          "maxBytes": {
            "type": "number",
            "description": "The largest file this step takes, in bytes.",
            "examples": [
              26214400
            ]
          }
        },
        "required": [
          "uploadUrl",
          "uploadKey",
          "headers",
          "expiresInSeconds",
          "maxBytes"
        ]
      },
      "StyleGuideDetailDto": {
        "type": "object",
        "properties": {
          "styleGuideId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the style guide.",
            "examples": [
              "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name, unique within your organization.",
            "examples": [
              "Brand voice 2026"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description. Null when not set.",
            "examples": [
              "House style for all consumer-facing copy."
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "empty",
              "processing",
              "ready",
              "failed"
            ],
            "description": "`empty` (no files and no rules yet), `processing` (rules are being extracted from its files; poll Get a style guide), `ready` or `failed` (see `extractionError`).",
            "examples": [
              "ready"
            ]
          },
          "extractionError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last extraction failed. Null otherwise.",
            "examples": [
              null
            ]
          },
          "extractionStartedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the current or last extraction started.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "rulesSource": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "extracted",
              "manual",
              "migrated"
            ],
            "description": "Where the rules last came from: `extracted` from files, written by hand (`manual`), or `migrated` from an older guide. Null with no rules.",
            "examples": [
              "extracted"
            ]
          },
          "rulesUpdatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the rules last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "ruleCount": {
            "type": "number",
            "description": "Number of rules, active or not.",
            "examples": [
              42
            ]
          },
          "fileCount": {
            "type": "number",
            "description": "Number of files.",
            "examples": [
              2
            ]
          },
          "ruleLanguages": {
            "description": "Languages that rules name (BCP-47). Rules for every language are not listed.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "mr-IN"
              ]
            ]
          },
          "createdBy": {
            "description": "Who created the guide.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "updatedBy": {
            "description": "Who changed the guide last.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the guide was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the guide was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "rules": {
            "description": "Every rule, in position order: the order translation sends them.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StyleGuideRuleDto"
            }
          },
          "generalCount": {
            "type": "number",
            "description": "Rules for every language, active or not.",
            "examples": [
              18
            ]
          },
          "languageStats": {
            "description": "Rule counts for each language that rules name.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StyleGuideLanguageStatsDto"
            }
          },
          "files": {
            "description": "The uploaded files.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StyleGuideFileDto"
            }
          },
          "attachedTmIds": {
            "description": "Provider IDs (`tmRef`) of the memories following the guide. Use `memories` for your memories' IDs and names.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "0b6f7d2a-41c9-4d8e-a3f5-9c2e7b1d4a60"
              ]
            ]
          },
          "memories": {
            "description": "Translation memories of your organization that follow the guide, by name.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinkedMemoryDto"
            },
            "examples": [
              [
                {
                  "id": "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77",
                  "name": "Marketing site"
                }
              ]
            ]
          },
          "unsupportedLanguages": {
            "description": "Languages named by rules or files that the platform does not support, normally none. Reassign them with Update rules in bulk or Update a style guide file.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          }
        },
        "required": [
          "styleGuideId",
          "name",
          "description",
          "status",
          "extractionError",
          "extractionStartedAt",
          "rulesSource",
          "rulesUpdatedAt",
          "ruleCount",
          "fileCount",
          "ruleLanguages",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt",
          "rules",
          "generalCount",
          "languageStats",
          "files",
          "attachedTmIds",
          "memories",
          "unsupportedLanguages"
        ]
      },
      "StyleGuideDto": {
        "type": "object",
        "properties": {
          "styleGuideId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the style guide.",
            "examples": [
              "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name, unique within your organization.",
            "examples": [
              "Brand voice 2026"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description. Null when not set.",
            "examples": [
              "House style for all consumer-facing copy."
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "empty",
              "processing",
              "ready",
              "failed"
            ],
            "description": "`empty` (no files and no rules yet), `processing` (rules are being extracted from its files; poll Get a style guide), `ready` or `failed` (see `extractionError`).",
            "examples": [
              "ready"
            ]
          },
          "extractionError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last extraction failed. Null otherwise.",
            "examples": [
              null
            ]
          },
          "extractionStartedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the current or last extraction started.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "rulesSource": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "extracted",
              "manual",
              "migrated"
            ],
            "description": "Where the rules last came from: `extracted` from files, written by hand (`manual`), or `migrated` from an older guide. Null with no rules.",
            "examples": [
              "extracted"
            ]
          },
          "rulesUpdatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the rules last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "ruleCount": {
            "type": "number",
            "description": "Number of rules, active or not.",
            "examples": [
              42
            ]
          },
          "fileCount": {
            "type": "number",
            "description": "Number of files.",
            "examples": [
              2
            ]
          },
          "ruleLanguages": {
            "description": "Languages that rules name (BCP-47). Rules for every language are not listed.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "mr-IN"
              ]
            ]
          },
          "createdBy": {
            "description": "Who created the guide.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "updatedBy": {
            "description": "Who changed the guide last.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the guide was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the guide was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          }
        },
        "required": [
          "styleGuideId",
          "name",
          "description",
          "status",
          "extractionError",
          "extractionStartedAt",
          "rulesSource",
          "rulesUpdatedAt",
          "ruleCount",
          "fileCount",
          "ruleLanguages",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt"
        ]
      },
      "StyleGuideEditErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code.",
            "examples": [
              409
            ]
          },
          "message": {
            "type": "string",
            "description": "Why the edit was refused, in plain words.",
            "examples": [
              "Another rule already says this."
            ]
          },
          "details": {
            "type": "object",
            "additionalProperties": true,
            "description": "Details to act on, when there are any. A rule text that another rule already has comes with `{ code: \"RULE_EXISTS\", ruleId }`.",
            "examples": [
              {
                "code": "RULE_EXISTS",
                "ruleId": "1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "message"
        ]
      },
      "StyleGuideFileDto": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the file.",
            "examples": [
              "9c1e3a5b-7d2f-4a6c-8e0b-2d4f6a8c0e1b"
            ]
          },
          "filename": {
            "type": "string",
            "description": "File name as uploaded.",
            "examples": [
              "hindi-style-guide.pdf"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "Media type of the file.",
            "examples": [
              "application/pdf"
            ]
          },
          "sizeBytes": {
            "type": "number",
            "description": "Size in bytes.",
            "examples": [
              482133
            ]
          },
          "languages": {
            "description": "The target languages the document is about (BCP-47). Empty means any language.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN"
              ]
            ]
          },
          "createdBy": {
            "description": "Who uploaded the file.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the file was uploaded.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          }
        },
        "required": [
          "fileId",
          "filename",
          "contentType",
          "sizeBytes",
          "languages",
          "createdBy",
          "createdAt"
        ]
      },
      "StyleGuideLanguageStatsDto": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "description": "A language that rules name (BCP-47).",
            "examples": [
              "hi-IN"
            ]
          },
          "count": {
            "type": "number",
            "description": "Rules naming it, active or not.",
            "examples": [
              12
            ]
          },
          "active": {
            "type": "number",
            "description": "Active rules naming it.",
            "examples": [
              11
            ]
          },
          "effective": {
            "type": "number",
            "description": "Active rules translation sends for it, including the rules for every language.",
            "examples": [
              30
            ]
          }
        },
        "required": [
          "language",
          "count",
          "active",
          "effective"
        ]
      },
      "StyleGuidePageDto": {
        "type": "object",
        "properties": {
          "styleGuides": {
            "description": "One page of style guides.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StyleGuideDto"
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Send as `cursor` for the next page. Null on the last page.",
            "examples": [
              "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0In0"
            ]
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether another page follows.",
            "examples": [
              false
            ]
          },
          "total": {
            "type": "number",
            "description": "Number of style guides that match `search`.",
            "examples": [
              3
            ]
          }
        },
        "required": [
          "styleGuides",
          "nextCursor",
          "hasMore"
        ]
      },
      "StyleGuideRuleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the rule.",
            "examples": [
              "1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d"
            ]
          },
          "text": {
            "type": "string",
            "description": "The rule, in plain words.",
            "examples": [
              "Address the reader as \"aap\", never \"tum\"."
            ]
          },
          "languages": {
            "description": "Languages the rule is for (BCP-47). Empty means every language.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN"
              ]
            ]
          },
          "active": {
            "type": "boolean",
            "description": "Whether translation uses the rule. An inactive rule is kept but not sent.",
            "examples": [
              true
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "extracted",
              "manual",
              "migrated"
            ],
            "description": "`extracted` from a file, `manual` (written or edited by hand) or `migrated`.",
            "examples": [
              "extracted"
            ]
          },
          "position": {
            "type": "number",
            "description": "Position in the guide. Rules are listed, and sent to the model, in this order.",
            "examples": [
              0
            ]
          },
          "createdBy": {
            "description": "Who created the rule. Null for extracted rules.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "updatedBy": {
            "description": "Who changed the rule last.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the rule was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the rule was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          }
        },
        "required": [
          "id",
          "text",
          "languages",
          "active",
          "source",
          "position",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt"
        ]
      },
      "StyleGuideRuleMutationDto": {
        "type": "object",
        "properties": {
          "styleGuideId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the style guide.",
            "examples": [
              "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name, unique within your organization.",
            "examples": [
              "Brand voice 2026"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description. Null when not set.",
            "examples": [
              "House style for all consumer-facing copy."
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "empty",
              "processing",
              "ready",
              "failed"
            ],
            "description": "`empty` (no files and no rules yet), `processing` (rules are being extracted from its files; poll Get a style guide), `ready` or `failed` (see `extractionError`).",
            "examples": [
              "ready"
            ]
          },
          "extractionError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last extraction failed. Null otherwise.",
            "examples": [
              null
            ]
          },
          "extractionStartedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the current or last extraction started.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "rulesSource": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "extracted",
              "manual",
              "migrated"
            ],
            "description": "Where the rules last came from: `extracted` from files, written by hand (`manual`), or `migrated` from an older guide. Null with no rules.",
            "examples": [
              "extracted"
            ]
          },
          "rulesUpdatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the rules last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "ruleCount": {
            "type": "number",
            "description": "Number of rules, active or not.",
            "examples": [
              42
            ]
          },
          "fileCount": {
            "type": "number",
            "description": "Number of files.",
            "examples": [
              2
            ]
          },
          "ruleLanguages": {
            "description": "Languages that rules name (BCP-47). Rules for every language are not listed.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "mr-IN"
              ]
            ]
          },
          "createdBy": {
            "description": "Who created the guide.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "updatedBy": {
            "description": "Who changed the guide last.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the guide was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the guide was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "rules": {
            "description": "Every rule, in position order: the order translation sends them.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StyleGuideRuleDto"
            }
          },
          "generalCount": {
            "type": "number",
            "description": "Rules for every language, active or not.",
            "examples": [
              18
            ]
          },
          "languageStats": {
            "description": "Rule counts for each language that rules name.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StyleGuideLanguageStatsDto"
            }
          },
          "files": {
            "description": "The uploaded files.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StyleGuideFileDto"
            }
          },
          "attachedTmIds": {
            "description": "Provider IDs (`tmRef`) of the memories following the guide. Use `memories` for your memories' IDs and names.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "0b6f7d2a-41c9-4d8e-a3f5-9c2e7b1d4a60"
              ]
            ]
          },
          "memories": {
            "description": "Translation memories of your organization that follow the guide, by name.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinkedMemoryDto"
            },
            "examples": [
              [
                {
                  "id": "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77",
                  "name": "Marketing site"
                }
              ]
            ]
          },
          "unsupportedLanguages": {
            "description": "Languages named by rules or files that the platform does not support, normally none. Reassign them with Update rules in bulk or Update a style guide file.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          },
          "outcome": {
            "type": "object",
            "additionalProperties": true,
            "description": "What the write did. Add a rule and Update a rule: `{ ruleId, merged }` (`merged` is true when the text matched another rule and the two were combined). Delete a rule: `{ ruleId }`. Update rules in bulk: `{ op, updated, deleted, unchanged, missing }`. Reorder rules: `{ moved }`. Copy rules to another language: `{ updated }`.",
            "examples": [
              {
                "ruleId": "1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d",
                "merged": false
              }
            ]
          }
        },
        "required": [
          "styleGuideId",
          "name",
          "description",
          "status",
          "extractionError",
          "extractionStartedAt",
          "rulesSource",
          "rulesUpdatedAt",
          "ruleCount",
          "fileCount",
          "ruleLanguages",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt",
          "rules",
          "generalCount",
          "languageStats",
          "files",
          "attachedTmIds",
          "memories",
          "unsupportedLanguages",
          "outcome"
        ]
      },
      "TermBaseDetailDto": {
        "type": "object",
        "properties": {
          "termBaseId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the term base.",
            "examples": [
              "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the term base.",
            "examples": [
              "Product terminology"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the term base is for. Null when not set.",
            "examples": [
              "Approved product and feature names."
            ]
          },
          "languages": {
            "description": "BCP-47 codes of the languages its terms are in. Grows as you add terms in new languages.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "en-US",
                "fr-FR",
                "hi-IN"
              ]
            ]
          },
          "createdBy": {
            "description": "Who created the term base. Null when not recorded.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "updatedBy": {
            "description": "Who last changed it. Null when not recorded.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "conceptCount": {
            "type": "number",
            "description": "Number of concepts in the term base.",
            "examples": [
              128
            ]
          },
          "termCount": {
            "type": "number",
            "description": "Number of terms across all its concepts and languages.",
            "examples": [
              342
            ]
          },
          "attachedTmIds": {
            "description": "Translation memories that use this term base, as their `tmRef` (the ID the translation service gives a memory), not their `id`. Use List memories using a term base for IDs and names.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4f9a2c7e1b3d4e5f8a6c0b2d9e1f3a5c"
              ]
            ]
          }
        },
        "required": [
          "termBaseId",
          "name",
          "description",
          "languages",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt",
          "conceptCount",
          "termCount",
          "attachedTmIds"
        ]
      },
      "TermBaseDto": {
        "type": "object",
        "properties": {
          "termBaseId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the term base.",
            "examples": [
              "a2d4f6b8-1c3e-4a5b-8d7f-9e0c1b2a3d4e"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the term base.",
            "examples": [
              "Product terminology"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the term base is for. Null when not set.",
            "examples": [
              "Approved product and feature names."
            ]
          },
          "languages": {
            "description": "BCP-47 codes of the languages its terms are in. Grows as you add terms in new languages.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "en-US",
                "fr-FR",
                "hi-IN"
              ]
            ]
          },
          "createdBy": {
            "description": "Who created the term base. Null when not recorded.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "updatedBy": {
            "description": "Who last changed it. Null when not recorded.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          }
        },
        "required": [
          "termBaseId",
          "name",
          "description",
          "languages",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt"
        ]
      },
      "TermBaseImportResultDto": {
        "type": "object",
        "properties": {
          "concepts": {
            "type": "number",
            "description": "Concepts read from the file.",
            "examples": [
              120
            ]
          },
          "terms": {
            "type": "number",
            "description": "Terms read from the file.",
            "examples": [
              310
            ]
          },
          "replaced": {
            "type": "boolean",
            "description": "Whether the term base was emptied before the import.",
            "examples": [
              false
            ]
          },
          "conceptsCreated": {
            "type": "number",
            "description": "Concepts the import created.",
            "examples": [
              20
            ]
          },
          "conceptsMatched": {
            "type": "number",
            "description": "Concepts matched to ones already in the term base.",
            "examples": [
              100
            ]
          },
          "termsCreated": {
            "type": "number",
            "description": "Terms added. The rest were already there.",
            "examples": [
              45
            ]
          }
        },
        "required": [
          "concepts",
          "terms",
          "replaced",
          "conceptsCreated",
          "conceptsMatched",
          "termsCreated"
        ]
      },
      "TermBasePageDto": {
        "type": "object",
        "properties": {
          "termBases": {
            "description": "One page of term bases.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TermBaseDto"
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page.",
            "examples": [
              "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0VDEwOjMyOjA3LjAwMFoifQ"
            ]
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether another page follows.",
            "examples": [
              true
            ]
          },
          "total": {
            "type": "number",
            "description": "Number of term bases that match the filters.",
            "examples": [
              12
            ]
          }
        },
        "required": [
          "termBases",
          "nextCursor",
          "hasMore"
        ]
      },
      "TermBaseTermDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the term.",
            "examples": [
              "e1f3a5c7-9b2d-4e6f-8a0c-1d3e5f7a9b2c"
            ]
          },
          "language": {
            "type": "string",
            "description": "BCP-47 code of the language the term is in.",
            "examples": [
              "fr-FR"
            ]
          },
          "text": {
            "type": "string",
            "description": "The term itself.",
            "examples": [
              "tableau de bord"
            ]
          },
          "forbidden": {
            "type": "boolean",
            "description": "Translators must not use this term.",
            "examples": [
              false
            ]
          },
          "preferred": {
            "type": "boolean",
            "description": "The recommended term among the concept's synonyms.",
            "examples": [
              true
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "description": "Matches only with the same capitalization.",
            "examples": [
              false
            ]
          },
          "exactMatch": {
            "type": "boolean",
            "description": "Matches only the exact wording. False also matches forms such as plurals.",
            "examples": [
              false
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "approved",
              "rejected"
            ],
            "description": "`new`, `approved` or `rejected`. Translation treats an `approved` term as binding and a `new` one as a suggestion.",
            "examples": [
              "approved"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "A note for translators.",
            "examples": [
              "Use for the analytics screen only."
            ]
          },
          "usage": {
            "type": [
              "string",
              "null"
            ],
            "description": "An example sentence with the term in use.",
            "examples": [
              "Ouvrez le tableau de bord pour voir vos ventes."
            ]
          },
          "shortTranslation": {
            "type": [
              "string",
              "null"
            ],
            "description": "A short form for places with little space.",
            "examples": [
              "TdB"
            ]
          },
          "termType": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "full_form",
              "short_form",
              "acronym",
              "abbreviation",
              "phrase",
              "variant",
              "other"
            ],
            "description": "What kind of term it is.",
            "examples": [
              "full_form"
            ]
          },
          "partOfSpeech": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "noun",
              "verb",
              "adjective",
              "adverb",
              "other"
            ],
            "description": "Part of speech.",
            "examples": [
              "noun"
            ]
          },
          "gender": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "masculine",
              "feminine",
              "neuter",
              "other"
            ],
            "description": "Grammatical gender.",
            "examples": [
              "masculine"
            ]
          },
          "number": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "singular",
              "plural",
              "uncountable",
              "other"
            ],
            "description": "Grammatical number.",
            "examples": [
              "singular"
            ]
          },
          "createdBy": {
            "description": "Who added the term. Null when not recorded.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TmAuthorDto"
              }
            ],
            "examples": [
              {
                "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
                "name": "Priya Sharma",
                "email": "priya.sharma@example.com"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the term was added.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the term was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          }
        },
        "required": [
          "id",
          "language",
          "text",
          "forbidden",
          "preferred",
          "caseSensitive",
          "exactMatch",
          "status",
          "note",
          "usage",
          "shortTranslation",
          "termType",
          "partOfSpeech",
          "gender",
          "number",
          "createdBy",
          "createdAt",
          "updatedAt"
        ]
      },
      "TerminologyResponseDto": {
        "type": "object",
        "properties": {
          "available": {
            "type": "boolean",
            "description": "False when the memory's provider has no terminology. Treat that differently from an empty `terms` list.",
            "examples": [
              true
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "The memory's primary source language (BCP-47).",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "The target language you asked for, as a BCP-47 code (a language name you sent is converted).",
            "examples": [
              "hi-IN"
            ]
          },
          "terms": {
            "description": "Terms for the language pair from the term bases attached to the memory (VitraTM) or to its Phrase project.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TerminologyTermDto"
            }
          }
        },
        "required": [
          "available",
          "sourceLanguage",
          "targetLanguage",
          "terms"
        ]
      },
      "TerminologyTermDto": {
        "type": "object",
        "properties": {
          "sourceText": {
            "type": "string",
            "description": "The term in the source language.",
            "examples": [
              "savings account"
            ]
          },
          "targetText": {
            "type": "string",
            "description": "Approved translation in the target language.",
            "examples": [
              "बचत खाता"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language (BCP-47).",
            "examples": [
              "hi-IN"
            ]
          },
          "forbidden": {
            "type": "boolean",
            "description": "True when translators must NOT use this wording.",
            "examples": [
              false
            ]
          },
          "preferred": {
            "type": "boolean",
            "description": "True for the recommended wording among synonyms.",
            "examples": [
              true
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "description": "Whether the term matches only with the same letter case.",
            "examples": [
              false
            ]
          },
          "exactMatch": {
            "type": "boolean",
            "description": "Whether the term matches only as written (true) or also in other forms, such as plurals (false).",
            "examples": [
              false
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Usage note or definition.",
            "examples": [
              "Use for retail products only."
            ]
          },
          "termBaseName": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the term base the term comes from.",
            "examples": [
              "Banking terms"
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Review state of the target term, in the provider’s words (for example `approved` or `new` on VitraTM, `Approved` on Phrase).",
            "examples": [
              "approved"
            ]
          },
          "usage": {
            "type": [
              "string",
              "null"
            ],
            "description": "An example sentence using the term.",
            "examples": [
              "अपना बचत खाता आज ही खोलें।"
            ]
          },
          "shortTranslation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short form for tight space.",
            "examples": [
              null
            ]
          },
          "termType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Term type, in the provider’s words (for example `full_form` on VitraTM).",
            "examples": [
              "full_form"
            ]
          },
          "partOfSpeech": {
            "type": [
              "string",
              "null"
            ],
            "description": "Part of speech (for example `noun`).",
            "examples": [
              "noun"
            ]
          },
          "gender": {
            "type": [
              "string",
              "null"
            ],
            "description": "Grammatical gender (for example `masculine`).",
            "examples": [
              "masculine"
            ]
          },
          "number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Grammatical number (for example `singular`).",
            "examples": [
              "singular"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject field of the concept.",
            "examples": [
              "Banking"
            ]
          },
          "subDomains": {
            "description": "Sub-fields of the concept.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Retail banking"
              ]
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Reference URL for the concept.",
            "examples": [
              null
            ]
          },
          "definition": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the concept means, in any language.",
            "examples": [
              "A deposit account that pays interest."
            ]
          },
          "conceptNote": {
            "type": [
              "string",
              "null"
            ],
            "description": "Scope note, typically what the concept must not cover.",
            "examples": [
              null
            ]
          },
          "conceptId": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the concept the term belongs to; tells apart terms with the same spelling.",
            "examples": [
              "c7e9a1b3-5d2f-4c6e-9a8b-0f1e2d3c4b5a"
            ]
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the target term was added.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "createdBy": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who added the target term.",
            "examples": [
              "Priya Sharma"
            ]
          }
        },
        "required": [
          "sourceText",
          "targetText",
          "targetLanguage"
        ]
      },
      "TermOriginDto": {
        "type": "object",
        "properties": {
          "sourceText": {
            "type": "string",
            "description": "The source text of the translation, exactly as it was translated (surrounding spaces and repeated whitespace don’t matter).",
            "examples": [
              "Save the report file"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "The target language of the translation (BCP-47).",
            "examples": [
              "de-DE"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language of the translation (BCP-47). When omitted, each of the memory’s source languages is tried.",
            "examples": [
              "en-US"
            ]
          }
        },
        "required": [
          "sourceText",
          "targetLanguage"
        ]
      },
      "TermTranslationDto": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "description": "Target language (BCP-47).",
            "examples": [
              "hi-IN"
            ]
          },
          "text": {
            "type": "string",
            "description": "The stored translation.",
            "examples": [
              "मिनटों में खाता खोलें"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "description": "Review status: `unverified` (machine output), `verified` (proofread) or `approved`. Absent for Phrase.",
            "examples": [
              "verified"
            ]
          }
        },
        "required": [
          "language",
          "text"
        ]
      },
      "TmAuthorDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the author. A member of your organization appears as `universe:member:<memberId>`; changes made by the platform itself as `universe:org:<organizationId>`.",
            "examples": [
              "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the author, when known.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "email": {
            "type": "string",
            "description": "Email address of the author, when known.",
            "examples": [
              "priya.sharma@example.com"
            ]
          }
        },
        "required": [
          "id"
        ]
      },
      "TmImportFileQueuedDto": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the import. Poll it with Get an import.",
            "examples": [
              "7d9f1b3c-5e2a-4c6d-8f0a-6b8d0f2a4c7e"
            ]
          },
          "total": {
            "type": "number",
            "description": "Number of entries to import: one per source language and source text, with all its translations.",
            "examples": [
              120
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "tmx",
              "xliff",
              "xlsx",
              "csv",
              "tsv"
            ],
            "description": "The format the file was read as.",
            "examples": [
              "tmx"
            ]
          },
          "summary": {
            "description": "What was found in the file.",
            "allOf": [
              {
                "$ref": "#/components/schemas/TmImportFileSummaryDto"
              }
            ]
          },
          "warnings": {
            "description": "Problems found while reading the file that did not stop it.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Row 14: no target text, skipped."
              ]
            ]
          }
        },
        "required": [
          "operationId",
          "total",
          "format",
          "summary",
          "warnings"
        ]
      },
      "TmImportFileSummaryDto": {
        "type": "object",
        "properties": {
          "units": {
            "type": "number",
            "description": "Translation units read from the file.",
            "examples": [
              120
            ]
          },
          "translations": {
            "type": "number",
            "description": "Translations read from the file, across all units.",
            "examples": [
              360
            ]
          },
          "sourceLanguages": {
            "description": "Source languages found in the file (BCP-47).",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "en-US"
              ]
            ]
          },
          "targetLanguages": {
            "description": "Target languages found in the file (BCP-47).",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "fr-FR",
                "de-DE"
              ]
            ]
          },
          "skipped": {
            "type": "number",
            "description": "Units skipped because they could not be read.",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "units",
          "translations",
          "sourceLanguages",
          "targetLanguages",
          "skipped"
        ]
      },
      "TmImportOperationDto": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the import.",
            "examples": [
              "7d9f1b3c-5e2a-4c6d-8f0a-6b8d0f2a4c7e"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`RUNNING` (poll again), `COMPLETED` (finished; see `imported` and `failed`) or `FAILED` (stopped; see `error`).",
            "examples": [
              "RUNNING"
            ]
          },
          "total": {
            "type": "number",
            "description": "Entries to import.",
            "examples": [
              120
            ]
          },
          "processed": {
            "type": "number",
            "description": "Entries handled so far.",
            "examples": [
              75
            ]
          },
          "imported": {
            "type": "number",
            "description": "Entries written so far.",
            "examples": [
              74
            ]
          },
          "failed": {
            "type": "number",
            "description": "Entries that could not be written.",
            "examples": [
              1
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the import stopped. Null unless `status` is `failed`.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "operationId",
          "status",
          "total",
          "processed",
          "imported",
          "failed",
          "error"
        ]
      },
      "TmImportQueuedDto": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the import. Poll it with Get an import.",
            "examples": [
              "7d9f1b3c-5e2a-4c6d-8f0a-6b8d0f2a4c7e"
            ]
          },
          "total": {
            "type": "number",
            "description": "Number of entries to import: one per source language and source text, with all its translations.",
            "examples": [
              120
            ]
          }
        },
        "required": [
          "operationId",
          "total"
        ]
      },
      "TmOrganizationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the child organization.",
            "examples": [
              "8a2c4e6f-1b3d-4f5a-9c7e-2d4f6b8a0c1e"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the child organization.",
            "examples": [
              "Acme India"
            ]
          },
          "slug": {
            "type": "string",
            "description": "URL slug of the child organization.",
            "examples": [
              "acme-india"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "slug"
        ]
      },
      "TmOwnerDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the owning organization.",
            "examples": [
              "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the owning organization.",
            "examples": [
              "Acme Global"
            ]
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "TmProviderCountsDto": {
        "type": "object",
        "properties": {
          "vitratm": {
            "type": "number",
            "description": "Memories on VitraTM that match the other filters. Absent when there are none.",
            "examples": [
              12
            ]
          },
          "phrase": {
            "type": "number",
            "description": "Memories on Phrase that match the other filters. Absent when there are none.",
            "examples": [
              3
            ]
          }
        }
      },
      "TmProviderInfoDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "vitratm",
              "phrase"
            ],
            "description": "Provider ID, to send as `provider`.",
            "examples": [
              "vitratm"
            ]
          },
          "label": {
            "type": "string",
            "description": "Display name.",
            "examples": [
              "VitraTM"
            ]
          },
          "available": {
            "type": "boolean",
            "description": "Whether your organization can use it. VitraTM is always available; Phrase only once your organization has saved a Phrase API token in its settings.",
            "examples": [
              true
            ]
          },
          "methods": {
            "description": "Translation methods the provider offers. Note: Translate texts accepts `llm_translate` for VitraTM and `pretranslate_job` or `language_ai` for Phrase.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TmTranslationMethodDto"
            }
          },
          "supportsMultiSource": {
            "type": "boolean",
            "description": "Whether one memory can hold more than one source language (true for VitraTM).",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "provider",
          "label",
          "available",
          "methods",
          "supportsMultiSource"
        ]
      },
      "TmSuccessResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ],
            "description": "Always true when the change was made.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "success"
        ]
      },
      "TmTermDto": {
        "type": "object",
        "properties": {
          "sourceText": {
            "type": "string",
            "description": "The source text.",
            "examples": [
              "Open an account in minutes"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language of this entry (BCP-47). A memory with several source languages keeps one entry per source language and text.",
            "examples": [
              "en-US"
            ]
          },
          "targets": {
            "description": "Its translations. With a `status` filter, only the translations with that status.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TermTranslationDto"
            }
          }
        },
        "required": [
          "sourceText",
          "sourceLanguage",
          "targets"
        ]
      },
      "TmTermOriginResponseDto": {
        "type": "object",
        "properties": {
          "found": {
            "type": "boolean",
            "description": "Whether the memory holds a machine-translation origin for this translation.",
            "examples": [
              true
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "no_memory",
              "not_supported",
              "no_record",
              "no_source"
            ],
            "description": "Why there is none, when `found` is false: `not_supported` — the memory’s provider keeps no origins (Phrase); `no_record` — a person wrote or imported it, it was machine-translated before origins were recorded, or there is no such translation; `no_source` — the source text is empty.",
            "examples": [
              "no_record"
            ]
          },
          "mtText": {
            "type": "string",
            "description": "The machine translation the origin explains, exactly as the model produced it. `origin.evidence` spans index into this text.",
            "examples": [
              "Berichtsdatei speichern"
            ]
          },
          "current": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "The translation as the memory holds it now — `{ text, status }` — or null when it no longer exists.",
            "examples": [
              {
                "text": "Berichtsdatei sichern",
                "status": "verified"
              }
            ]
          },
          "edited": {
            "type": "boolean",
            "description": "Whether someone changed the text since the machine wrote it. An edit never changes the origin.",
            "examples": [
              true
            ]
          },
          "origin": {
            "type": "object",
            "additionalProperties": true,
            "description": "The origin stored when the machine wrote this translation: the same shape as `origin` on a translate result, plus `at` (when) and `jobId` / `requestId` when known."
          },
          "catalog": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "The rules the origin’s rule ids name, as they were when it was translated. Null when no rules were shown."
          }
        },
        "required": [
          "found"
        ]
      },
      "TmTermPageDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "One page of terms.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TmTermDto"
            }
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "description": "The target language the terms were filtered by, in the code this memory stores (`language` may be sent as a catalog name such as `french_france`). Each term then carries only that language. Null when no language was asked for.",
            "examples": [
              "fr-FR"
            ]
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Send as `cursor` to get the next page. Null on the last page.",
            "examples": [
              "eyJjcmVhdGVkQXQiOiIyMDI2LTA5LTE0In0"
            ]
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether another page follows.",
            "examples": [
              true
            ]
          },
          "total": {
            "type": "number",
            "description": "Number of terms that match the filters. Only on the first page (no `cursor`); keep it for later pages.",
            "examples": [
              1280
            ]
          },
          "limit": {
            "type": "number",
            "description": "Page size used.",
            "examples": [
              50
            ]
          }
        },
        "required": [
          "data",
          "language",
          "nextCursor",
          "hasMore",
          "limit"
        ]
      },
      "TmTranslationMethodDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Method ID, to send as `method` to Translate texts.",
            "examples": [
              "llm_translate"
            ]
          },
          "label": {
            "type": "string",
            "description": "Display name.",
            "examples": [
              "LLM Translate"
            ]
          }
        },
        "required": [
          "id",
          "label"
        ]
      },
      "TranslatedTextDto": {
        "type": "object",
        "properties": {
          "sourceText": {
            "type": "string",
            "description": "The text you sent.",
            "examples": [
              "Open an account in minutes"
            ]
          },
          "targetText": {
            "type": "string",
            "description": "The translation.",
            "examples": [
              "मिनटों में खाता खोलें"
            ]
          },
          "matchType": {
            "type": "string",
            "enum": [
              "exact",
              "fuzzy",
              "semantic",
              "mt"
            ],
            "description": "Where the translation came from: `exact` (a stored translation reused as is), `fuzzy` or `semantic` (a close stored match), or `mt` (machine translated now). `mt` results are saved to the memory as `unverified`, except in a `reference`-mode memory, where nothing is saved automatically and a 100% match comes back as `mt` (the AI checked and corrected it).",
            "examples": [
              "mt"
            ]
          },
          "score": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Match score from 0 to 1, when the provider reports one (1 for an exact match).",
            "examples": [
              1
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "description": "Review status of the translation: an `exact` match carries the stored status, `mt` is `unverified`. Absent for Phrase, which has no review status.",
            "examples": [
              "unverified"
            ]
          },
          "meta": {
            "type": "object",
            "additionalProperties": true,
            "description": "The `meta` you sent with this text, returned unchanged (VitraTM only). Only present when you used the object form of `sourceTexts`.",
            "examples": [
              {
                "key": "onboarding.cta"
              }
            ]
          },
          "origin": {
            "type": "object",
            "additionalProperties": true,
            "description": "Why the translation reads as it does — only when you sent `includeOrigin: true` (VitraTM only). `decidedBy` says what produced it (`tm_exact`, `llm`, `azure`, `deepl`); `shown` lists what the model was given for this text (TM references, term-base and glossary entries, rule ids, context flags); `evidence` marks the spans of the translation that come from those inputs and `llmShare`, the share that is the model’s own wording; `citations` is what the model says it followed, checked against the evidence; `notShown` lists inputs that existed but were left out, with the reason. Rule ids (`D1…` built-in, `S1…` style guide) point into the group’s `originCatalog`.",
            "examples": [
              {
                "v": 1,
                "decidedBy": "llm",
                "path": "sync",
                "promptVersion": "3c1d…",
                "shown": {
                  "references": [
                    {
                      "id": "R1",
                      "kind": "similar",
                      "score": 0.92,
                      "status": "verified",
                      "source": "Save file",
                      "target": "Datei speichern"
                    }
                  ],
                  "terms": [],
                  "anchors": [],
                  "rules": [
                    "S1"
                  ],
                  "tmContext": false,
                  "meta": false,
                  "additionalPrompt": false
                },
                "evidence": {
                  "spans": [
                    {
                      "start": 15,
                      "end": 24,
                      "by": "R1",
                      "kind": "tm_reference"
                    }
                  ],
                  "terms": [],
                  "references": [
                    {
                      "id": "R1",
                      "overlap": 0.41,
                      "copied": false
                    }
                  ],
                  "anchors": [],
                  "llmShare": 0.59
                }
              }
            ]
          }
        },
        "required": [
          "sourceText",
          "targetText"
        ]
      },
      "TranslateDto": {
        "type": "object",
        "properties": {
          "tmId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation memory to translate with. It can be one your organization owns or one shared with it.",
            "examples": [
              "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
            ]
          },
          "sourceTexts": {
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SourceTextItemDto"
                }
              }
            ],
            "description": "The texts to translate, in order. Either an array of strings, or an array of `{ text_to_translate, meta }` objects that give each text its own context (`text` is accepted for `text_to_translate`). Do not mix the two forms. VitraTM passes `meta` to the model and returns it with the result; Phrase ignores it. The same text sent with two different `meta` values is translated twice, but the memory stores only the first translation.",
            "examples": [
              [
                "Open an account in minutes",
                "Your savings, your rules"
              ]
            ]
          },
          "targetLanguages": {
            "minItems": 1,
            "description": "Languages to translate into, as BCP-47 codes. A language the memory does not have yet is added to it.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "fr-FR"
              ]
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Language of the texts (BCP-47). Defaults to the memory's primary source language. VitraTM accepts any supported language and adds it to the memory; Phrase accepts only the memory's source.",
            "examples": [
              "en-US"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "llm_translate",
              "pretranslate_job",
              "language_ai"
            ],
            "description": "How to translate. VitraTM: `llm_translate` (the default and only choice). Phrase: `pretranslate_job` (the default; runs in the background and returns an `operationId`) or `language_ai` (answers in the request).",
            "examples": [
              "llm_translate"
            ]
          },
          "leverageMinStatus": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "description": "The lowest review status a stored translation needs to be reused as is. `verified` reuses only verified and approved translations, so unreviewed machine output is translated again. Omit it to reuse any. VitraTM only.",
            "examples": [
              "verified"
            ]
          },
          "additionalPrompt": {
            "type": "string",
            "description": "An extra instruction for the model on this request only, on top of the style guide. VitraTM only; ignored by Phrase and by the `azure` and `deepl` engines.",
            "examples": [
              "Keep the tone playful and use second person."
            ]
          },
          "includeOrigin": {
            "type": "boolean",
            "description": "Also return why each translation reads as it does: what the model was shown, which of it the translation uses, what the model says it followed and what was left out (`translations[].origin`), plus the rules those origins name (`originCatalog` per language). VitraTM only. Adds about 1-5 KB per translation.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "tmId",
          "sourceTexts",
          "targetLanguages"
        ]
      },
      "TranslateProcessingResponseDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "RUNNING"
            ],
            "description": "`RUNNING`: the translation runs in the background. Poll Get a translation operation with `operationId`.",
            "examples": [
              "RUNNING"
            ]
          },
          "operationId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the background operation.",
            "examples": [
              "7d9f1b3c-5e2a-4c6d-8f0a-6b8d0f2a4c7e"
            ]
          }
        },
        "required": [
          "status",
          "operationId"
        ]
      },
      "TranslateReadyResponseDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "COMPLETED"
            ],
            "description": "`COMPLETED`: the translations are in `data`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "data": {
            "description": "One group per target language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslationGroupDto"
            }
          },
          "matchMode": {
            "type": "string",
            "enum": [
              "match",
              "reference"
            ],
            "description": "The memory's mode as this request used it. Phrase memories are always `match`.",
            "examples": [
              "match"
            ]
          },
          "stored": {
            "type": "boolean",
            "description": "Whether the memory keeps these translations: `true` in Match mode (machine translations are saved as `unverified`), `false` in Reference mode, which saves nothing. Read this, not a copy of the memory's settings, to tell people whether the result was added.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "status",
          "data",
          "matchMode",
          "stored"
        ]
      },
      "TranslationGroupDto": {
        "type": "object",
        "properties": {
          "targetLanguage": {
            "type": "string",
            "description": "The target language of these translations (BCP-47).",
            "examples": [
              "hi-IN"
            ]
          },
          "translations": {
            "description": "One result per source text, in the order you sent them.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslatedTextDto"
            }
          },
          "originCatalog": {
            "type": "object",
            "additionalProperties": true,
            "description": "The rules this language’s origins name by id — only with `includeOrigin: true`, when some translation was shown rules. `styleGuideId` and `defaultRules` say where they came from; each rule has its `id` (`D1…` built-in, `S1…` style guide), `scope` and `text`. Absent when the rules changed while the request ran.",
            "examples": [
              {
                "styleGuideId": "b2f0…",
                "defaultRules": "de-DE",
                "rules": [
                  {
                    "id": "D1",
                    "scope": "default",
                    "text": "Write compound nouns as one word."
                  },
                  {
                    "id": "S1",
                    "scope": "general",
                    "ruleId": "7a9e…",
                    "text": "Use the infinitive for button labels."
                  }
                ]
              }
            ]
          }
        },
        "required": [
          "targetLanguage",
          "translations"
        ]
      },
      "TranslationMemoryDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation memory.",
            "examples": [
              "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name, unique within your organization.",
            "examples": [
              "Marketing site"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description. Null when not set.",
            "examples": [
              "Website and campaign copy for the EMEA launch."
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "vitratm",
              "phrase"
            ],
            "description": "The provider that stores the memory: `vitratm` or `phrase`. Fixed at creation.",
            "examples": [
              "vitratm"
            ]
          },
          "tmRef": {
            "type": "string",
            "description": "The memory's ID on the provider (a VitraTM memory ID or a Phrase translation memory UID). Fixed at creation.",
            "examples": [
              "0b6f7d2a-41c9-4d8e-a3f5-9c2e7b1d4a60"
            ]
          },
          "providerProjectId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Phrase project UID used by the `pretranslate_job` method. Phrase memories only; null for VitraTM.",
            "examples": [
              null
            ]
          },
          "mtProfileUid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Phrase machine translation profile UID used by `language_ai`. Phrase memories only; null for VitraTM.",
            "examples": [
              null
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Primary source language, as a BCP-47 code. VitraTM memories can also translate from other languages (see `additionalSourceLanguages` on Get a translation memory).",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguages": {
            "description": "Target languages, as BCP-47 codes. A language is added automatically the first time you translate into it or write a term in it.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "fr-FR"
              ]
            ]
          },
          "embeddingEnabled": {
            "type": "boolean",
            "description": "Smart Match: whether the memory also matches by meaning, on top of exact and fuzzy matches. VitraTM only; always false for Phrase. Fixed at creation.",
            "examples": [
              false
            ]
          },
          "engine": {
            "type": "string",
            "enum": [
              "gemini",
              "azure",
              "deepl"
            ],
            "description": "Machine translation engine for text the memory has no match for: `gemini`, `azure` or `deepl`. VitraTM only (Phrase memories carry the default and ignore it). `azure` and `deepl` ignore the style guide and `additionalPrompt`.",
            "examples": [
              "gemini"
            ]
          },
          "matchMode": {
            "type": "string",
            "enum": [
              "match",
              "reference"
            ],
            "description": "How the memory serves its own 100% matches. `match` reuses an exact match as it is and saves new machine translations to the memory. `reference` has the AI check and fix every exact match (term bases, glossaries and the style guide win) and saves nothing automatically; only \"Sync to TM\" writes. VitraTM only; always `match` for Phrase.",
            "examples": [
              "match"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the organization that owns the memory.",
            "examples": [
              "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the memory was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the memory was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "access": {
            "type": "string",
            "enum": [
              "owned",
              "shared"
            ],
            "description": "`owned` when your organization owns the memory; `shared` when its parent organization shared it with you.",
            "examples": [
              "owned"
            ]
          },
          "owner": {
            "description": "The owner of a `shared` memory. Absent for `owned` ones.",
            "allOf": [
              {
                "$ref": "#/components/schemas/TmOwnerDto"
              }
            ]
          },
          "additionalSourceLanguages": {
            "description": "Source languages the memory holds besides `sourceLanguage` (VitraTM only). Empty for Phrase, or when the provider could not be read.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "de-DE"
              ]
            ]
          },
          "context": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the memory is for: client, product, audience. Sent to the model with every translation. VitraTM only; null for Phrase, or when the provider could not be read.",
            "examples": [
              "Consumer banking app for first-time investors in India. Friendly, plain and short."
            ]
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "provider",
          "tmRef",
          "providerProjectId",
          "mtProfileUid",
          "sourceLanguage",
          "targetLanguages",
          "embeddingEnabled",
          "engine",
          "matchMode",
          "fk_orgId",
          "createdAt",
          "updatedAt",
          "access",
          "additionalSourceLanguages",
          "context"
        ]
      },
      "TranslationMemoryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation memory.",
            "examples": [
              "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name, unique within your organization.",
            "examples": [
              "Marketing site"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description. Null when not set.",
            "examples": [
              "Website and campaign copy for the EMEA launch."
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "vitratm",
              "phrase"
            ],
            "description": "The provider that stores the memory: `vitratm` or `phrase`. Fixed at creation.",
            "examples": [
              "vitratm"
            ]
          },
          "tmRef": {
            "type": "string",
            "description": "The memory's ID on the provider (a VitraTM memory ID or a Phrase translation memory UID). Fixed at creation.",
            "examples": [
              "0b6f7d2a-41c9-4d8e-a3f5-9c2e7b1d4a60"
            ]
          },
          "providerProjectId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Phrase project UID used by the `pretranslate_job` method. Phrase memories only; null for VitraTM.",
            "examples": [
              null
            ]
          },
          "mtProfileUid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Phrase machine translation profile UID used by `language_ai`. Phrase memories only; null for VitraTM.",
            "examples": [
              null
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Primary source language, as a BCP-47 code. VitraTM memories can also translate from other languages (see `additionalSourceLanguages` on Get a translation memory).",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguages": {
            "description": "Target languages, as BCP-47 codes. A language is added automatically the first time you translate into it or write a term in it.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "fr-FR"
              ]
            ]
          },
          "embeddingEnabled": {
            "type": "boolean",
            "description": "Smart Match: whether the memory also matches by meaning, on top of exact and fuzzy matches. VitraTM only; always false for Phrase. Fixed at creation.",
            "examples": [
              false
            ]
          },
          "engine": {
            "type": "string",
            "enum": [
              "gemini",
              "azure",
              "deepl"
            ],
            "description": "Machine translation engine for text the memory has no match for: `gemini`, `azure` or `deepl`. VitraTM only (Phrase memories carry the default and ignore it). `azure` and `deepl` ignore the style guide and `additionalPrompt`.",
            "examples": [
              "gemini"
            ]
          },
          "matchMode": {
            "type": "string",
            "enum": [
              "match",
              "reference"
            ],
            "description": "How the memory serves its own 100% matches. `match` reuses an exact match as it is and saves new machine translations to the memory. `reference` has the AI check and fix every exact match (term bases, glossaries and the style guide win) and saves nothing automatically; only \"Sync to TM\" writes. VitraTM only; always `match` for Phrase.",
            "examples": [
              "match"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the organization that owns the memory.",
            "examples": [
              "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the memory was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the memory was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "provider",
          "tmRef",
          "providerProjectId",
          "mtProfileUid",
          "sourceLanguage",
          "targetLanguages",
          "embeddingEnabled",
          "engine",
          "matchMode",
          "fk_orgId",
          "createdAt",
          "updatedAt"
        ]
      },
      "TranslationMemoryListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation memory.",
            "examples": [
              "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name, unique within your organization.",
            "examples": [
              "Marketing site"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description. Null when not set.",
            "examples": [
              "Website and campaign copy for the EMEA launch."
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "vitratm",
              "phrase"
            ],
            "description": "The provider that stores the memory: `vitratm` or `phrase`. Fixed at creation.",
            "examples": [
              "vitratm"
            ]
          },
          "tmRef": {
            "type": "string",
            "description": "The memory's ID on the provider (a VitraTM memory ID or a Phrase translation memory UID). Fixed at creation.",
            "examples": [
              "0b6f7d2a-41c9-4d8e-a3f5-9c2e7b1d4a60"
            ]
          },
          "providerProjectId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Phrase project UID used by the `pretranslate_job` method. Phrase memories only; null for VitraTM.",
            "examples": [
              null
            ]
          },
          "mtProfileUid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Phrase machine translation profile UID used by `language_ai`. Phrase memories only; null for VitraTM.",
            "examples": [
              null
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Primary source language, as a BCP-47 code. VitraTM memories can also translate from other languages (see `additionalSourceLanguages` on Get a translation memory).",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguages": {
            "description": "Target languages, as BCP-47 codes. A language is added automatically the first time you translate into it or write a term in it.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "fr-FR"
              ]
            ]
          },
          "embeddingEnabled": {
            "type": "boolean",
            "description": "Smart Match: whether the memory also matches by meaning, on top of exact and fuzzy matches. VitraTM only; always false for Phrase. Fixed at creation.",
            "examples": [
              false
            ]
          },
          "engine": {
            "type": "string",
            "enum": [
              "gemini",
              "azure",
              "deepl"
            ],
            "description": "Machine translation engine for text the memory has no match for: `gemini`, `azure` or `deepl`. VitraTM only (Phrase memories carry the default and ignore it). `azure` and `deepl` ignore the style guide and `additionalPrompt`.",
            "examples": [
              "gemini"
            ]
          },
          "matchMode": {
            "type": "string",
            "enum": [
              "match",
              "reference"
            ],
            "description": "How the memory serves its own 100% matches. `match` reuses an exact match as it is and saves new machine translations to the memory. `reference` has the AI check and fix every exact match (term bases, glossaries and the style guide win) and saves nothing automatically; only \"Sync to TM\" writes. VitraTM only; always `match` for Phrase.",
            "examples": [
              "match"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the organization that owns the memory.",
            "examples": [
              "3b8e5d21-7c4f-4a9e-b6d2-1f0e9a8c7b65"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the memory was created.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the memory was last changed.",
            "examples": [
              "2026-09-14T10:32:07.000Z"
            ]
          },
          "access": {
            "type": "string",
            "enum": [
              "owned",
              "shared"
            ],
            "description": "`owned` when your organization owns the memory; `shared` when its parent organization shared it with you.",
            "examples": [
              "owned"
            ]
          },
          "owner": {
            "description": "The owner of a `shared` memory. Absent for `owned` ones.",
            "allOf": [
              {
                "$ref": "#/components/schemas/TmOwnerDto"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "provider",
          "tmRef",
          "providerProjectId",
          "mtProfileUid",
          "sourceLanguage",
          "targetLanguages",
          "embeddingEnabled",
          "engine",
          "matchMode",
          "fk_orgId",
          "createdAt",
          "updatedAt",
          "access"
        ]
      },
      "TranslationOperationDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`RUNNING` (poll again), `COMPLETED` (translations in `data`) or `FAILED` (reason in `error`).",
            "examples": [
              "COMPLETED"
            ]
          },
          "data": {
            "description": "One group per target language. Present once `status` is `ready`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslationGroupDto"
            }
          },
          "error": {
            "type": "string",
            "description": "Why the operation failed. Present when `status` is `failed`.",
            "examples": [
              "One or more Phrase jobs failed."
            ]
          }
        },
        "required": [
          "status"
        ]
      },
      "TranslationServiceErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code.",
            "examples": [
              502
            ]
          },
          "message": {
            "type": "string",
            "description": "What went wrong, in plain words.",
            "examples": [
              "The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening."
            ]
          },
          "error": {
            "type": "string",
            "enum": [
              "TranslationServiceError"
            ],
            "description": "Always `TranslationServiceError`.",
            "examples": [
              "TranslationServiceError"
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "error"
        ]
      },
      "UpdateConceptBodyDto": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "maxLength": 256,
            "description": "Subject field.",
            "examples": [
              "Analytics"
            ]
          },
          "subDomains": {
            "description": "Narrower subject fields (each up to 256 characters).",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Reporting"
              ]
            ]
          },
          "url": {
            "type": "string",
            "maxLength": 2000,
            "description": "A reference URL for the concept.",
            "examples": [
              "https://example.com/docs/dashboard"
            ]
          },
          "definition": {
            "type": "string",
            "maxLength": 8000,
            "description": "What the concept means, in any language.",
            "examples": [
              "The screen that summarizes account activity."
            ]
          },
          "conceptNote": {
            "type": "string",
            "maxLength": 8000,
            "description": "Scope note, usually what the concept does not cover.",
            "examples": [
              "Not the admin console."
            ]
          },
          "terms": {
            "description": "The concept's complete set of terms. Omit it to change only the concept's own fields. When sent, terms with an `id` are updated, terms without one are added, and existing terms you leave out are **deleted**.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConceptTermUpsertBodyDto"
            }
          }
        }
      },
      "UpdateGlossaryBodyDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 256,
            "description": "New name. Must be unique in your organization and not blank. Omit to keep the current one.",
            "examples": [
              "Brand names"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 2000,
            "description": "New description. An empty string clears it. Omit to keep the current one.",
            "examples": [
              "Brand and product names only."
            ]
          }
        }
      },
      "UpdateGlossaryEntryBodyDto": {
        "type": "object",
        "properties": {
          "term": {
            "type": "string",
            "maxLength": 2000,
            "description": "New term. Omit to keep the current one.",
            "examples": [
              "Dashboard"
            ]
          },
          "language": {
            "type": "string",
            "maxLength": 35,
            "description": "New BCP-47 code of the language the term is written in. Omit to keep the current one.",
            "examples": [
              "en-US"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 4000,
            "description": "New description. An empty string clears it.",
            "examples": [
              "The home screen that shows usage charts."
            ]
          },
          "translatable": {
            "type": "boolean",
            "description": "`false` means do not translate.",
            "examples": [
              false
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "description": "Match the term only with the same letter case.",
            "examples": [
              true
            ]
          },
          "tags": {
            "maxItems": 50,
            "description": "Replaces all tags of the entry.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "ui",
                "navigation"
              ]
            ]
          },
          "translations": {
            "maxItems": 200,
            "description": "Per-language changes: each listed language is set, a `text` of `null` removes that language, and languages you do not list are kept.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlossaryTranslationInputDto"
            }
          }
        }
      },
      "UpdateStyleGuideDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 256,
            "description": "New name, unique within your organization. Up to 256 characters.",
            "examples": [
              "Brand voice 2026"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 2000,
            "description": "New description, up to 2,000 characters. An empty string clears it.",
            "examples": [
              "House style for all consumer-facing copy."
            ]
          }
        }
      },
      "UpdateStyleGuideFileDto": {
        "type": "object",
        "properties": {
          "languages": {
            "maxItems": 50,
            "description": "The target languages the document is about, as BCP-47 codes (up to 50). An empty list means any language. Rules are extracted again for the new languages.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN"
              ]
            ]
          }
        },
        "required": [
          "languages"
        ]
      },
      "UpdateStyleGuideRuleDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 2000,
            "description": "New text, up to 2,000 characters. Text equal to another rule's answers 409 unless `merge` is true.",
            "examples": [
              "Address the reader as \"aap\". Never use \"tum\" or \"tu\"."
            ]
          },
          "languages": {
            "maxItems": 50,
            "description": "New languages, as BCP-47 codes (up to 50). An empty list means every language.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "mr-IN"
              ]
            ]
          },
          "active": {
            "type": "boolean",
            "description": "Turn the rule on (true) or off (false).",
            "examples": [
              false
            ]
          },
          "merge": {
            "type": "boolean",
            "default": false,
            "description": "When the new text equals another rule's, fold this rule into that one (their languages are combined) instead of answering 409.",
            "examples": [
              true
            ]
          }
        }
      },
      "UpdateTermBaseBodyDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 256,
            "description": "New name. Omit to keep the current one.",
            "examples": [
              "Product terminology 2026"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 2000,
            "description": "New description. An empty string clears it; omit to keep the current one.",
            "examples": [
              "Approved product, feature and plan names."
            ]
          }
        }
      },
      "UpdateTermBodyDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "new",
              "approved",
              "rejected"
            ],
            "description": "Review state. New terms default to `new`.",
            "examples": [
              "approved"
            ]
          },
          "forbidden": {
            "type": "boolean",
            "description": "Translators must not use this term.",
            "examples": [
              false
            ]
          },
          "preferred": {
            "type": "boolean",
            "description": "The recommended term among the concept's synonyms.",
            "examples": [
              true
            ]
          },
          "caseSensitive": {
            "type": "boolean",
            "description": "Match only with the same capitalization.",
            "examples": [
              false
            ]
          },
          "exactMatch": {
            "type": "boolean",
            "description": "Match only the exact wording. False also matches forms such as plurals.",
            "examples": [
              false
            ]
          },
          "note": {
            "type": "string",
            "maxLength": 4000,
            "description": "A note for translators.",
            "examples": [
              "Use for the analytics screen only."
            ]
          },
          "usage": {
            "type": "string",
            "maxLength": 4000,
            "description": "An example sentence with the term in use.",
            "examples": [
              "Ouvrez le tableau de bord pour voir vos ventes."
            ]
          },
          "shortTranslation": {
            "type": "string",
            "maxLength": 2000,
            "description": "A short form for places with little space.",
            "examples": [
              "TdB"
            ]
          },
          "termType": {
            "type": "string",
            "enum": [
              "full_form",
              "short_form",
              "acronym",
              "abbreviation",
              "phrase",
              "variant",
              "other"
            ],
            "description": "What kind of term it is.",
            "examples": [
              "full_form"
            ]
          },
          "partOfSpeech": {
            "type": "string",
            "enum": [
              "noun",
              "verb",
              "adjective",
              "adverb",
              "other"
            ],
            "description": "Part of speech.",
            "examples": [
              "noun"
            ]
          },
          "gender": {
            "type": "string",
            "enum": [
              "masculine",
              "feminine",
              "neuter",
              "other"
            ],
            "description": "Grammatical gender.",
            "examples": [
              "masculine"
            ]
          },
          "number": {
            "type": "string",
            "enum": [
              "singular",
              "plural",
              "uncountable",
              "other"
            ],
            "description": "Grammatical number.",
            "examples": [
              "singular"
            ]
          },
          "language": {
            "type": "string",
            "maxLength": 35,
            "description": "BCP-47 code of the language the term is in.",
            "examples": [
              "fr-FR"
            ]
          },
          "text": {
            "type": "string",
            "maxLength": 2000,
            "description": "The term itself. Must not be empty.",
            "examples": [
              "tableau de bord"
            ]
          }
        }
      },
      "UpdateTmDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "New name, unique within your organization. Up to 120 characters.",
            "maxLength": 120,
            "examples": [
              "Marketing site (EMEA)"
            ]
          },
          "description": {
            "type": "string",
            "description": "Free-text description. Up to 1,000 characters.",
            "maxLength": 1000,
            "examples": [
              "Website and campaign copy for the EMEA launch."
            ]
          },
          "targetLanguages": {
            "minItems": 1,
            "description": "Target languages to add, as BCP-47 codes. Languages already on the memory are kept; you cannot remove one.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "fr-FR",
                "de-DE"
              ]
            ]
          },
          "styleGuideId": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of an organization style guide to follow, or null to stop following one. VitraTM only (ignored for Phrase), and only the owning organization can change it.",
            "examples": [
              "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e"
            ]
          },
          "engine": {
            "type": "string",
            "enum": [
              "gemini",
              "azure",
              "deepl"
            ],
            "description": "Switch the machine translation engine (VitraTM only). Only future translations change; nothing stored is translated again. Switching to `azure` or `deepl` is a 400 when the memory has a language that engine can’t translate.",
            "examples": [
              "deepl"
            ]
          },
          "context": {
            "type": "object",
            "maxLength": 1000,
            "description": "Replace what the memory is for (VitraTM only, up to 1,000 characters). It can be changed but not cleared. Applies to translations from now on.",
            "examples": [
              "Consumer banking app for first-time investors in India and the UAE. Friendly, plain and short."
            ]
          },
          "matchMode": {
            "type": "string",
            "enum": [
              "match",
              "reference"
            ],
            "description": "How the memory serves its own 100% matches (VitraTM only). `match` reuses an exact match as it is and saves new machine translations to the memory. `reference` never returns an exact match as it is: the AI receives it as a reference that may contain errors, keeps what is right and fixes what is wrong (term bases, glossaries and the style guide win), and nothing is saved to the memory automatically — only \"Sync to TM\" writes. Every 100% match is then processed and charged like machine-translated text. `reference` needs the `gemini` engine (400 otherwise).",
            "examples": [
              "reference"
            ]
          },
          "providerProjectId": {
            "type": "string",
            "maxLength": 120,
            "description": "New Phrase project UID (Phrase only; cannot be blank).",
            "examples": [
              "Kp3sT8vQwXyZ1aB2cD4eF5"
            ]
          },
          "mtProfileUid": {
            "type": "string",
            "maxLength": 120,
            "description": "New Phrase machine translation profile UID (Phrase only). An empty string clears it.",
            "examples": [
              "mtp_7Hk2Lm9Np4Qr"
            ]
          }
        }
      },
      "UpsertTermDto": {
        "type": "object",
        "properties": {
          "previousTargetText": {
            "type": "string",
            "description": "The translation as you last read it. Optional; only used to record the change in your organization's change history.",
            "examples": [
              "मिनटों में अकाउंट खोलें"
            ]
          },
          "previousStatus": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "description": "The review status as you last read it. Optional; used for the change history (and, in bulk, to skip translations already at the new status).",
            "examples": [
              "unverified"
            ]
          },
          "sourceText": {
            "type": "string",
            "description": "The source text of the term, exactly as stored.",
            "examples": [
              "Open an account in minutes"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language of the term (BCP-47), for a memory with several source languages. Defaults to the memory’s primary source language. Phrase memories accept only their primary source.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language (BCP-47).",
            "examples": [
              "hi-IN"
            ]
          },
          "targetText": {
            "type": "string",
            "description": "The new translation. Replaces the stored one.",
            "examples": [
              "मिनटों में खाता खोलें"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "default": "unverified",
            "description": "Review status to store with the translation. Defaults to `unverified`, so an edit is reviewed again. Phrase stores no status.",
            "examples": [
              "verified"
            ]
          }
        },
        "required": [
          "sourceText",
          "targetLanguage",
          "targetText"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
