Create a discovery
Create a discovery
| Request Body — REQUIRED | |||
|---|---|---|---|
title string — REQUIREDTitle of the discovery | |||
description stringDescription of the discovery. Accepts markdown, plain text or HTML — markdown is rendered, plain text keeps its line breaks, and the result is sanitized before storage. | |||
parentId string — REQUIREDIdentifier of the parent: a component, or a discovery that is itself directly under a component. A discovery cannot be created at the root. | |||
discoveryStateId stringIdentifier of the discovery state. Defaults to the project's default state. | |||
createdAt stringCreation date as an ISO-8601 string. Defaults to the current date. | |||
tagIds string[]Tags to link, named by id, client id or name. A tag that does not resolve rejects the request. | |||
assigneeIds string[]Identifiers of the assignees. Only a collaborator can own a discovery; anything else rejects the request. | |||
fieldsValues object[]Values for the project's user-defined discovery fields. Any invalid entry rejects the whole request.
|
| Responses | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
201Create a discovery. Every reference in the body must resolve — an unknown parent, state, tag, assignee, field or option rejects the whole request. The response always carries
| |||||||||||||||||||||||||||
400A reference in the body did not resolve — parent, state, tag, assignee, field or option — or a field value did not match the type of its field. | |||||||||||||||||||||||||||
403The project reached the discovery limit of its plan. Delete discoveries or upgrade the plan. |