POST
/
api
/
website_user_attributes
/
values
import SnagSolutions from '@snagsolutions/sdk';

const client = new SnagSolutions({
  apiKey: process.env['X_API_KEY'], // This is the default and can be omitted
});

const values = await client.auctions.websiteUserAttributes.values.create({
  data: [
    {
      userId: '123e4567-e89b-12d3-a456-426614174005',
      value: 'Website User Attribute Value',
      websiteUserAttributeId: '123e4567-e89b-12d3-a456-426614174004',
    },
  ],
  organizationId: '123e4567-e89b-12d3-a456-426614174002',
  websiteId: '123e4567-e89b-12d3-a456-426614174001',
});

console.log(values);
[
  {
    "id": "<string>",
    "websiteId": "<string>",
    "organizationId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "websiteUserAttributeId": "<string>",
    "value": "<string>",
    "userId": "<string>"
  }
]

Authorizations

X-API-KEY
string
header
required

Body

application/json

Body

The body is of type object.

Response

200
application/json

200

The response is of type object[].