Skip to content

Titles

Defined in: src/team/client.gen.ts:387

new Titles(_core): Titles

Defined in: src/team/client.gen.ts:388

BrexCore

Titles

create(body, options?): Promise<{ id: string; name: string; }>

Defined in: src/team/client.gen.ts:398

Create title

This endpoint creates a new title

POST /v2/titles — requires OAuth scope: titles Supports an optional Idempotency-Key via options.idempotencyKey.

string

Description

Name of the title

RequestOptions

Promise<{ id: string; name: string; }>


get(id, options?): Promise<{ id: string; name: string; }>

Defined in: src/team/client.gen.ts:416

Get title

This endpoint gets a title by ID.

GET /v2/titles/{id} — requires OAuth scope: titles, titles.readonly

string

RequestOptions

Promise<{ id: string; name: string; }>


list(query?, options?): PagePromise<{ items: object[]; next_cursor?: string | null; }>

Defined in: src/team/client.gen.ts:433

List titles

This endpoint lists all titles.

GET /v2/titles — requires OAuth scope: titles, titles.readonly Await for a single page, or for await to iterate items across all pages.

string | null

number | null

string | null

RequestOptions

PagePromise<{ items: object[]; next_cursor?: string | null; }>