Topics
Create a topic
Creates a topic, optionally under a parent topic, and returns it. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.
POST/v1/projects/{project_id}/topics
Needs the prompts:write scope
Creates a topic, optionally under a parent topic, and returns it. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.
Path parameters
| Parameter |
|---|
project_id |
Headers
| Parameter |
|---|
Idempotency-Key |
Request body
| Parameter | Description |
|---|---|
name | |
description | Default "" |
parent_id |
Response 201: Topic