from dub import Dubwith Dub( token="DUB_API_KEY",) as d_client: res = d_client.domains.update(slug="acme.com", request_body={ "slug": "acme.com", "expired_url": "https://acme.com/expired", "not_found_url": "https://acme.com/not-found", "placeholder": "https://dub.co/help/article/what-is-dub", }) assert res is not None # Handle response print(res)
from dub import Dubwith Dub( token="DUB_API_KEY",) as d_client: res = d_client.domains.update(slug="acme.com", request_body={ "slug": "acme.com", "expired_url": "https://acme.com/expired", "not_found_url": "https://acme.com/not-found", "placeholder": "https://dub.co/help/article/what-is-dub", }) assert res is not None # Handle response print(res)