AI Shoot
Ce contenu n’est pas encore disponible dans votre langue.
Use the AI Shoot API to manage SKUs and retrieve brief results for your shoots.
List SKUs
Section titled “List SKUs”GET https://api.autoretouch.com/ai-shoot/skusQuery Parameters
Section titled “Query Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | No | Page number |
pageSize | integer | No | Number of items per page |
projectFilter | string | No | Filter SKUs by project |
skuIdFilter | string | No | Filter by SKU ID |
Request
Section titled “Request”curl -X GET "https://api.autoretouch.com/ai-shoot/skus?page=1&pageSize=20" \ -H "Authorization: Bearer {accessToken}"import requests
response = requests.get( "https://api.autoretouch.com/ai-shoot/skus", params={"page": 1, "pageSize": 20}, headers={"Authorization": f"Bearer {access_token}"})
data = response.json()print(data)List Global SKUs
Section titled “List Global SKUs”GET https://api.autoretouch.com/ai-shoot/skus/globalReturns globally available SKUs for the organization. No additional query parameters.
Request
Section titled “Request”curl -X GET "https://api.autoretouch.com/ai-shoot/skus/global" \ -H "Authorization: Bearer {accessToken}"import requests
response = requests.get( "https://api.autoretouch.com/ai-shoot/skus/global", headers={"Authorization": f"Bearer {access_token}"})
data = response.json()print(data)Create SKU
Section titled “Create SKU”POST https://api.autoretouch.com/ai-shoot/skusReturns 201 Created on success.
Request Body
Section titled “Request Body”| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | SKU name (non-blank) |
frontImage | string | Yes | Front image identifier (non-blank) |
backImage | string | No | Back image identifier |
gender | string | No | Gender of the SKU. Possible values: male, female |
isInWardrobe | boolean | No | Whether the SKU is in the wardrobe |
projectIds | integer[] | No | List of project IDs to associate (positive integers) |
skuCategoryName | string | No | SKU category. Possible values: top, bottom, outfit, socks, shoes, hats |
Request
Section titled “Request”curl -X POST "https://api.autoretouch.com/ai-shoot/skus" \ -H "Authorization: Bearer {accessToken}" \ -H "Content-Type: application/json" \ -d '{ "name": "Blue Shirt", "frontImage": "image-identifier-front", "gender": "male", "projectIds": [1, 2], "skuCategoryName": "top" }'import requests
response = requests.post( "https://api.autoretouch.com/ai-shoot/skus", headers={ "Authorization": f"Bearer {access_token}", "Content-Type": "application/json" }, json={ "name": "Blue Shirt", "frontImage": "image-identifier-front", "gender": "male", "projectIds": [1, 2], "skuCategoryName": "top" })
sku = response.json()print(sku)Update SKU
Section titled “Update SKU”PUT https://api.autoretouch.com/ai-shoot/skus/{skuId}Path Parameters
Section titled “Path Parameters”| Parameter | Type | Description |
|---|---|---|
skuId | string | ID of the SKU to update |
Request Body
Section titled “Request Body”| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | SKU name (non-blank) |
frontImage | string | Yes | Front image identifier (non-blank) |
backImage | string | No | Back image identifier |
gender | string | No | Gender. Possible values: male, female |
isInWardrobe | boolean | No | Defaults to false if omitted |
projectIds | integer[] | No | Defaults to empty list if omitted |
skuCategoryName | string | No | SKU category. Possible values: top, bottom, outfit, socks, shoes, hats |
Request
Section titled “Request”curl -X PUT "https://api.autoretouch.com/ai-shoot/skus/{skuId}" \ -H "Authorization: Bearer {accessToken}" \ -H "Content-Type: application/json" \ -d '{ "name": "Blue Shirt Updated", "frontImage": "image-identifier-front", "skuCategoryName": "top" }'import requests
response = requests.put( f"https://api.autoretouch.com/ai-shoot/skus/{sku_id}", headers={ "Authorization": f"Bearer {access_token}", "Content-Type": "application/json" }, json={ "name": "Blue Shirt Updated", "frontImage": "image-identifier-front", "skuCategoryName": "top" })print(response.status_code)Delete SKU
Section titled “Delete SKU”DELETE https://api.autoretouch.com/ai-shoot/skus/{skuId}Path Parameters
Section titled “Path Parameters”| Parameter | Type | Description |
|---|---|---|
skuId | string | ID of the SKU to delete |
Request
Section titled “Request”curl -X DELETE "https://api.autoretouch.com/ai-shoot/skus/{skuId}" \ -H "Authorization: Bearer {accessToken}"import requests
response = requests.delete( f"https://api.autoretouch.com/ai-shoot/skus/{sku_id}", headers={"Authorization": f"Bearer {access_token}"})print(response.status_code)Brief Results
Section titled “Brief Results”Get Brief Results
Section titled “Get Brief Results”GET https://api.autoretouch.com/ai-shoot/briefs/{briefId}/resultsPath Parameters
Section titled “Path Parameters”| Parameter | Type | Description |
|---|---|---|
briefId | integer | ID of the brief |
Query Parameters
Section titled “Query Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | No | Page number |
pageSize | integer | No | Items per page |
Request
Section titled “Request”curl -X GET "https://api.autoretouch.com/ai-shoot/briefs/{briefId}/results?page=1&pageSize=20" \ -H "Authorization: Bearer {accessToken}"import requests
response = requests.get( f"https://api.autoretouch.com/ai-shoot/briefs/{brief_id}/results", params={"page": 1, "pageSize": 20}, headers={"Authorization": f"Bearer {access_token}"})
results = response.json()print(results)