import { PinataSDK } from "pinata";
const pinata = new PinataSDK({
pinataJwt: process.env.PINATA_JWT!,
pinataGateway: "example-gateway.mypinata.cloud",
});
const groups = await pinata.groups.update({
groupId: "3778c10d-452e-4def-8299-ee6bc548bdb0",
name: "My New Group 2",
public: true
});
type GroupResponseItem = {
id: string;
is_public: boolean;
name: string;
created_at: string;
};
const groups = await pinata.groups.update({
groupId: "3778c10d-452e-4def-8299-ee6bc548bdb0",
});
const groups = await pinata.groups.update({
name: "My Group Again",
});
const groups = await pinata.groups.update({
isPublic: true
});