Docs
GraphQL referenceMutations

Attach Audio Asset

MUTATIONattachAudioAsset(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

  1. attachAudioAsset
asset?
message?String
success*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    }  }}
Variables
{  "input": {    "contentHash": "string",    "storageRef": "string",    "trackId": "1"  }}
Example Response
{  "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"      }    }  }}