Delete record
Description
This API is applicable when a partner has generated image records through the following APIs:
- ID Photo APIs (watermarked API series and unwatermarked image query APIs)
- Photo Studio - Portrait Face Swap API
This API is used to delete the corresponding image records.
Once the deletion is completed, the related images and generation records will be permanently removed and cannot be used again. This deletion API does not consume any usage quota. For integration details, please refer to the documentation below.
Version
1.0
Changelog
Request URL
Production environment: https://openapi.meitu.com/idphoto/business/delete_images
Request Method
POST
The request header must include:
Content-Type: application/json
Authorization
Request Parameters
| Parameter | Type | Maximum Length | Required | Description |
|---|---|---|---|---|
| mt_generate_id | string | 19 | Yes | Meitu generation ID |
Request Example
{
"mt_generate_id": "1712652640552366000"
}Response Description
Successful Response
| Field | Type | Example Value | Description |
|---|---|---|---|
| code | int | 100000 | Response status code |
| msg | string | Success | Message |
| data | object | Data |
Failed Response
| Field | Type | Description |
|---|---|---|
| data | String | Returned content |
| message | String | Error message |
| code | Int | Error code |
Response Example
Successful Response Example
Response Status: 200
Content-Type: application/json; charset=utf-8
{
"code": 100000,
"data": {},
"msg": "Success"
}Response Status Codes
| Status Code | Description |
|---|---|
| 100000 | Success |
| 100001 | Invalid parameters |