Skip to main content

form_versions

Creates, updates, deletes, gets or lists a form_versions resource.

Overview

Nameform_versions
TypeResource
Iddatadog.service_management.form_versions

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
upsert_form_versioninsertform_id, dataCreate or update the latest draft version of a form. The upsert_params field controls<br />optimistic concurrency behavior.
upsert_and_publish_form_versionexecform_id, dataUpsert the latest form version and publish it in a single atomic transaction.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
form_idstring (uuid)The ID of the form. (example: 22f6006a-2302-4926-9396-d2dfcf7b0b34)
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

INSERT examples

Create or update the latest draft version of a form. The upsert_params field controls<br />optimistic concurrency behavior.

INSERT INTO datadog.service_management.form_versions (
data,
form_id
)
SELECT
'{{ data }}' /* required */,
'{{ form_id }}'
RETURNING
data
;

Lifecycle Methods

EXEC variables use wire (API) names.

Upsert the latest form version and publish it in a single atomic transaction.

EXEC datadog.service_management.form_versions.upsert_and_publish_form_version
@form_id='{{ form_id }}' --required,
@@json=
'{
"data": "{{ data }}"
}'
;