---
title: "Validate the actions defined on a resource model"
method: POST
path: "/lifecycle-manager/resources/{modelId}/actions/validate"
tags: ["Lifecycle Manager"]
---

# Validate the actions defined on a resource model

`POST /lifecycle-manager/resources/{modelId}/actions/validate`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/lifecycle-manager/resources/{modelId}/actions/validate`
- Auth: none declared

This method validates the actions on a resource model. Each validation report has an associate severity, and designates whether or not it will prevent the action from saving, prevent the model from running, or both. It accepts pending edits to actions in the optional 'actions' body parameter in order to check for validation issues on unsaved, pending changes to an action.

## Path parameters

- `modelId` string, required: A MongoDB ObjectId

## Request body

- object
  - `actions` LifecycleManagerResourceModelCommonActionsItems[]
    - `_id` unknown, required
    - `name` string, required: The name of the action
    - `description` string: Free-form text describing the purpose of the action
    - `type` 'import' | 'create' | 'update' | 'delete', required: The type of the action
    - `preWorkflowJst` string, nullable, required: Optional transformation to be applied to incoming parameters before providing them to the workflow.
    - `workflow` string, nullable, required: Optional transformation to be applied to incoming parameters before providing them to the workflow.
    - `postWorkflowJst` string, nullable, required: Optional transformation to be applied to the workflow's outputs before updating the instance.

## Response `200`

response

- union
  - LifecycleManagerCommonHttpResponse0: A success response from an API method
    - `message` string, required: A human-readable message summarizing the result of the operation
    - `data` unknown, required
    - `metadata` object, required: Any structured, wordy or machine-readable information related to the result of the operation. For success responses, this may contain information like pagination values from a search operation.
  - LifecycleManagerCommonHttpResponse1: A failure response from an API method
    - `message` string, required: A human-readable message summarizing the result of the operation
    - `data` unknown, required
    - `metadata` LifecycleManagerCommonHttpResponseOneOf1Metadata, required: Any structured, wordy or machine-readable information related to the result of the operation. For error responses, this will always at least contain an 'errors' array, even if it is empty.
      - `errors` unknown[]
        - unknown

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Lifecycle Manager` added
  - api tag `lifecycleManager` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/lifecycle-manager/resources/:modelId/actions/validate/post.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
