> For the complete documentation index, see [llms.txt](https://jamiemc.gitbook.io/autoenhance-ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jamiemc.gitbook.io/autoenhance-ai/making-changes-to-an-enhancement.md).

# Making changes to an enhancement

If you’re unhappy with your edited image, then you can make changes.

If you want to change the vertical correction, which makes crooked lines straight, then set **vertical\_correction**: **false**, and the AI will disable this.

If the image should have a sky replacement, and it hasn’t been achieved by the AI, then you can set **sky\_replacement**: **true**, and the AI will apply a sky replacement to the image. If the image shouldn’t have a sky replacement, but the AI has applied one, then you can set **sky\_replacement**: **false**, to disable the sky replacement.

## Edit enhancement&#x20;

<mark style="color:green;">`POST`</mark> `https://api.autoenhance.ai/v2/image/:image_id/process`

#### Path Parameters

| Name      | Type   | Description                                                                 |
| --------- | ------ | --------------------------------------------------------------------------- |
| image\_id | string | image\_id was provided when you made your post request to /image in step 2. |

#### Headers

| Name      | Type   | Description                                          |
| --------- | ------ | ---------------------------------------------------- |
| x-api-key | String | Provide your API key, found in the developer portal. |

#### Request Body

| Name                 | Type    | Description                                                                                                                                              |
| -------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sky\_replacement     | boolean | When true the AI will try to replace the sky if it detects a sky in the image. When false the AI will not try to detect or replace the sky in the image. |
| vertical\_correction | boolean | True to enable perspective correction and false to disable.                                                                                              |
| sky\_type            | String  | Set specific sky type. (Options: UK\_*SUMMER, UK\_WINTER or USA*\_*SUMMER). Default is UK\_SUMMER.*                                                      |
| cloud\_type          | String  | Set specific cloud type. (Options: CLEA&#x52;*, LOW\_CLOUD or HIGH\_CLOUD). Default is HIGH*\_CLOUD.                                                     |
| contrast\_boost      | String  | Set contrast boost level. (Options: NON&#x45;*, LOW, MEDIUM or HIGH). Default is LOW*.                                                                   |
| threesixty           | boolean | Enable/Disable 360 enhancement. By default, this is false. 360 enhancement requires a 360 panorama.                                                      |

{% tabs %}
{% tab title="200 " %}

```
{
  "image_id": uuid,
  "order_id": uuid,
  "image_name": string,
  "enhance_type": string,
  "image_type": string,
  "status": string,
  "sky_replacement": boolean,
  "vertical_correction": boolean,
  "room_type": string
}
```

{% endtab %}
{% endtabs %}

When the request has been made the image will be resubmitted to be processed by the AI. To check on the progress of the enhancement you may either call **GET /image** or **GET /order** to check the status of the image being processed. View "Checking an image/order has been enhanced" to understand how to check this.

{% content-ref url="/pages/-MlEqO6lvTxpHqqA9qAh" %}
[Checking an image/order has been enhanced](/autoenhance-ai/checking-an-image-order-has-been-enhanced.md)
{% endcontent-ref %}

Once updated, the image will be accessed from the same /preview or /enhanced endpoints.
