Namespaces
Revoke a namespace portal link
Revokes the link and ends sessions using it. Only organization-wide callers may revoke links.
DELETE
Revokes the link and ends sessions using it. Only organization-wide callers may revoke links.
apiKeyheader
x-api-key<token>id*stringMatch
^ns_[0-9a-hjkmnp-tv-z]{16,24}$linkId*stringMatch
^npl_[0-9a-hjkmnp-tv-z]{16,24}$NamespacePortalLink
application/json- response
id*NamespacePortalLinkIdMatch
^npl_[0-9a-hjkmnp-tv-z]{16,24}$organizationId*OrganizationIdMatch
^org_[0-9a-hjkmnp-tv-z]{16,24}$namespaceId*NamespaceIdMatch
^ns_[0-9a-hjkmnp-tv-z]{16,24}$createdBy*UserIdMatch
^user_[0-9a-hjkmnp-tv-z]{16,24}$expiresAt*stringrevokedAt*string|nullredirectUrl*string|nullmetadata*createdAt*stringimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.namespaces.revokePortalLink({
"id": "example",
"linkId": "example"
});Example Response
{
"id": "string",
"organizationId": "string",
"namespaceId": "string",
"createdBy": "string",
"expiresAt": "string",
"revokedAt": "string",
"redirectUrl": "string",
"metadata": {
"property1": "string",
"property2": "string"
},
"createdAt": "string"
}Related documentation
Return a resource to organization level
Moves a resource out of this namespace to organization level, with what follows it as in `POST /v1/namespaces/{id}/resources`.
Update a namespace
Update a namespace. Updates the fields you name and keeps the rest. `metadata` merges into the stored metadata by key, and a `null` value deletes that key.