@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FormsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FormsApi.GetFormOptionalParameters
Manage optional parameters to getForm.
|
| Constructor and Description |
|---|
FormsApi() |
FormsApi(ApiClient apiClient) |
public FormsApi()
public FormsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic FormResponse cloneForm(UUID formId, CloneFormRequest body) throws ApiException
See cloneFormWithHttpInfo(java.util.UUID, com.datadog.api.client.v2.model.CloneFormRequest).
formId - The ID of the form to clone. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<FormResponse> cloneFormAsync(UUID formId, CloneFormRequest body)
See cloneFormWithHttpInfoAsync(java.util.UUID, com.datadog.api.client.v2.model.CloneFormRequest).
formId - The ID of the form to clone. (required)body - (required)public ApiResponse<FormResponse> cloneFormWithHttpInfo(UUID formId, CloneFormRequest body) throws ApiException
formId - The ID of the form to clone. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FormResponse>> cloneFormWithHttpInfoAsync(UUID formId, CloneFormRequest body)
See cloneFormWithHttpInfo(java.util.UUID, com.datadog.api.client.v2.model.CloneFormRequest).
formId - The ID of the form to clone. (required)body - (required)public FormResponse createAndPublishForm(CreateFormRequest body) throws ApiException
See createAndPublishFormWithHttpInfo(com.datadog.api.client.v2.model.CreateFormRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<FormResponse> createAndPublishFormAsync(CreateFormRequest body)
See createAndPublishFormWithHttpInfoAsync(com.datadog.api.client.v2.model.CreateFormRequest).
body - (required)public ApiResponse<FormResponse> createAndPublishFormWithHttpInfo(CreateFormRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FormResponse>> createAndPublishFormWithHttpInfoAsync(CreateFormRequest body)
See createAndPublishFormWithHttpInfo(com.datadog.api.client.v2.model.CreateFormRequest).
body - (required)public FormResponse createForm(CreateFormRequest body) throws ApiException
See createFormWithHttpInfo(com.datadog.api.client.v2.model.CreateFormRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<FormResponse> createFormAsync(CreateFormRequest body)
See createFormWithHttpInfoAsync(com.datadog.api.client.v2.model.CreateFormRequest).
body - (required)public ApiResponse<FormResponse> createFormWithHttpInfo(CreateFormRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FormResponse>> createFormWithHttpInfoAsync(CreateFormRequest body)
See createFormWithHttpInfo(com.datadog.api.client.v2.model.CreateFormRequest).
body - (required)public DeleteFormResponse deleteForm(UUID formId) throws ApiException
formId - The ID of the form. (required)ApiException - if fails to make API callpublic CompletableFuture<DeleteFormResponse> deleteFormAsync(UUID formId)
formId - The ID of the form. (required)public ApiResponse<DeleteFormResponse> deleteFormWithHttpInfo(UUID formId) throws ApiException
formId - The ID of the form. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<DeleteFormResponse>> deleteFormWithHttpInfoAsync(UUID formId)
formId - The ID of the form. (required)public FormResponse getForm(UUID formId) throws ApiException
formId - The ID of the form. (required)ApiException - if fails to make API callpublic CompletableFuture<FormResponse> getFormAsync(UUID formId)
formId - The ID of the form. (required)public FormResponse getForm(UUID formId, FormsApi.GetFormOptionalParameters parameters) throws ApiException
formId - The ID of the form. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<FormResponse> getFormAsync(UUID formId, FormsApi.GetFormOptionalParameters parameters)
formId - The ID of the form. (required)parameters - Optional parameters for the request.public ApiResponse<FormResponse> getFormWithHttpInfo(UUID formId, FormsApi.GetFormOptionalParameters parameters) throws ApiException
formId - The ID of the form. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FormResponse>> getFormWithHttpInfoAsync(UUID formId, FormsApi.GetFormOptionalParameters parameters)
formId - The ID of the form. (required)parameters - Optional parameters for the request.public FormsResponse listForms() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<FormsResponse> listFormsAsync()
public ApiResponse<FormsResponse> listFormsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FormsResponse>> listFormsWithHttpInfoAsync()
public FormPublicationResponse publishForm(UUID formId, PublishFormRequest body) throws ApiException
See publishFormWithHttpInfo(java.util.UUID, com.datadog.api.client.v2.model.PublishFormRequest).
formId - The ID of the form. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<FormPublicationResponse> publishFormAsync(UUID formId, PublishFormRequest body)
See publishFormWithHttpInfoAsync(java.util.UUID, com.datadog.api.client.v2.model.PublishFormRequest).
formId - The ID of the form. (required)body - (required)public ApiResponse<FormPublicationResponse> publishFormWithHttpInfo(UUID formId, PublishFormRequest body) throws ApiException
formId - The ID of the form. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FormPublicationResponse>> publishFormWithHttpInfoAsync(UUID formId, PublishFormRequest body)
See publishFormWithHttpInfo(java.util.UUID, com.datadog.api.client.v2.model.PublishFormRequest).
formId - The ID of the form. (required)body - (required)public FormResponse updateForm(UUID formId, UpdateFormRequest body) throws ApiException
See updateFormWithHttpInfo(java.util.UUID, com.datadog.api.client.v2.model.UpdateFormRequest).
formId - The ID of the form. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<FormResponse> updateFormAsync(UUID formId, UpdateFormRequest body)
See updateFormWithHttpInfoAsync(java.util.UUID, com.datadog.api.client.v2.model.UpdateFormRequest).
formId - The ID of the form. (required)body - (required)public ApiResponse<FormResponse> updateFormWithHttpInfo(UUID formId, UpdateFormRequest body) throws ApiException
formId - The ID of the form. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FormResponse>> updateFormWithHttpInfoAsync(UUID formId, UpdateFormRequest body)
See updateFormWithHttpInfo(java.util.UUID, com.datadog.api.client.v2.model.UpdateFormRequest).
formId - The ID of the form. (required)body - (required)public FormResponse upsertAndPublishFormVersion(UUID formId, UpsertAndPublishFormVersionRequest body) throws ApiException
formId - The ID of the form. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<FormResponse> upsertAndPublishFormVersionAsync(UUID formId, UpsertAndPublishFormVersionRequest body)
formId - The ID of the form. (required)body - (required)public ApiResponse<FormResponse> upsertAndPublishFormVersionWithHttpInfo(UUID formId, UpsertAndPublishFormVersionRequest body) throws ApiException
formId - The ID of the form. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FormResponse>> upsertAndPublishFormVersionWithHttpInfoAsync(UUID formId, UpsertAndPublishFormVersionRequest body)
formId - The ID of the form. (required)body - (required)public FormVersionResponse upsertFormVersion(UUID formId, UpsertFormVersionRequest body) throws ApiException
formId - The ID of the form. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<FormVersionResponse> upsertFormVersionAsync(UUID formId, UpsertFormVersionRequest body)
formId - The ID of the form. (required)body - (required)public ApiResponse<FormVersionResponse> upsertFormVersionWithHttpInfo(UUID formId, UpsertFormVersionRequest body) throws ApiException
upsert_params field
controls optimistic concurrency behavior.formId - The ID of the form. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FormVersionResponse>> upsertFormVersionWithHttpInfoAsync(UUID formId, UpsertFormVersionRequest body)
formId - The ID of the form. (required)body - (required)Copyright © 2026. All rights reserved.