2024-10-10 16:56:30 -07:00
|
|
|
from typing import Optional
|
|
|
|
|
2024-10-05 10:46:15 -07:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
|
|
|
|
|
|
class UpdateShortlinkRequest(BaseModel):
|
|
|
|
"""Request to update a shortlink."""
|
|
|
|
|
2024-10-10 16:56:30 -07:00
|
|
|
password: Optional[str] = None
|
|
|
|
|
2024-10-05 10:46:15 -07:00
|
|
|
restrict_to_org: bool
|
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|