ThaiProps Media API
The Media API from ThaiProps — 16 operation(s) for media.
The Media API from ThaiProps — 16 operation(s) for media.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/thaiprops-com:thaiprops-com-media-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ThaiProps Admin Media API
version: 0.1.0
tags:
- name: Media
paths:
/admin/media/{row_id}/publish:
patch:
tags:
- Media
summary: Set Media Publish
operationId: set_media_publish_admin_media__row_id__publish_patch
parameters:
- name: row_id
in: path
required: true
schema:
type: integer
title: Row Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PublishIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/list:
get:
tags:
- Media
summary: List Media
operationId: list_media_admin_media_list_get
parameters:
- name: property_id
in: query
required: true
schema:
type: integer
minimum: 1
title: Property Id
- name: post_type
in: query
required: false
schema:
type: string
default: property
title: Post Type
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/upload:
post:
tags:
- Media
summary: Upload Media
operationId: upload_media_admin_media_upload_post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_upload_media_admin_media_upload_post'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/{row_id}/metadata:
patch:
tags:
- Media
summary: Edit Media Metadata
operationId: edit_media_metadata_admin_media__row_id__metadata_patch
parameters:
- name: row_id
in: path
required: true
schema:
type: integer
title: Row Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MediaMetadataIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/{row_id}/seo-auto:
post:
tags:
- Media
summary: Use Auto Image Seo
operationId: use_auto_image_seo_admin_media__row_id__seo_auto_post
parameters:
- name: row_id
in: path
required: true
schema:
type: integer
title: Row Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/{row_id}/editor-info:
get:
tags:
- Media
summary: Media Editor Info
operationId: media_editor_info_admin_media__row_id__editor_info_get
parameters:
- name: row_id
in: path
required: true
schema:
type: integer
title: Row Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/{row_id}/transform:
patch:
tags:
- Media
summary: Transform Media
operationId: transform_media_admin_media__row_id__transform_patch
parameters:
- name: row_id
in: path
required: true
schema:
type: integer
title: Row Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MediaTransformIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/{row_id}/restore-original:
post:
tags:
- Media
summary: Restore Media Original
operationId: restore_media_original_admin_media__row_id__restore_original_post
parameters:
- name: row_id
in: path
required: true
schema:
type: integer
title: Row Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/{row_id}/edit:
patch:
tags:
- Media
summary: Edit Media
description: 'Overwrite an existing media file (used by the React image editor).
For now we overwrite the original image on disk and return the
updated row in the same shape as /list and /browse.'
operationId: edit_media_admin_media__row_id__edit_patch
parameters:
- name: row_id
in: path
required: true
schema:
type: integer
title: Row Id
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/fastapi___compat__Body_edit_media_admin_media__row_id__edit_patch__2'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/{row_id}:
delete:
tags:
- Media
summary: Delete Media
operationId: delete_media_admin_media__row_id__delete
parameters:
- name: row_id
in: path
required: true
schema:
type: integer
title: Row Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/sort:
post:
tags:
- Media
summary: Sort Media
operationId: sort_media_admin_media_sort_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MediaSortIn'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/browse:
get:
tags:
- Media
summary: Browse Media
operationId: browse_media_admin_media_browse_get
parameters:
- name: property_id
in: query
required: false
schema:
anyOf:
- type: integer
minimum: 1
- type: 'null'
title: Property Id
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/project-banner-upload:
post:
tags:
- Media
summary: Project Banner Upload
operationId: project_banner_upload_admin_media_project_banner_upload_post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_project_banner_upload_admin_media_project_banner_upload_post'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/{row_id}/watermark:
post:
tags:
- Media
summary: Remove Watermark
description: 'Simple watermark removal: blur the bottom-right area of the image.'
operationId: remove_watermark_admin_media__row_id__watermark_post
parameters:
- name: row_id
in: path
required: true
schema:
type: integer
title: Row Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/project-banner/{project_id}:
delete:
tags:
- Media
summary: Delete Project Banner
operationId: delete_project_banner_admin_media_project_banner__project_id__delete
parameters:
- name: project_id
in: path
required: true
schema:
type: integer
title: Project Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/media/{path}:
patch:
tags:
- Media
summary: Media Catch All
operationId: media_catch_all_admin_media__path__patch
parameters:
- name: path
in: path
required: true
schema:
type: string
title: Path
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Media
summary: Media Catch All
operationId: deleteAdminMediaByPath
parameters:
- name: path
in: path
required: true
schema:
type: string
title: Path
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
x-operation-id-source: normalized
x-operation-id-original: media_catch_all_admin_media__path__patch
get:
tags:
- Media
summary: Media Catch All
operationId: getAdminMediaByPath
parameters:
- name: path
in: path
required: true
schema:
type: string
title: Path
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
x-operation-id-source: normalized
x-operation-id-original: media_catch_all_admin_media__path__patch
post:
tags:
- Media
summary: Media Catch All
operationId: postAdminMediaByPath
parameters:
- name: path
in: path
required: true
schema:
type: string
title: Path
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
x-operation-id-source: normalized
x-operation-id-original: media_catch_all_admin_media__path__patch
components:
schemas:
PublishIn:
properties:
is_published:
type: boolean
title: Is Published
type: object
required:
- is_published
title: PublishIn
MediaMetadataIn:
properties:
alt_text:
anyOf:
- type: string
- type: 'null'
title: Alt Text
caption:
anyOf:
- type: string
- type: 'null'
title: Caption
type: object
title: MediaMetadataIn
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
Body_project_banner_upload_admin_media_project_banner_upload_post:
properties:
project_id:
type: integer
title: Project Id
file:
type: string
format: binary
title: File
type: object
required:
- project_id
- file
title: Body_project_banner_upload_admin_media_project_banner_upload_post
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
MediaSortIn:
properties:
property_id:
type: integer
title: Property Id
post_type:
type: string
title: Post Type
default: property
items:
items:
$ref: '#/components/schemas/MediaSortItem'
type: array
title: Items
type: object
required:
- property_id
- items
title: MediaSortIn
MediaTransformIn:
properties:
crop_x:
type: number
title: Crop X
default: 0.0
crop_y:
type: number
title: Crop Y
default: 0.0
crop_width:
type: number
title: Crop Width
default: 1.0
crop_height:
type: number
title: Crop Height
default: 1.0
brightness:
type: number
title: Brightness
default: 1.0
contrast:
type: number
title: Contrast
default: 1.0
saturation:
type: number
title: Saturation
default: 1.0
rotation_degrees:
type: integer
title: Rotation Degrees
default: 0
paint_strokes:
items:
additionalProperties: true
type: object
type: array
title: Paint Strokes
default: []
shape_overlays:
items:
additionalProperties: true
type: object
type: array
title: Shape Overlays
default: []
blur_strokes:
items:
additionalProperties: true
type: object
type: array
title: Blur Strokes
default: []
type: object
title: MediaTransformIn
MediaSortItem:
properties:
row_id:
type: integer
title: Row Id
sort_order:
type: integer
title: Sort Order
type: object
required:
- row_id
- sort_order
title: MediaSortItem
fastapi___compat__Body_edit_media_admin_media__row_id__edit_patch__2:
properties:
file:
type: string
format: binary
title: File
alt_text:
anyOf:
- type: string
- type: 'null'
title: Alt Text
title:
anyOf:
- type: string
- type: 'null'
title: Title
caption:
anyOf:
- type: string
- type: 'null'
title: Caption
type: object
required:
- file
title: Body_edit_media_admin_media__row_id__edit_patch
Body_upload_media_admin_media_upload_post:
properties:
property_id:
anyOf:
- type: integer
- type: 'null'
title: Property Id
post_type:
anyOf:
- type: string
- type: 'null'
title: Post Type
skip_optimize:
anyOf:
- type: boolean
- type: 'null'
title: Skip Optimize
default: false
files:
items:
type: string
format: binary
type: array
title: Files
type: object
required:
- files
title: Body_upload_media_admin_media_upload_post