# Create a progress adjustment

`POST https://api.cademi.com.br/api/v3/users/{user_id}/products/{product_id}/progress/adjustments`

Operation ID: `users.products.progress.adjustments.create` · API v3

Creates a progress adjustment for the user in a product. A `reset` adjustment clears the user's progress in the product. The `reason` is stored with the adjustment.

Points and certificates already earned are not reverted by a reset.

Required permissions: `progress.adjust`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `user_id` | path | string | yes |  |
| `product_id` | path | string | yes |  |

## Request body

Content type: `application/json`, required.

| Field | Type | Required | Description |
|---|---|---|---|
| `reason` | string | yes |  |
| `type` | string, one of `reset` | yes |  |

## Responses

### 201

Returns the newly created progress adjustment.

Body: `data`: ProgressAdjustment.

Fields of ProgressAdjustment:

| Field | Type | Required | Description |
|---|---|---|---|
| `author` | object | yes |  |
| `created_at` | string (date-time) | yes |  |
| `id` | string | yes |  |
| `object` | string, one of `progress_adjustment` | yes |  |
| `product_id` | string | yes |  |
| `reason` | string | yes |  |
| `result` | object | yes |  |
| `type` | string, one of `reset` | yes |  |
| `user_id` | string | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The user or product was not found or is not accessible with the current credentials.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
