---
title: "Update feature"
method: PUT
path: "/v1/feature/{featureId}"
tags: ["Feature"]
---

# Update feature

`PUT /v1/feature/{featureId}`

## Request

- Base URL: `https://app.aptrinsic.com`
- URL: `https://app.aptrinsic.com/v1/feature/{featureId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/gainsight/apis/gainsight-px-rest-api/docs/v1/feature/:featureId/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates a feature with the given data
 Does not support editing labels
Supported Fields:

| FieldName  |
| ----- |
| name |
| parentFeatureId (use "ROOT" to move to base of feature tree |

## Path parameters

- `featureId` string, required

## Request body

- Feature: Feature object
  - `id` string, required
  - `name` string, required
  - `type` 'FEATURE' | 'MODULE', required
  - `parentFeatureId` string
  - `propertyKey` string, required
  - `status` 'ACTIVATED' | 'DELETED'
  - `featureLabels` FeatureLabel[]: Array of labels associated with the feature
    - `id` string
    - `name` string
    - `color` string

## Response `204`

Updated

- ResponseEntity
  - `body` object
  - `statusCode` '100' | '101' | '102' | '103' | '200' | '201' | '202' | '203' | '204' | '205' | '206' | '207' | '208' | '226' | '300' | '301' | '302' | '303' | '304' | '305' | '307' | '308' | '400' | '401' | '402' | '403' | '404' | '405' | '406' | '407' | '408' | '409' | '410' | '411' | '412' | '413' | '414' | '415' | '416' | '417' | '418' | '419' | '420' | '421' | '422' | '423' | '424' | '426' | '428' | '429' | '431' | '451' | '500' | '501' | '502' | '503' | '504' | '505' | '506' | '507' | '508' | '509' | '510' | '511'
  - `statusCodeValue` integer

## Other responses

- `401`: Unauthorized or bad API Key
- `404`: Feature not found
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/gainsight/apis/gainsight-px-rest-api.md) - [All operations](https://skmtc.dev/gainsight/apis/gainsight-px-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gainsight/apis/gainsight-px-rest-api/revisions/e7b197b373d8?raw)
