Create SecObserve Record
secobserve_createCreate SecObserve records such as products, branches, services, rules, policies, or members. Describe the resource first to learn required fields, then submit the data for the new record.
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: params (CreateInput): Validated input containing: - 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 |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |