FORMAT: 1A

# Group Vectorapi
Group of all vectorapi-related resources.

## Web Video Track

New type of release having product type as 'web video' and saving track and track video data. 

## Index [/vectorapi/webvideotrack/index{?limit,access_token,releaseId}]

### Index [GET]

+ Parameters

    + limit (optional,number, `5`)
    + access_token (optional,varchar, `some token`)
    + releaseId (required,number, `457462`)


+ Request JSON Message
    
    + Headers

            Accept: application/json

+ Response 200 (application/json)

    + Body
{
  "envelope": {
    "header": {
      "apiVersion": "1.0",
      "baseUrl": "testing.vapi.devorch.com",
      "httpStatusCode": 200
    },
    "request": "webvideotrack/index?params=vectorapi&webvideotrack&index&json&5&<some_token>&457462",
    "response": {
      "webVideoTrack": [
        {
          "releaseId": 457462,
          "upc": "887396397569",
          "releaseName": "The White House London YouTube Exclusives",
          "label": "Grin Recordings Ltd",
          "description": "",
          "releaseDate": "2012-08-27",
          "listprice": null,
          "sellprice": null,
          "display": "Y",
          "deletions": "N",
          "distribution": "digital",
          "applfees": null,
          "referralId": "",
          "dateAddedRemove": null,
          "format": "CD (Full Length)",
          "origReleaseYear": 0,
          "promocode": "",
          "cLine": "2012 Grin Recordings Ltd",
          "manufacturerUpc": "",
          "albumDownload": "Y",
          "downloadPrice": null,
          "priority": 3,
          "territory": null,
          "saleStartDate": "2012-08-27",
          "originalReleaseDate": null,
          "vendorCatalogNumber": "",
          "languageId": "ENG",
          "subtitleLanguageId": null,
          "promoboxNo": "",
          "additionalId": null,
          "dracatalog": null,
          "channelId": 0,
          "trackdownBlackList": "N",
          "notForDistribution": "AccountingDummy",
          "europePublicDomain": "N",
          "karaoke": "N",
          "unknownArtist": "N",
          "newRelease": "",
          "productFormat": "",
          "promosNumber": 0,
          "promoUpc": "0",
          "syncOnly": "N",
          "countryOfOrigin": 0,
          "shortSynopsis": "",
          "keywords": null,
          "productionCo": "",
          "preorderDate": null,
          "amdId": null,
          "wholesalePriceTier": null,
          "season": null,
          "episode": null,
          "productionNumber": null,
          "network": null,
          "genreNote": "Other",
          "vodStartDate": null,
          "physicalReleaseDate": null,
          "theatricalReleaseDate": null,
          "originalDigitalReleaseDate": null,
          "est": null,
          "vod": null,
          "rsdComment": null,
          "intMktManager": null,
          "tmsId": null,
          "brand": "",
          "digitalOnly": "N",
          "version": "",
          "ingestionCompleted": "2012-08-27 13:57:40",
          "releaseStatus": "in_content",
          "displayUpc": "887396397569",
          "lastUpdated": "2013-10-15 16:18:35",
          "metaLanguage": "ENG",
          "itunesPreviewable": "yes",
          "vendorReleaseIdentifier": "",
          "Track": [
            {
              "id": 5716969,
              "trackName": "Only Joe Live Dub Band- The Future Sound ... Of Music",
              "upc": "887396397569",
              "cd": 1,
              "trackId": 1,
              "orchdmclip": null,
              "sample": "N",
              "dmclips": null,
              "isrc": "USA561294707",
              "lengthMinute": 1,
              "lengthSeconds": 0,
              "writer": null,
              "credit": "",
              "mechanical": "",
              "publisher": null,
              "publishCompany": "",
              "dpdLicense": "no",
              "explicitLyrics": "N",
              "version": "",
              "purchasable": "Y",
              "downloadPrice": 0,
              "pLine": "2012 Grin Recordings Ltd",
              "hidden": "N",
              "offerType": "all",
              "digDistributionType": "digital_mobile",
              "thirdPartyPublisher": "Y",
              "royaltyCollection": "Y",
              "publishingAdmin": "N",
              "syncAdmin": "Y",
              "additionalId": null,
              "trackType": "video",
              "mp3Url": "",
              "stereoOrMono": "stereo",
              "bonus": "N",
              "recommended": "N",
              "youtubeMatches": "Monetize",
              "youtubeUploads": "Fingerprint Only",
              "preorderOnly": "N",
              "originalFileName": null,
              "lastUpdated": "2012-08-27 14:01:21",
              "metaLanguage": "ENG",
              "previewStartTime": 0,
              "closedCaptionExists": null,
              "vendorTrackIdentifier": null,
              "TrackVideo": {
                "seasonNoRemove": null,
                "episodeNoRemove": null,
                "releaseDate": null,
                "languageRemove": "ENG",
                "color": "color",
                "keywords": null,
                "synopsisRemove": null,
                "productionCoRemove": null,
                "copyright": null,
                "aspectRatio": "16:9",
                "masterQuality": "hifi",
                "downloadPricing": null,
                "rentalPricing": null,
                "streamingPricing": null,
                "resolution": "SD",
                "fps": "30",
                "mastered": "n",
                "channel": null,
                "youtubeUploads": null,
                "subtitlesBurned": null,
                "youtubeChannelVideoCategory": null
              }
            }
          ],
          "ProductType": {
            "id": 5,
            "productType": "Web Videos"
          }
        }
      ]
    }
  }
}



+ **Required Parameters**

    + releaseId

## GET [/vectorapi/webvideotrack/get{?limit,access_token,id}]

### GET [GET]

+ Parameters

    + limit (optional,number, `5`)
    + access_token (optional,varchar, `some token`)
    + id (required,number, `5248694`)


+ Request JSON Message
    
    + Headers

            Accept: application/json

+ Response 200 (application/json)

    + Body
{
  "envelope": {
    "header": {
      "apiVersion": "1.0",
      "baseUrl": "testing.vapi.devorch.com",
      "httpStatusCode": 200
    },
    "request": "webvideotrack/get?params=vectorapi&webvideotrack&get&json&5&<some_token>&5248694",
    "response": {
      "webVideoTrack": {
        "releaseId": "415789",
        "productType": "Web Videos",
        "Track": {
          "id": 5248694,
          "trackName": "MARIA ANTONIETTA - Quanto eri bello",
          "upc": "886788980693",
          "cd": 1,
          "trackId": 1,
          "orchdmclip": null,
          "sample": "N",
          "dmclips": null,
          "isrc": "USA561147755",
          "lengthMinute": 1,
          "lengthSeconds": 0,
          "writer": null,
          "credit": "orig_comp",
          "mechanical": "no",
          "publisher": null,
          "publishCompany": null,
          "dpdLicense": "no",
          "explicitLyrics": "N",
          "version": null,
          "purchasable": "Y",
          "downloadPrice": null,
          "pLine": "2012 Maria Antonietta",
          "hidden": null,
          "offerType": "all",
          "digDistributionType": "digital_mobile",
          "thirdPartyPublisher": "Y",
          "royaltyCollection": "Y",
          "publishingAdmin": "N",
          "syncAdmin": "Y",
          "additionalId": null,
          "trackType": "video",
          "mp3Url": null,
          "stereoOrMono": "stereo",
          "bonus": "N",
          "recommended": "N",
          "youtubeMatches": "Monetize",
          "youtubeUploads": "Fingerprint Only",
          "preorderOnly": "N",
          "originalFileName": null,
          "lastUpdated": "2012-05-14 11:30:45",
          "metaLanguage": null,
          "previewStartTime": null,
          "closedCaptionExists": null,
          "vendorTrackIdentifier": null,
          "TrackVideo": {
            "seasonNoRemove": null,
            "episodeNoRemove": null,
            "releaseDate": null,
            "languageRemove": "ENG",
            "color": "color",
            "keywords": "",
            "synopsisRemove": null,
            "productionCoRemove": null,
            "copyright": null,
            "aspectRatio": "16:9",
            "masterQuality": "hifi",
            "downloadPricing": null,
            "rentalPricing": null,
            "streamingPricing": null,
            "resolution": "SD",
            "fps": "30",
            "mastered": "n",
            "channel": "",
            "youtubeUploads": null,
            "subtitlesBurned": null
          }
        }
      }
    }
  }
}



+ **Required Parameters**

    + id (Primary key of track table)


## POST [/vectorapi/webvideotrack/post{?data,access_token}]

### Post [POST]

+ Parameters

    + data (required,varchar, `{"track":{"trackName":"New Test Web Video Track","lengthMinute":5,"lengthSeconds":30,"pLine":"2013 Record Label"},"trackVideo":{"copyright":"1994 xyz","resolution":"SD","channel":"screenartsanimation","subtitlesBurned":null,"youtubeUploads":"Public"},"channelId":379}`)
    + access_token (optional,varchar, `some token`)


+ Request JSON Message
    
    + Headers

            Accept: application/json

+ Response 200 (application/json)

    + Body
{
  "envelope": {
    "header": {
      "apiVersion": "1.0",
      "baseUrl": "testing.vapi.devorch.com",
      "httpStatusCode": 200
    },
    "request": "webvideotrack/post?params=vectorapi&webvideotrack&post&json&{\"track\":{\"trackName\":\"New Test Web Video Track\",\"lengthMinute\":5,\"lengthSeconds\":30,\"pLine\":\"2013 Record Label\"},\"trackVideo\":{\"copyright\":\"1994 xyz\",\"resolution\":\"SD\",\"channel\":\"screenartsanimation\",\"subtitlesBurned\":null,\"youtubeUploads\":\"Public\"},\"channelId\":379}&<some_token>",
    "response": {
      "webVideoTrack": {
        "releaseId": 578098,
        "upc": "887845592989",
        "trackId": 16735622,
        "isrc": "QMFMG1413096",
        "trackVideoId": 16735622,
        "artistId": 200241,
        "artistName": "Various Artists",
        "vendorId": 16435,
        "releaseTerritoryRestriction": []
      }
    }
  }
}


+ **Required Parameters**
     + channelId
     + trackName

+ **Optional Parameters**
      (For Track Table)
     + lengthMinute
     + lengthSeconds
     + pLine
     + trackType = video
     + cd ( =1 )
     + sample ( default 'N')
     + bonus ( default 'N')
     + youtubeMatches ( default 'Monetize')
     + youtubeUploads
     + autoClaim

     (For track_video table)
     + resolution
     + channel
     + subtitlesBurned
     + youtubeUploads
     + youtubeChannelVideoCategoryId
     + copyright


## PUT [/vectorapi/webvideotrack/put{?data,access_token,id}]

### PUT [POST]

+ Parameters

    + data (required,varchar, `{"track":{"trackName":"New Test Web Video Track","lengthMinute":5,"lengthSeconds":30,"pLine":"2013 Record Label"},"trackVideo":{"copyright":"1994 xyz","resolution":"SD","channel":"screenartsanimation","subtitlesBurned":null,"youtubeUploads":"Public"},"channelId":379}`)
    + access_token (optional,varchar, `some token`)
    + id (required,number,`16735624`)


+ Request JSON Message
    
    + Headers

            Accept: application/json

+ Response 200 (application/json)

    + Body
{
  "envelope": {
    "header": {
      "apiVersion": "1.0",
      "baseUrl": "testing.vapi.devorch.com",
      "httpStatusCode": 200
    },
    "request": "webvideotrack/put?params=vectorapi&webvideotrack&put&json&{\"track\":{\"trackName\":\"New Test Web Video Track\",\"lengthMinute\":5,\"lengthSeconds\":30,\"pLine\":\"2013 Record Label\"},\"trackVideo\":{\"copyright\":\"1994 xyz\",\"resolution\":\"SD\",\"channel\":\"screenartsanimation\",\"subtitlesBurned\":null,\"youtubeUploads\":\"Public\"},\"channelId\":379}&<some_token>&16735624",
    "response": {
      "webVideoTrack": {
        "releaseId": 578098,
        "upc": "887845592989",
        "trackId": 16735624,
        "isrc": "QMFMG1413099",
        "trackVideoId": 16735624,
        "artistId": 200241,
        "artistName": "Various Artists",
        "vendorId": 16435,
        "releaseTerritoryRestriction": []
      }
    }
  }
}



+ **Required Parameters**
     + id // primary key of track table.
     + channelId // primary key of youtube_channel table.

+ **Optional Parameters**
      (For Track Table)
     + lengthMinute
     + lengthSeconds
     + pLine
     + trackType = video
     + cd ( =1 )
     + sample ( default 'N')
     + bonus ( default 'N')
     + youtubeMatches ( default 'Monetize')
     + youtubeUploads
     + trackName

     (For track_video table)
     + resolution
     + channel
     + subtitlesBurned
     + youtubeUploads
     + youtubeChannelVideoCategoryId
     + copyright
