POST
/
api
/
users
/
metadatas
curl --request POST \
  --url https://admin.snagsolutions.io/api/users/metadatas \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "walletAddress": "<string>",
  "stardustProfileIdentifier": "<string>",
  "isBlocked": false,
  "stardustWalletIdentifier": "<string>",
  "epicAccountIdentifier": "<string>",
  "discordUser": "<string>",
  "discordUserId": "<string>",
  "twitterUser": "<string>",
  "twitterUserId": "<string>",
  "emailAddress": "<string>",
  "walletGroupIdentifier": "<string>",
  "userGroupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "telegramUserId": "<string>",
  "telegramUsername": "<string>",
  "displayName": "<string>",
  "logoUrl": "<string>",
  "userGroupExternalIdentifier": "<string>"
}'
{
  "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"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
Body
userId
string
walletAddress
string
stardustProfileIdentifier
string | null
isBlocked
boolean
default:false
stardustWalletIdentifier
string | null
epicAccountIdentifier
string | null
discordUser
string | null
discordUserId
string | null
twitterUser
string | null
twitterUserId
string | null
emailAddress
string | null
walletGroupIdentifier
string | null
userGroupId
string
telegramUserId
string | null
telegramUsername
string | null
displayName
string | null
logoUrl
string | null
userGroupExternalIdentifier
string | null

Response

200
application/json
200
id
string
required

Unique identifier for the user metadata

Example:

"123e4567-e89b-12d3-a456-426614174000"

websiteId
string
required

Unique identifier for the website

Example:

"123e4567-e89b-12d3-a456-426614174001"

organizationId
string
required

Unique identifier for the organization

Example:

"123e4567-e89b-12d3-a456-426614174002"

walletGroupIdentifier
string | null
required

Identifier for the user wallet group set via api

Example:

"wallet-group-id"

userGroupId
string | null
required

Identifier for the user group set via api

Example:

"user-group-id"

userGroup
object
required
user
object
required
createdAt
string
required

Timestamp when the wallet was created

Example:

"2023-10-01T12:34:56Z"