---
title: "Create a new test profile or update an existing test profile."
method: PATCH
path: "/test-profiles/{testProfileId}"
tags: ["TestProfile"]
---

# Create a new test profile or update an existing test profile.

`PATCH /test-profiles/{testProfileId}`

Create a new test profile or update an existing test profile by providing the test profile Id.

## Path parameters

- `testProfileId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- TestProfile — The Test Profile Model. A Test Profile resource enables you to set up a test profile which contains various configurations for a supported resource type and a load test to execute on that resource.
  - `testProfileId` string, required — Unique identifier for the test profile, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
  - `displayName` string — Display name of the test profile.
  - `description` string — Description for the test profile.
  - `testId` string — Associated test ID for the test profile. This property is required for creating a Test Profile and it's not allowed to be updated.
  - `targetResourceId` string, arm-id — Target resource ID on which the test profile is created. This property is required for creating a Test Profile and it's not allowed to be updated.
  - `targetResourceConfigurations` TargetResourceConfigurations — Configurations of a target resource. This varies with the kind of resource.
    - `kind` 'FunctionsFlexConsumption', required — Kind of the resource on which test profile is created.
  - `createdDateTime` string, date-time — The creation datetime(RFC 3339 literal format).
  - `createdBy` string — The user that created.
  - `lastModifiedDateTime` string, date-time — The last Modified datetime(RFC 3339 literal format).
  - `lastModifiedBy` string — The user that last modified.

## Other responses

- `201` — The request has succeeded and a new resource has been created as a result.
- `default` — An unexpected error response.

## Changes

- **2026-07-13** (2022-11-01) `778cfdeae65d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/loadtestservice-loadtesting/changes/test-profiles/:testProfileId/patch.md)

---

[API](https://skmtc.dev/azure/apis/loadtestservice-loadtesting.md) · [All operations](https://skmtc.dev/azure/apis/loadtestservice-loadtesting/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/loadtestservice-loadtesting/revisions/b15721d91722/schema)
