Skip to main content
DELETE
/
v1beta
/
documents
/
{document_id}
/
policies
/
{policy_id}
TypeScript
import { Factify } from "@factify/sdk";

const factify = new Factify({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await factify.policies.detach({
    documentId: "<id>",
    policyId: "<id>",
  });

  console.log(result);
}

run();
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer , where is your auth token.

Path Parameters

document_id
string
required

Document ID. Pattern: doc_[0-9a-hjkmnp-tv-z]{26}

policy_id
string
required

Policy ID to detach. Pattern: pol_[0-9a-hjkmnp-tv-z]{26}

Response

Success

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:

service Foo {
rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
}