Available in VPC
Edit tags in a database. All existing tags will be replaced with the list of tags provided in the request body.
Request
This section describes the request format. The method and URI are as follows:
| Method | URI |
|---|---|
| PUT | /api/v1/catalogs/{catalogId}/databases/{databaseName}/tag |
Request headers
For information about the headers common to all Data Catalog APIs, see Data Catalog request headers.
Request path parameters
You can use the following path parameters with your request:
| Field | Type | Required | Description |
|---|---|---|---|
catalogId |
Integer | Required | Catalog ID
|
databaseName |
String | Required | Database name
|
Request body
You can include the following data in the body of your request:
| Field | Type | Required | Description |
|---|---|---|---|
tagKeyTypeValueList |
Array | Required | Tag list: tagKeyTypeValueList
|
tagKeyTypeValueList
The following describes tagKeyTypeValueList.
| Field | Type | Required | Description |
|---|---|---|---|
tagKey |
String | Required | Tag key
|
tagType |
String | Required | Tag type
|
tagValue |
String | Required | Tag value
|
Request example
The request example is as follows:
curl --location --request PUT 'https://datacatalog.apigw.ntruss.com/api/v1/catalogs/4**/databases/mydatabase/tag' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--data '{
"tagKeyTypeValueList": [
{
"tagKey": "owner",
"tagType": "STRING",
"tagValue": "data-team"
},
{
"tagKey": "pii",
"tagType": "BOOLEAN",
"tagValue": "true"
}
]
}'
Response
This section describes the response format.
Response body
The response body includes the following data:
| Field | Type | Required | Description |
|---|---|---|---|
catalogId |
Integer | - | Catalog ID |
name |
String | - | Database name |
databaseName |
String | - | Database name |
description |
String | - | Database description
|
location |
String | - | Database location (path) |
createTime |
String | - | Database creation date and time
|
updateTime |
String | - | Database modification date and time
|
The response for tag updates does not include the list of tags (
tagKeyTypeValueList). To view the updated tags, use getDatabase(includeTags=true).
Response status codes
For information about the HTTP status codes common to all Data Catalog APIs, see Data Catalog response status codes.
Response example
The response example is as follows:
{
"catalogId": 4**,
"name": "mydatabase",
"databaseName": "mydatabase",
"description": "my database description",
"location": "s3a://mybucket/mydatabase",
"createTime": "2026-06-25T14:44:55+0900",
"updateTime": "2026-06-25T15:22:00+0900"
}