dialog-images

Update a dialog image

Update an existing dialog image. After update, it will require admin approval again.

patch/dialog-images/{id}

Request

  • Base URL
    https://api.tonewow.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.tonewow.com/dialog-images/{id}
  • Auth
    HTTP bearer

Path parameters

idnumber required
Example:1

Dialog image ID

Request body multipart/form-data

image_urlstring binary

New image file (optional)

deep_link_urlstring

Deep link URL (optional)

published_datestring date-time

Published date (ISO 8601) (optional)

click_countstring

Click count (optional)

Example request

{
  "deep_link_url": "https://example.com/new-deep-link",
  "published_date": "2024-01-01T00:00:00.000Z",
  "click_count": "10"
}

Response

Dialog image updated successfully

idnumber required

Dialog Image ID

image_urlstring required

Image URL

deep_link_urlstring required

Deep link URL

published_datestring date-time required

Published date

is_activeboolean required

Is active (approved)

created_atstring date-time required

Created at

updated_atstring date-time required

Updated at

click_countstring required

Click count

approved_bynumber

Admin user ID who approved

approved_atstring date-time

Approval date

Example response

{
  "id": 1,
  "image_url": "https://example.com/image.jpg",
  "deep_link_url": "https://example.com/deep-link",
  "published_date": "2024-01-01T00:00:00.000Z",
  "is_active": true,
  "created_at": "2024-01-01T00:00:00.000Z",
  "updated_at": "2024-01-01T00:00:00.000Z",
  "click_count": "0",
  "approved_by": 1,
  "approved_at": "2024-01-01T00:00:00.000Z"
}

Changes

No recorded changes to this operation across all 6 revisions of this API.