Accounts
Niche Switch
Switch account niche by updating keywords and description, and resetting warmup
import { UGCClient } from 'ugcinc';
const client = new UGCClient({
apiKey: 'YOUR_API_KEY'
});
const response = await client.accounts.nicheSwitch({
updates: [
{
accountId: 'acc_123456',
keywords: ['fitness', 'gym', 'workout', 'health'],
description: 'Fitness and workout content, gym motivation videos'
}
]
});
if (response.ok) {
console.log(`Niche switch applied to ${response.data.successful} account(s)`);
}
curl -X POST https://api.ugc.inc/accounts/niche-switch \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"updates": [
{
"accountId": "acc_123456",
"keywords": ["fitness", "gym", "workout", "health"],
"description": "Fitness and workout content, gym motivation videos"
}
]
}'
{
"ok": true,
"code": 200,
"message": "Niche switch submitted for 1 account(s). Warmup has been reset and will re-run with new keywords.",
"data": {
"message": "Niche switch submitted for 1 account(s). Warmup has been reset and will re-run with new keywords.",
"successful": 1,
"failed": 0,
"results": [
{
"accountId": "acc_123456",
"success": true
}
]
}
}
⌘I
import { UGCClient } from 'ugcinc';
const client = new UGCClient({
apiKey: 'YOUR_API_KEY'
});
const response = await client.accounts.nicheSwitch({
updates: [
{
accountId: 'acc_123456',
keywords: ['fitness', 'gym', 'workout', 'health'],
description: 'Fitness and workout content, gym motivation videos'
}
]
});
if (response.ok) {
console.log(`Niche switch applied to ${response.data.successful} account(s)`);
}
curl -X POST https://api.ugc.inc/accounts/niche-switch \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"updates": [
{
"accountId": "acc_123456",
"keywords": ["fitness", "gym", "workout", "health"],
"description": "Fitness and workout content, gym motivation videos"
}
]
}'
{
"ok": true,
"code": 200,
"message": "Niche switch submitted for 1 account(s). Warmup has been reset and will re-run with new keywords.",
"data": {
"message": "Niche switch submitted for 1 account(s). Warmup has been reset and will re-run with new keywords.",
"successful": 1,
"failed": 0,
"results": [
{
"accountId": "acc_123456",
"success": true
}
]
}
}
