Create SecObserve Record
secobserve_createCreate a SecObserve record (product, branch, service, rule, policy, member, etc.) by specifying resource and data. Returns the new record with its ID.
Instructions
Create a record in SecObserve (product, branch, service, rule, policy, member, ...).
Call secobserve_describe_resource for the resource first: SecObserve's serializers reject unknown fields and enforce enums, and its 400 bodies name the offending field.
Args: resource (str): Resource name supporting create. data (dict): Request body. response_format (ResponseFormat): "markdown" or "json".
Returns: str: The created record, including its new "id", as markdown or JSON.
Examples: - Use when: "add branch 'release-2.1' to product 12" -> resource="branches", data={"product": 12, "name": "release-2.1"} - Use when: "give user 7 the Writer role on product 12" -> resource="product_members", data={"product": 12, "user": 7, "role": "Writer"} - Don't use when: importing scanner findings (use secobserve_import_scan_file or secobserve_api_import -- creating observations by hand bypasses deduplication and rules).
Error Handling: Refused with a clear message when the resource has no create operation, or when SECOBSERVE_READ_ONLY is set. 400 responses are returned with the field-level detail from the API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Request body. Call secobserve_describe_resource first for required fields and enums. | |
| resource | Yes | Resource name that supports create, e.g. 'products', 'branches'. | |
| response_format | No | 'markdown' for reading, 'json' for further processing. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |