---
title: "Activate my Sabre agent"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Activate my Sabre agent

Path: Nicer API › Booking

`PUT /booking/sabre/me`

URL: `https://api.nicer.travel/booking/sabre/me`

The signed-in advisor or admin sets the DK their own Sabre searches and bookings carry at the agency they act in (x-nicer-company); sending a different DK later changes it. The caller is always the token's person: there is no user id, PCC, corporate profile or default flag to send, and an admin who activates their own DK books under it like any advisor. A DK that reservation import already found at this agency and nobody owns becomes the caller's, together with the imported bookings made under it. The change reaches searches within about 30 seconds. Errors: 400 ERROR_BODY_VALIDATION (a DK is 1 to 10 letters and digits), 404 BOOKING_PROVIDER_NOT_CONFIGURED when the agency has no Sabre connection that is on, 409 BOOKING_DK_OWNER_CONFLICT when another person at the agency already has that DK, 409 BOOKING_DEFAULT_AGENT_MANAGED when the caller holds the agency's default agent (an admin changes that one in the agency's settings), 422 ASSIGNMENT_MEMBER_REQUIRED when the caller is not an active advisor or admin of the agency.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Header parameters

- `x-nicer-company` (`booking.sabre.me.update.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.

## Request body

_Required._

- `dkNumber` (`booking.sabre.me.update.dkNumber`; string, required) — The customer number (DK) Sabre stamps on a booking to say which agent of the agency made it: 1 to 10 letters and digits, stored upper-case.
  - pattern: `^[A-Z0-9]{1,10}$`

## Example request

```json
{
  "dkNumber": "7TZ123"
}
```

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
  headers: { "x-nicer-company": process.env.NICER_COMPANY },
});

await nicer.booking.sabre.me.update({
  "dkNumber": "7TZ123"
});
```

### Nicer CLI

```bash
nicer booking sabre me update --company "$NICER_COMPANY" --input - <<'JSON'
{
  "dkNumber": "7TZ123"
}
JSON
```

### cURL

```bash
curl --request PUT \
  --url https://api.nicer.travel/booking/sabre/me \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-nicer-company: string' \
  --data '
{
  "dkNumber": "7TZ123"
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/booking/sabre/me';
const options = {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json',
    'x-nicer-company': 'string',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({dkNumber: '7TZ123'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/booking/sabre/me"

payload = { "dkNumber": "7TZ123" }
headers = {
    "Content-Type": "application/json",
    "x-nicer-company": "string",
    "Authorization": "Bearer <token>"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "agent": {
    "activatedAt": "2026-11-10T15:04:05.000Z",
    "dkNumber": "7TZ123",
    "isDefault": false
  },
  "bookingAs": "OWN_AGENT",
  "enabled": true,
  "products": [
    "CAR_RENTAL",
    "FLIGHT",
    "HOTEL"
  ]
}
```

- `agent` (`booking.sabre.me.update.response.200.agent`; any of, required)
  - any of the following:
    - `object`
      - `activatedAt` (`booking.sabre.me.update.response.200.agent.1.activatedAt`; string, required)
        - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
      - `dkNumber` (`booking.sabre.me.update.response.200.agent.1.dkNumber`; string, required) — The customer number (DK) Sabre stamps on a booking to say which agent of the agency made it: 1 to 10 letters and digits, stored upper-case.
        - pattern: `^[A-Z0-9]{1,10}$`
      - `isDefault` (`booking.sabre.me.update.response.200.agent.1.isDefault`; boolean, required)
    - `null`
- `bookingAs` (`booking.sabre.me.update.response.200.bookingAs`; string, required) — Whose DK the caller's Sabre searches and bookings carry: `OWN_AGENT` their own; `AGENCY_AGENT` the agency's default agent, because they have none; `NO_AGENT` neither exists, so Sabre returns nothing for them until they activate one.
  - one of `"OWN_AGENT"`, `"AGENCY_AGENT"`, `"NO_AGENT"`
- `enabled` (`booking.sabre.me.update.response.200.enabled`; boolean, required)
- `products` (`booking.sabre.me.update.response.200.products`; array of string, required)
  - one of `"CAR_RENTAL"`, `"FLIGHT"`, `"HOTEL"`, `"INSURANCE"`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`booking.sabre.me.update.response.400.errorCode`; string, required)
- `errorMessage` (`booking.sabre.me.update.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`booking.sabre.me.update.response.401.errorCode`; string, required)
- `errorMessage` (`booking.sabre.me.update.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`booking.sabre.me.update.response.403.errorCode`; string, required)
- `errorMessage` (`booking.sabre.me.update.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Booking/booking.sabre.me.update/index.md
