---
title: "POST /v2/update-function"
method: POST
path: "/v2/update-function"
---

# POST /v2/update-function

`POST /v2/update-function`

Updates a service function.

## Request body

- object
  - `serviceArn` string, required — ARN identifier.
  - `serviceFunctionId` string, required — The identifier of the service function to update.
  - `name` string — Entity label (not part of ARN — spaces allowed).
  - `description` string — Resource description.
  - `criticality` 'PRIMARY' | 'SUPPLEMENTAL' — The updated criticality level of the service function.

## Response `200`

Success

- UpdateServiceFunctionResponse
  - `serviceFunction` object, required — The updated service function.
    - `serviceArn` string, required — ARN identifier.
    - `serviceFunctionId` string, required — The unique identifier of the service function.
    - `name` string, required — Entity label (not part of ARN — spaces allowed).
    - `description` string — Resource description.
    - `criticality` 'PRIMARY' | 'SUPPLEMENTAL', required — The criticality level of the service function.
    - `resourceCount` integer — The number of resources associated with the service function.
    - `source` 'AI_GENERATED' | 'USER' — The source of the service function.
    - `createdAt` string, date-time — The timestamp when the service function was created.
    - `updatedAt` string, date-time — The timestamp when the service function was last updated.

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — ValidationException
- `483` — ConflictException
- `484` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/resiliencehubv2.md) · [All operations](https://skmtc.net/aws/apis/resiliencehubv2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/resiliencehubv2/versions/27331d252935/schema)
