---
title: "Perform edits to a resource model"
method: POST
path: "/lifecycle-manager/resources/{modelId}/edit"
tags: ["Lifecycle Manager"]
---

# Perform edits to a resource model

`POST /lifecycle-manager/resources/{modelId}/edit`

## Request

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

Performs edits to a resource model. This method exists to support specific resource edit activities required by the UI.

## Path parameters

- `modelId` string, required: A MongoDB ObjectId

## Request body

- LifecycleManagerEditResourceModelHttpRequest
  - `command` 'generate-action-workflow' | 'generate-action-pre-transformation' | 'generate-action-post-transformation', required: Edit command to execute
  - `action` string, required: Resource action ID or pending action definition
  - `overwrite` boolean: Tells the component generator to either disregard and overwrite an existing component on the action (when true) or to refuse to generate a new component (when false).
  - `updateAction` boolean: Tells the component generator to either update the action in the database (when true) or to only generate and return the new component (when false)

## 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/edit/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)
