import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
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>"
}
]
Create a new website user attribute value
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
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>"
}
]
Body
The body is of type object
.
200
The response is of type object[]
.
Was this page helpful?