import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const metadata = await client.users.metadatas.create();
console.log(metadata.id);
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"websiteId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"walletGroupIdentifier": "wallet-group-id",
"userGroupId": "user-group-id",
"userGroup": {
"id": "123e4567-e89b-12d3-a456-426614174002",
"externalIdentifier": "user-group-external-id"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174002",
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678"
},
"createdAt": "2023-10-01T12:34:56Z"
}
This endpoint is used to create user metadata
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const metadata = await client.users.metadatas.create();
console.log(metadata.id);
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"websiteId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"walletGroupIdentifier": "wallet-group-id",
"userGroupId": "user-group-id",
"userGroup": {
"id": "123e4567-e89b-12d3-a456-426614174002",
"externalIdentifier": "user-group-external-id"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174002",
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678"
},
"createdAt": "2023-10-01T12:34:56Z"
}
Body
Schema for a create user metadata schema
200
Schema for a user metadata
Was this page helpful?