# Web3 # Hostnames ## List Web3 Hostnames `web3.hostnames.list(HostnameListParams**kwargs) -> SyncSinglePage[Hostname]` **get** `/zones/{zone_id}/web3/hostnames` List Web3 Hostnames ### Parameters - `zone_id: str` Specify the identifier of the hostname. ### Returns - `class Hostname: …` - `id: Optional[str]` Specify the identifier of the hostname. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the hostname. - `dnslink: Optional[str]` Specify the DNSLink value used if the target is ipfs. - `modified_on: Optional[datetime]` - `name: Optional[str]` Specify the hostname that points to the target gateway via CNAME. - `status: Optional[Literal["active", "pending", "deleting", "error"]]` Specifies the status of the hostname's activation. - `"active"` - `"pending"` - `"deleting"` - `"error"` - `target: Optional[Literal["ethereum", "ipfs", "ipfs_universal_path"]]` Specify the target gateway of the hostname. - `"ethereum"` - `"ipfs"` - `"ipfs_universal_path"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) page = client.web3.hostnames.list( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) page = page.result[0] print(page.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": [ { "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2014-01-01T05:20:00.12345Z", "description": "This is my IPFS gateway.", "dnslink": "/ipns/onboarding.ipfs.cloudflare.com", "modified_on": "2014-01-01T05:20:00.12345Z", "name": "gateway.example.com", "status": "active", "target": "ipfs" } ], "success": true, "result_info": { "count": 1, "page": 1, "per_page": 20, "total_count": 2000 } } ``` ## Web3 Hostname Details `web3.hostnames.get(stridentifier, HostnameGetParams**kwargs) -> Hostname` **get** `/zones/{zone_id}/web3/hostnames/{identifier}` Web3 Hostname Details ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `identifier: str` Specify the identifier of the hostname. ### Returns - `class Hostname: …` - `id: Optional[str]` Specify the identifier of the hostname. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the hostname. - `dnslink: Optional[str]` Specify the DNSLink value used if the target is ipfs. - `modified_on: Optional[datetime]` - `name: Optional[str]` Specify the hostname that points to the target gateway via CNAME. - `status: Optional[Literal["active", "pending", "deleting", "error"]]` Specifies the status of the hostname's activation. - `"active"` - `"pending"` - `"deleting"` - `"error"` - `target: Optional[Literal["ethereum", "ipfs", "ipfs_universal_path"]]` Specify the target gateway of the hostname. - `"ethereum"` - `"ipfs"` - `"ipfs_universal_path"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) hostname = client.web3.hostnames.get( identifier="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(hostname.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2014-01-01T05:20:00.12345Z", "description": "This is my IPFS gateway.", "dnslink": "/ipns/onboarding.ipfs.cloudflare.com", "modified_on": "2014-01-01T05:20:00.12345Z", "name": "gateway.example.com", "status": "active", "target": "ipfs" }, "success": true, "result_info": {} } ``` ## Create Web3 Hostname `web3.hostnames.create(HostnameCreateParams**kwargs) -> Hostname` **post** `/zones/{zone_id}/web3/hostnames` Create Web3 Hostname ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `name: str` Specify the hostname that points to the target gateway via CNAME. - `target: Literal["ethereum", "ipfs", "ipfs_universal_path"]` Specify the target gateway of the hostname. - `"ethereum"` - `"ipfs"` - `"ipfs_universal_path"` - `description: Optional[str]` Specify an optional description of the hostname. - `dnslink: Optional[str]` Specify the DNSLink value used if the target is ipfs. ### Returns - `class Hostname: …` - `id: Optional[str]` Specify the identifier of the hostname. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the hostname. - `dnslink: Optional[str]` Specify the DNSLink value used if the target is ipfs. - `modified_on: Optional[datetime]` - `name: Optional[str]` Specify the hostname that points to the target gateway via CNAME. - `status: Optional[Literal["active", "pending", "deleting", "error"]]` Specifies the status of the hostname's activation. - `"active"` - `"pending"` - `"deleting"` - `"error"` - `target: Optional[Literal["ethereum", "ipfs", "ipfs_universal_path"]]` Specify the target gateway of the hostname. - `"ethereum"` - `"ipfs"` - `"ipfs_universal_path"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) hostname = client.web3.hostnames.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", name="gateway.example.com", target="ipfs", ) print(hostname.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2014-01-01T05:20:00.12345Z", "description": "This is my IPFS gateway.", "dnslink": "/ipns/onboarding.ipfs.cloudflare.com", "modified_on": "2014-01-01T05:20:00.12345Z", "name": "gateway.example.com", "status": "active", "target": "ipfs" }, "success": true, "result_info": {} } ``` ## Edit Web3 Hostname `web3.hostnames.edit(stridentifier, HostnameEditParams**kwargs) -> Hostname` **patch** `/zones/{zone_id}/web3/hostnames/{identifier}` Edit Web3 Hostname ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `identifier: str` Specify the identifier of the hostname. - `description: Optional[str]` Specify an optional description of the hostname. - `dnslink: Optional[str]` Specify the DNSLink value used if the target is ipfs. ### Returns - `class Hostname: …` - `id: Optional[str]` Specify the identifier of the hostname. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the hostname. - `dnslink: Optional[str]` Specify the DNSLink value used if the target is ipfs. - `modified_on: Optional[datetime]` - `name: Optional[str]` Specify the hostname that points to the target gateway via CNAME. - `status: Optional[Literal["active", "pending", "deleting", "error"]]` Specifies the status of the hostname's activation. - `"active"` - `"pending"` - `"deleting"` - `"error"` - `target: Optional[Literal["ethereum", "ipfs", "ipfs_universal_path"]]` Specify the target gateway of the hostname. - `"ethereum"` - `"ipfs"` - `"ipfs_universal_path"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) hostname = client.web3.hostnames.edit( identifier="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(hostname.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353", "created_on": "2014-01-01T05:20:00.12345Z", "description": "This is my IPFS gateway.", "dnslink": "/ipns/onboarding.ipfs.cloudflare.com", "modified_on": "2014-01-01T05:20:00.12345Z", "name": "gateway.example.com", "status": "active", "target": "ipfs" }, "success": true, "result_info": {} } ``` ## Delete Web3 Hostname `web3.hostnames.delete(stridentifier, HostnameDeleteParams**kwargs) -> HostnameDeleteResponse` **delete** `/zones/{zone_id}/web3/hostnames/{identifier}` Delete Web3 Hostname ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `identifier: str` Specify the identifier of the hostname. ### Returns - `class HostnameDeleteResponse: …` - `id: str` Specify the identifier of the hostname. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) hostname = client.web3.hostnames.delete( identifier="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(hostname.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353" }, "success": true } ``` ## Domain Types ### Hostname - `class Hostname: …` - `id: Optional[str]` Specify the identifier of the hostname. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the hostname. - `dnslink: Optional[str]` Specify the DNSLink value used if the target is ipfs. - `modified_on: Optional[datetime]` - `name: Optional[str]` Specify the hostname that points to the target gateway via CNAME. - `status: Optional[Literal["active", "pending", "deleting", "error"]]` Specifies the status of the hostname's activation. - `"active"` - `"pending"` - `"deleting"` - `"error"` - `target: Optional[Literal["ethereum", "ipfs", "ipfs_universal_path"]]` Specify the target gateway of the hostname. - `"ethereum"` - `"ipfs"` - `"ipfs_universal_path"` ### Hostname Delete Response - `class HostnameDeleteResponse: …` - `id: str` Specify the identifier of the hostname. # IPFS Universal Paths # Content Lists ## IPFS Universal Path Gateway Content List Details `web3.hostnames.ipfs_universal_paths.content_lists.get(stridentifier, ContentListGetParams**kwargs) -> ContentList` **get** `/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list` IPFS Universal Path Gateway Content List Details ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `identifier: str` Specify the identifier of the hostname. ### Returns - `class ContentList: …` - `action: Optional[Literal["block"]]` Behavior of the content list. - `"block"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) content_list = client.web3.hostnames.ipfs_universal_paths.content_lists.get( identifier="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(content_list.action) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "action": "block" }, "success": true, "result_info": {} } ``` ## Update IPFS Universal Path Gateway Content List `web3.hostnames.ipfs_universal_paths.content_lists.update(stridentifier, ContentListUpdateParams**kwargs) -> ContentList` **put** `/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list` Update IPFS Universal Path Gateway Content List ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `identifier: str` Specify the identifier of the hostname. - `action: Literal["block"]` Behavior of the content list. - `"block"` - `entries: Iterable[Entry]` Provides content list entries. - `id: Optional[str]` Specify the identifier of the hostname. - `content: Optional[str]` Specify the CID or content path of content to block. - `created_on: Optional[Union[str, datetime]]` - `description: Optional[str]` Specify an optional description of the content list entry. - `modified_on: Optional[Union[str, datetime]]` - `type: Optional[Literal["cid", "content_path"]]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` ### Returns - `class ContentList: …` - `action: Optional[Literal["block"]]` Behavior of the content list. - `"block"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) content_list = client.web3.hostnames.ipfs_universal_paths.content_lists.update( identifier="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", action="block", entries=[{}], ) print(content_list.action) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "action": "block" }, "success": true, "result_info": {} } ``` ## Domain Types ### Content List - `class ContentList: …` - `action: Optional[Literal["block"]]` Behavior of the content list. - `"block"` # Entries ## List IPFS Universal Path Gateway Content List Entries `web3.hostnames.ipfs_universal_paths.content_lists.entries.list(stridentifier, EntryListParams**kwargs) -> EntryListResponse` **get** `/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries` List IPFS Universal Path Gateway Content List Entries ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `identifier: str` Specify the identifier of the hostname. ### Returns - `class EntryListResponse: …` - `entries: Optional[List[Entry]]` Provides content list entries. - `id: Optional[str]` Specify the identifier of the hostname. - `content: Optional[str]` Specify the CID or content path of content to block. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the content list entry. - `modified_on: Optional[datetime]` - `type: Optional[Literal["cid", "content_path"]]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) entries = client.web3.hostnames.ipfs_universal_paths.content_lists.entries.list( identifier="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(entries.entries) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "entries": [ { "id": "023e105f4ecef8ad9ca31a8372d0c353", "content": "QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB", "created_on": "2014-01-01T05:20:00.12345Z", "description": "this is my content list entry", "modified_on": "2014-01-01T05:20:00.12345Z", "type": "cid" } ] }, "success": true, "result_info": { "count": 1, "page": 1, "per_page": 20, "total_count": 2000 } } ``` ## IPFS Universal Path Gateway Content List Entry Details `web3.hostnames.ipfs_universal_paths.content_lists.entries.get(strcontent_list_entry_identifier, EntryGetParams**kwargs) -> EntryGetResponse` **get** `/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries/{content_list_entry_identifier}` IPFS Universal Path Gateway Content List Entry Details ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `identifier: str` Specify the identifier of the hostname. - `content_list_entry_identifier: str` Specify the identifier of the hostname. ### Returns - `class EntryGetResponse: …` Specify a content list entry to block. - `id: Optional[str]` Specify the identifier of the hostname. - `content: Optional[str]` Specify the CID or content path of content to block. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the content list entry. - `modified_on: Optional[datetime]` - `type: Optional[Literal["cid", "content_path"]]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) entry = client.web3.hostnames.ipfs_universal_paths.content_lists.entries.get( content_list_entry_identifier="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", identifier="023e105f4ecef8ad9ca31a8372d0c353", ) print(entry.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353", "content": "QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB", "created_on": "2014-01-01T05:20:00.12345Z", "description": "this is my content list entry", "modified_on": "2014-01-01T05:20:00.12345Z", "type": "cid" }, "success": true, "result_info": {} } ``` ## Create IPFS Universal Path Gateway Content List Entry `web3.hostnames.ipfs_universal_paths.content_lists.entries.create(stridentifier, EntryCreateParams**kwargs) -> EntryCreateResponse` **post** `/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries` Create IPFS Universal Path Gateway Content List Entry ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `identifier: str` Specify the identifier of the hostname. - `content: str` Specify the CID or content path of content to block. - `type: Literal["cid", "content_path"]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` - `description: Optional[str]` Specify an optional description of the content list entry. ### Returns - `class EntryCreateResponse: …` Specify a content list entry to block. - `id: Optional[str]` Specify the identifier of the hostname. - `content: Optional[str]` Specify the CID or content path of content to block. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the content list entry. - `modified_on: Optional[datetime]` - `type: Optional[Literal["cid", "content_path"]]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) entry = client.web3.hostnames.ipfs_universal_paths.content_lists.entries.create( identifier="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB", type="cid", ) print(entry.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353", "content": "QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB", "created_on": "2014-01-01T05:20:00.12345Z", "description": "this is my content list entry", "modified_on": "2014-01-01T05:20:00.12345Z", "type": "cid" }, "success": true, "result_info": {} } ``` ## Edit IPFS Universal Path Gateway Content List Entry `web3.hostnames.ipfs_universal_paths.content_lists.entries.update(strcontent_list_entry_identifier, EntryUpdateParams**kwargs) -> EntryUpdateResponse` **put** `/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries/{content_list_entry_identifier}` Edit IPFS Universal Path Gateway Content List Entry ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `identifier: str` Specify the identifier of the hostname. - `content_list_entry_identifier: str` Specify the identifier of the hostname. - `content: str` Specify the CID or content path of content to block. - `type: Literal["cid", "content_path"]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` - `description: Optional[str]` Specify an optional description of the content list entry. ### Returns - `class EntryUpdateResponse: …` Specify a content list entry to block. - `id: Optional[str]` Specify the identifier of the hostname. - `content: Optional[str]` Specify the CID or content path of content to block. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the content list entry. - `modified_on: Optional[datetime]` - `type: Optional[Literal["cid", "content_path"]]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) entry = client.web3.hostnames.ipfs_universal_paths.content_lists.entries.update( content_list_entry_identifier="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", identifier="023e105f4ecef8ad9ca31a8372d0c353", content="QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB", type="cid", ) print(entry.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353", "content": "QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB", "created_on": "2014-01-01T05:20:00.12345Z", "description": "this is my content list entry", "modified_on": "2014-01-01T05:20:00.12345Z", "type": "cid" }, "success": true, "result_info": {} } ``` ## Delete IPFS Universal Path Gateway Content List Entry `web3.hostnames.ipfs_universal_paths.content_lists.entries.delete(strcontent_list_entry_identifier, EntryDeleteParams**kwargs) -> EntryDeleteResponse` **delete** `/zones/{zone_id}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries/{content_list_entry_identifier}` Delete IPFS Universal Path Gateway Content List Entry ### Parameters - `zone_id: str` Specify the identifier of the hostname. - `identifier: str` Specify the identifier of the hostname. - `content_list_entry_identifier: str` Specify the identifier of the hostname. ### Returns - `class EntryDeleteResponse: …` - `id: str` Specify the identifier of the hostname. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) entry = client.web3.hostnames.ipfs_universal_paths.content_lists.entries.delete( content_list_entry_identifier="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", identifier="023e105f4ecef8ad9ca31a8372d0c353", ) print(entry.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "023e105f4ecef8ad9ca31a8372d0c353" }, "success": true } ``` ## Domain Types ### Entry List Response - `class EntryListResponse: …` - `entries: Optional[List[Entry]]` Provides content list entries. - `id: Optional[str]` Specify the identifier of the hostname. - `content: Optional[str]` Specify the CID or content path of content to block. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the content list entry. - `modified_on: Optional[datetime]` - `type: Optional[Literal["cid", "content_path"]]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` ### Entry Get Response - `class EntryGetResponse: …` Specify a content list entry to block. - `id: Optional[str]` Specify the identifier of the hostname. - `content: Optional[str]` Specify the CID or content path of content to block. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the content list entry. - `modified_on: Optional[datetime]` - `type: Optional[Literal["cid", "content_path"]]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` ### Entry Create Response - `class EntryCreateResponse: …` Specify a content list entry to block. - `id: Optional[str]` Specify the identifier of the hostname. - `content: Optional[str]` Specify the CID or content path of content to block. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the content list entry. - `modified_on: Optional[datetime]` - `type: Optional[Literal["cid", "content_path"]]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` ### Entry Update Response - `class EntryUpdateResponse: …` Specify a content list entry to block. - `id: Optional[str]` Specify the identifier of the hostname. - `content: Optional[str]` Specify the CID or content path of content to block. - `created_on: Optional[datetime]` - `description: Optional[str]` Specify an optional description of the content list entry. - `modified_on: Optional[datetime]` - `type: Optional[Literal["cid", "content_path"]]` Specify the type of content list entry to block. - `"cid"` - `"content_path"` ### Entry Delete Response - `class EntryDeleteResponse: …` - `id: str` Specify the identifier of the hostname.