import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.account.update({
name: "My Business",
support_email: "support@example.com"
});
console.log(result);
}
run();{
"id": "<string>",
"object": "<string>",
"name": "<string>",
"subdomain": "<string>",
"domain": "<string>",
"display_currency": "<string>",
"support_email": "<string>",
"avatar_url": "<string>",
"description": "<string>",
"social_links": [
{
"platform": "facebook",
"url": "<string>"
}
]
}Updates the authenticated account’s information
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.account.update({
name: "My Business",
support_email: "support@example.com"
});
console.log(result);
}
run();{
"id": "<string>",
"object": "<string>",
"name": "<string>",
"subdomain": "<string>",
"domain": "<string>",
"display_currency": "<string>",
"support_email": "<string>",
"avatar_url": "<string>",
"description": "<string>",
"social_links": [
{
"platform": "facebook",
"url": "<string>"
}
]
}API key in the format: Bearer {api_token}
Account updated
Was this page helpful?