1010: Determine track connection
Determines if an account is connected to a track
Endpoint ID: | 1010 | |||||||
Method: | GET | |||||||
URL: | /entity/id/{entity-id}/tracks/{track-id} /entity/ext-key/{ext-key}/{ext-type}/tracks/{track-id} | |||||||
entity-id | Rubiq entity ID that uniquely identifies an account to determine connection for | |||||||
ext-key | External key that uniquely identifies an account to determine connection for | |||||||
ext-type | Type of external key | |||||||
track-id | ID of the track for which it is to be examined whether it is connected to the specified account or not | |||||||
Request body: | None | |||||||
Response body: | JSON data with information about connection between track and account if it is present. Please note that an earlier connection between an account and a track (state is disconnected) is reported as false (= no connection exists) Example 1 – Account is connected to track specified by track-id: { "trackID": 397, "name": "Name of track", "connection": true } Example 2 – Account is not connected to track specified by track-id: { "trackID": 397, "name": "Name of track", "connection": false } | |||||||
Status codes: | 200 | Account and track both found with success | ||||||
404 | Account or track was not found The following sub codes may be returned:
|