GraphQL referenceMutations
Attach Audio Asset
MUTATION
attachAudioAsset(input: AttachAudioAssetInput!): AudioAssetMutationOutput!Access: Requires the music_audio_assets:write permission. Requires one of: the music scheduling add-on, the cloud station add-on.
Arguments
input*Returns
- attachAudioAsset
asset?message?Stringsuccess*Boolean!track?Example Request
mutation AttachAudioAsset($input: AttachAudioAssetInput!) { attachAudioAsset(input: $input) { asset { bitrate channels contentHash createdAt cueInSeconds cueOutSeconds durationSeconds format } message success track { acoustId album art { createdAt id imageUrl key mimeType type updatedAt } artist artists { id joinPhrase name } bpm cartId comments composer copyright } }}{ "input": { "contentHash": "string", "storageRef": "string", "trackId": "1" }}{ "data": { "attachAudioAsset": { "asset": { "bitrate": 10, "channels": 10, "contentHash": "string", "createdAt": "<DateTime>", "cueInSeconds": 10.5, "cueOutSeconds": 10.5, "durationSeconds": 10.5, "format": "string" }, "message": "string", "success": true, "track": { "acoustId": "string", "album": "string", "art": { "createdAt": "<DateTime>", "id": "1", "imageUrl": "string", "key": "string", "mimeType": "string", "type": "ARTICLE_IMAGE", "updatedAt": "<DateTime>" }, "artist": "string", "artists": [ { "id": "string", "joinPhrase": "string", "name": "string" } ], "bpm": 10.5, "cartId": "string", "comments": "string", "composer": "string", "copyright": "string" } } }}