Editing
This API endpoint allows you to edit any order you own. To reprocess an image, you must provide the order_id and a valid API key.
const apiKey = "YOUR_API_KEY";
const orderId = "ID_OF_YOUR_ORDER";
const editOrder = async (orderId, apiKey) => {
const editOrderResponse = await fetch(
`https://api.autoenhance.ai/v3/orders/${orderId}`,
{
method: "PATCH",
headers: {
"Content-Type": "application/json",
"x-api-key": apiKey,
},
body: JSON.stringify({
name:"Edited name of my order"
}),
}
);
const { order_id, name, images, status } = await editOrderResponse.json();
}import requests
api_key = "YOUR_API_KEY"
order_id = "ID_OF_YOUR_ORDER"
def edit_order(api_key, order_id):
url = f"https://api.autoenhance.ai/v3/orders/{order_id}"
headers = {
"Content-Type": "application/json",
"x-api-key": api_key,
}
payload = {
"name": "Edited name of my order"
}
response = requests.patch(url, headers=headers, json=payload)
response_data = response.json()
order_id = response_data.get('order_id')
name = response_data.get('name')
images = response_data.get('images')
status = response_data.get('status')
return order_id, name, images, statusThe response after successfully editing an order will contain all the details of your order with the uploaded values.
Specification
Updates the details for the specific order. Images can be sorted using the sort_images_by parameter.
Specifies sort order for images in the order
Default sort order for images in the order. Prefix with '-' for descending order.
The name for the order.
The ID for the order.
Successful response
The creation date of the order.
Default sort order for images in the order.
The status of the order.
The processing status for the order
The processing status for the order
The last updated date of the order.
The name for the order.
The ID for the order.
The status of the order.
Number of images in the order.
Authentication error
Not found
Validation error
PATCH /v3/orders/{id} HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"default_image_sort_order": "name",
"name": "text",
"order_id": "text"
}{
"created_at": "2026-01-01T00:00:00.000Z",
"default_image_sort_order": "name",
"images": [
{
"ai_version": "text",
"cloud_type": "CLEAR",
"date_added": 1,
"downloaded": true,
"enhance": true,
"enhance_type": "property",
"finetune_settings": {},
"image_id": "123e4567-e89b-12d3-a456-426614174000",
"image_name": "text",
"lens_correction": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"order_id": null,
"parent_image_id": "text",
"preset_id": null,
"preset_version": null,
"privacy": true,
"rating": 1,
"restage": {
"fire_in_fireplaces": "AS_SHOT",
"grass": "AS_SHOT",
"photographer": "AS_SHOT",
"sky": "AS_SHOT",
"tvs": "AS_SHOT"
},
"scene": "text",
"sky_replacement": true,
"status": null,
"status_reason": null,
"tripod_hide": true,
"upscale": true,
"user_id": null,
"vertical_correction": true,
"window_pull_type": "NONE",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"is_deleted": true,
"is_merging": true,
"is_processing": true,
"last_updated_at": "2026-01-01T00:00:00.000Z",
"name": "text",
"order_id": "text",
"status": null,
"total_images": 1
}Last updated
Was this helpful?