Create a new website user attribute
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: process.env['X_API_KEY'], // This is the default and can be omitted
});
const websiteUserAttribute = await client.auctions.websiteUserAttributes.create({
data: [{ label: 'Website User Attribute Label' }],
});
console.log(websiteUserAttribute.data);
{
"data": [
{
"websiteId": "<string>",
"organizationId": "<string>",
"id": "<string>",
"label": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
]
}
Body
The body is of type object
.
200
The response is of type object
.
Was this page helpful?
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: process.env['X_API_KEY'], // This is the default and can be omitted
});
const websiteUserAttribute = await client.auctions.websiteUserAttributes.create({
data: [{ label: 'Website User Attribute Label' }],
});
console.log(websiteUserAttribute.data);
{
"data": [
{
"websiteId": "<string>",
"organizationId": "<string>",
"id": "<string>",
"label": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
]
}
Create a new website user attribute
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: process.env['X_API_KEY'], // This is the default and can be omitted
});
const websiteUserAttribute = await client.auctions.websiteUserAttributes.create({
data: [{ label: 'Website User Attribute Label' }],
});
console.log(websiteUserAttribute.data);
{
"data": [
{
"websiteId": "<string>",
"organizationId": "<string>",
"id": "<string>",
"label": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
]
}
Body
The body is of type object
.
200
The response is of type object
.
Was this page helpful?
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: process.env['X_API_KEY'], // This is the default and can be omitted
});
const websiteUserAttribute = await client.auctions.websiteUserAttributes.create({
data: [{ label: 'Website User Attribute Label' }],
});
console.log(websiteUserAttribute.data);
{
"data": [
{
"websiteId": "<string>",
"organizationId": "<string>",
"id": "<string>",
"label": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
]
}