Create a Group
import { PinataSDK } from "pinata"; const pinata = new PinataSDK({ pinataJwt: process.env.PINATA_JWT!, pinataGateway: "example-gateway.mypinata.cloud", }); const group = await pinata.groups.create({ name: "My New Group", isPublic: true });
type GroupResponseItem = { id: string; is_public: boolean; name: string; created_at: string; };
string
Requires a name for the group to be created
const group = await pinata.groups.create({ name: "My New Group", });
-type: boolean
boolean
Determine whether or not a group is public upon creation. Default is false.
false
const group = await pinata.groups.create({ name: "My New Group", isPublic: true });