Rename Contact List
Using the SDK
// Download the helper library from https://www.npmjs.com/package/dropcowboy
const { DropCowboy } = require("dropcowboy"); // Or, for ESM: import { DropCowboy } from "dropcowboy";
// Find your Team ID and Secret at dropcowboy.com/appv1/#/api
// and set the environment variables.
const teamId = process.env.DROPCOWBOY_TEAM_ID;
const secret = process.env.DROPCOWBOY_SECRET;
const client = new DropCowboy({ teamId: teamId, secret: secret });
async function renameList(listId) {
const list = await client.renameContactList(listId, { list_name: "My Contacts - Renamed" });
console.log(list);
};
renameList("00000000-0000-0000-0000-000000000000");API Endpoint
Example Request
Required Headers
Required URL Path Parameters
Required Body Parameters
Authorizations
x-team-id / x-secretstringRequired
Requires two headers: x-team-id and x-secret. Both must be sent with each request.
Path parameters
list_idstringRequired
Body
list_namestringRequired
Responses
200
200 OK on success
No content
post
/list/{list_id}200
200 OK on success
No content
Example Response
Last updated
Was this helpful?