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:
Adding an owner (by email)
await client.proofs.owners.add(proof.id, { email: 'my-new-owner@example.com' });
Adding an owner (by user id)
await client.proofs.owners.add(proof.id, { id: 'ULVRHSLLP69ACHCT' });
Adding multiple owners (by email and user id)
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:
Removing an owner (by email)
await client.proofs.owners.remove(proof.id, { email: 'my-new-owner@example.com' });
Removing an owner (by user id)
await client.proofs.owners.remove(proof.id, { id: 'ULVRHSLLP69ACHCT' });
Removing multiple owners (by email and user id)
await client.proofs.owners.remove(proof.id, [
{ email: 'my-new-owner@example.com' },
{ id: 'ULVRHSLLP69ACHCT' },
]);