org:groups:write
Create a public group
import { PinataSDK } from "pinata";
const pinata = new PinataSDK({
pinataJwt: process.env.PINATA_JWT!,
pinataGateway: "example-gateway.mypinata.cloud",
});
const group = await pinata.groups.public.create({
name: "My New Group",
});
type GroupResponseItem = {
id: string;
name: string;
created_at: string;
};
string
Requires a name for the group to be created
const group = await pinata.groups.public.create({
name: "My New Group",
});
org:groups:write
Create a public group
import { PinataSDK } from "pinata";
const pinata = new PinataSDK({
pinataJwt: process.env.PINATA_JWT!,
pinataGateway: "example-gateway.mypinata.cloud",
});
const group = await pinata.groups.public.create({
name: "My New Group",
});
type GroupResponseItem = {
id: string;
name: string;
created_at: string;
};
string
Requires a name for the group to be created
const group = await pinata.groups.public.create({
name: "My New Group",
});