ProofsOwners
Extends:
API → ProofsOwners
Method Summary
Public Methods | ||
public |
add(proofId: string, userOrUsers: OwnerUserDefinition | Array<OwnerUserDefinition>): Promise Add one or more users as owners on a proof. |
since v2.0.0-beta.12 |
public |
remove(proofId: string, userOrUsers: OwnerUserDefinition | Array<OwnerUserDefinition>): Promise Remove one or more users as owners on a proof. |
since v2.0.0-beta.12 |
Public Methods
public add(proofId: string, userOrUsers: OwnerUserDefinition | Array<OwnerUserDefinition>): Promise since v2.0.0-beta.12 source
Add one or more users as owners on a proof.
Params:
Name | Type | Attribute | Description |
proofId | string | The proof id |
|
userOrUsers | OwnerUserDefinition | Array<OwnerUserDefinition> | User or users to add as owners |
Example:
await client.proofs.owners.add(proof.id, { email: 'my-new-owner@example.com' });
await client.proofs.owners.add(proof.id, { id: 'ULVRHSLLP69ACHCT' });
await client.proofs.owners.add(proof.id, [
{ email: 'my-new-owner@example.com' },
{ id: 'ULVRHSLLP69ACHCT' },
]);
public remove(proofId: string, userOrUsers: OwnerUserDefinition | Array<OwnerUserDefinition>): Promise since v2.0.0-beta.12 source
Remove one or more users as owners on a proof.
Params:
Name | Type | Attribute | Description |
proofId | string | The proof id |
|
userOrUsers | OwnerUserDefinition | Array<OwnerUserDefinition> | User or users to remove as owners |
Example:
await client.proofs.owners.remove(proof.id, { email: 'my-new-owner@example.com' });
await client.proofs.owners.remove(proof.id, { id: 'ULVRHSLLP69ACHCT' });
await client.proofs.owners.remove(proof.id, [
{ email: 'my-new-owner@example.com' },
{ id: 'ULVRHSLLP69ACHCT' },
]);