diff --git a/open-api/rest-catalog-open-api.py b/open-api/rest-catalog-open-api.py index 9cae07dd106e..458b2fa56bc9 100644 --- a/open-api/rest-catalog-open-api.py +++ b/open-api/rest-catalog-open-api.py @@ -502,6 +502,10 @@ class PlanStatus(BaseModel): class RegisterTableRequest(BaseModel): name: str metadata_location: str = Field(..., alias='metadata-location') + overwrite: Optional[bool] = Field( + False, + description='Whether to overwrite table metadata if the table already exists', + ) class TokenType(BaseModel): diff --git a/open-api/rest-catalog-open-api.yaml b/open-api/rest-catalog-open-api.yaml index 4b82fb3a3b0e..313413b1654e 100644 --- a/open-api/rest-catalog-open-api.yaml +++ b/open-api/rest-catalog-open-api.yaml @@ -3463,6 +3463,10 @@ components: type: string metadata-location: type: string + overwrite: + description: Whether to overwrite table metadata if the table already exists + type: boolean + default: false CreateViewRequest: type: object