Tags
Attach a tag to a prompt
Attaches the given tag to the prompt. The endpoint is idempotent: attaching a tag that is already attached returns 200 with no change. Both the prompt and the tag must belong to the active project.
POST
/api/v1/prompts/{prompt}/tags/{tag}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| prompt | integer | Required | The numeric ID of the prompt. |
| tag | integer | Required | The numeric ID of the tag. |
Response
The prompt object
| Field | Type | Description |
|---|---|---|
| id | integer | The unique ID of the prompt. |
| monitor_id | integer | The ID of the monitor that owns this prompt. |
| prompt | string | The question text the monitor asks each engine on every run. |
| is_active | boolean | Whether the prompt will run on each daily run of its monitor. |
| created_at | datetime | When the prompt was created. |
| updated_at | datetime | When the prompt was last updated. |