Contact APIs
Update Contact Labels
API
- Introduction
- Authorization
- SDK
- Objects
Chat APIs
Group Settings APIs
Message APIs
Contact APIs
Phone APIs
Contact APIs
Update Contact Labels
This endpoint updates the labels for specific contacts
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function updateLabels() {
const response = await client.contact.updateLabels({
contact_ids: ['919537851844'],
labels: 'Test, Demo'
});
console.log(response);
}
updateLabels();
{}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
204
application/json
204 OK
204 No Content
Was this page helpful?
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function updateLabels() {
const response = await client.contact.updateLabels({
contact_ids: ['919537851844'],
labels: 'Test, Demo'
});
console.log(response);
}
updateLabels();
{}