//native
type Telnyx = {
apiKey: string
}
/**
* Revet Brand
* This operation allows you to revet the brand. However, revetting is allowed once after the successful brand registration and thereafter limited to once every 3 months.
*/
export async function main(auth: Telnyx, brandId: string) {
const url = new URL(`https://api.telnyx.com/v2/brand/${brandId}/revet`)
const response = await fetch(url, {
method: 'PUT',
headers: {
Authorization: 'Bearer ' + auth.apiKey
},
body: undefined
})
if (!response.ok) {
const text = await response.text()
throw new Error(`${response.status} ${text}`)
}
return await response.json()
}
Submitted by hugo697 428 days ago