الانتقال إلى المحتوى الرئيسي
POST
Import and retrieve ACE Music reference assets

التفويضات

Authorization
string
header
مطلوب

الجسم

application/json

A page offset cannot exceed 10000 entries. Import sources must fit within 32 MiB.

action
enum<string>
مطلوب

Import a source or read owned asset metadata.

الخيارات المتاحة:
upload
type
enum<string>
مطلوب

Reference type. Imports accept standard MIDI, PNG/JPEG/WebP images, or MP4 video up to 60 seconds. Each type is enabled independently.

الخيارات المتاحة:
midi,
image,
video
url
string<uri>
مطلوب

A publicly downloadable HTTPS source URL. Local files can first be uploaded to the platform file service.

Required string length: 1 - 20000
Pattern: ^https://
name
string

Optional asset display name.

Required string length: 1 - 20000
async
boolean
افتراضي:true

Return a persistent task ID; query /acemusic/tasks for the result.

callback_url
string<uri>

Optional HTTPS callback for the final result. Implies asynchronous execution.

Required string length: 1 - 20000
id
string<uuid>

The platform asset ID from a successful import owned by this caller.

page
integer
افتراضي:1
النطاق المطلوب: 1 <= x <= 10001
page_size
integer
افتراضي:20
النطاق المطلوب: 1 <= x <= 100

الاستجابة

Synchronous upload delivery, an owned asset, or a paginated list of owned assets.

success
boolean
مطلوب
task_id
string
مطلوب
status
enum<string>
مطلوب
الخيارات المتاحة:
succeeded,
failed
data
object
مطلوب
trace_id
string