---
search:
  tags:
    - database-services
    - POST
seo:
  description: >-
    Write a license grant obtained out of band. Reference for the POST
    /api/v1/database-services/{id}/grant endpoint in the TimescaleDB Enterprise
    API.
  noindex: true
sidebar:
  label: Set the license grant
  badge: POST
title: Set the license grant
type: openapi-operation
---
Write a license grant obtained out of band.

`POST /api/v1/database-services/{id}/grant`

**Request body** (`application/json`, required)

- `certificate` (string, required) — Machine file contents (-----BEGIN MACHINE FILE----- ...)

Request body example:

```json
{
  "certificate": "string"
}
```

**Responses**

- `204` — No Content
- `default` — Error
