English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/account/tagRename a tag on every account that has it, for example when a brand changes its name. When another tag already has the new name, the two are merged into one, and an account that had both keeps it once. Renaming to the same name in another case only changes the spelling.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizaccount:writeWith an operator API key, only the accounts assigned to the operator change.
| Field | Type | Required | Description |
|---|---|---|---|
tag | string | Yes | The tag to rename, case-insensitive, from Get Tag Account. |
name | string | Yes | The new name, up to 30 characters. |
curl -X PUT "https://api.repliz.com/public/account/tag" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)" \
-H "Content-Type: application/json" \
-d '{
"tag": "Brand A",
"name": "Brand Alpha"
}'import axios from 'axios';
const response = await axios.put(
'https://api.repliz.com/public/account/tag',
{ tag: 'Brand A', name: 'Brand Alpha' },
{
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
},
);
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const response = await fetch('https://api.repliz.com/public/account/tag', {
method: 'PUT',
headers: {
Authorization: `Basic ${credentials}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ tag: 'Brand A', name: 'Brand Alpha' }),
});
const data = await response.json();
console.log(data);// No content returned on success{
"code": 400,
"message": "tag name is empty"
}{
"code": 404,
"message": "tag not found"
}{
"code": 401,
"message": "unauthorized"
}