Path parameters

idstringrequired

The ID of the agency to update.

Body parameters

namestring

The name of the agency.

emailstring

The agency's primary email address.

locationstring

The ISO 3166 country code for the agency's location.

timezonestring

The agency's preferred timezone. The value must be a valid timezone string, check the list of supported timezones for more information.

urlstring | null

The agency's website URL.

descriptionstring | null

A short description about the agency.

avatarstring | null

The asset URL for the agency's avatar.

Response

idstring

The unique identifier for this agency.

objectstring

This will always contain agency for this endpoint.

namestring

The agency name.

emailstring

The agency's preferred email address.

slugstring

The agency's unique username.

urlstring | null

The agency's website URL.

locationstring

The ISO 3166 country code for the agency's location.

timezonestring

The agency's preferred timezone.

avatarstring | null

The asset URL for the agency's avatar.

descriptionstring | null

A short description about the agency.

trial_modeboolean

Determine whether the agency is subscribed to Blutui.

is_agencyboolean

Determine whether the agency is a qualified Blutui agency.

is_aws_customerboolean

Determine whether the agency is an AWS marketplace customer.

created_attimestamp

The agency's created at timestamp.

updated_attimestamp

The agency's updated at timestamp.

import Blutui from 'blutui'

const blutui = new Blutui('ey....')

blutui.agencies.update('9af3accc-1536-4336-8cc3-3b3b2a96c18a', {
  url: 'https://flume.awesome'
})
Response
{
  "id": "9af3accc-1536-4336-8cc3-3b3b2a96c18a",
  "object": "agency",
  "name": "Flume",
  "email": "jayan@flume.agency",
  "slug": "flume",
  "url": "https://flume.agency",
  "location": "NZ",
  "timezone": "UTC",
  "avatar": null,
  "description": null,
  "trial_mode": false,
  "is_agency": false,
  "is_aws_customer": false,
  "created_at": 1703713667,
  "updated_at": 1721087098
}

Was this helpful?