Verify a previously claimed domain alias. The server will check the required DNS records and transition the domain from `"pending"` to `"verified"` on success. # Errors Returns [`TeamsError::OrgNotFound`] if the organization or domain does not exist, or [`TeamsError::Remote`] on transport failure. [`TeamsError::OrgNotFound`]: crate::error::TeamsError::OrgNotFound [`TeamsError::Remote`]: crate:
(
client: &StorageClient,
org_slug: &str,
domain_id: Uuid,
)
| 70 | /// [`TeamsError::OrgNotFound`]: crate::error::TeamsError::OrgNotFound |
| 71 | /// [`TeamsError::Remote`]: crate::error::TeamsError::Remote |
| 72 | pub async fn verify_domain( |
| 73 | client: &StorageClient, |
| 74 | org_slug: &str, |
| 75 | domain_id: Uuid, |
| 76 | ) -> TeamsResult<DomainAliasInfo> { |
| 77 | let path = format!("/orgs/{org_slug}/domains/{domain_id}/verify"); |
| 78 | client |
| 79 | .post_empty(&path) |
| 80 | .await |
| 81 | .map_err(|e| map_remote_error(e, format!("org {org_slug}"))) |
| 82 | } |
| 83 | |
| 84 | /// Revoke (delete) a domain alias from an organization. |
| 85 | /// |
nothing calls this directly
no test coverage detected