Get the account device policies
1 min
GET
https://api.fictive.com/REST/api/accounts/{accountReference}/device-policies
Path Parameters
- accountReferencestringrequired
Header Parameters
- X-TokenIdstringDescription
- X-SessionIdstringDescription
- X-VersionstringrequiredDescription
- OriginstringDescription
Responses
200
- FictiveGlobal.Api.Rest.Dtos.v1.Devices.DevicePolicyDTO[]
- devicePolicyReferencestring
- allowedDevicesinteger<int32>Description
- deviceChangesAllowedinteger<int32>Description
- deviceChangesUnitstring<none | hours | days | months | years>Description
- deviceChangesPeriodinteger<int32>Description
- allowedPlayoutSlotsinteger<int32>Description
- removeAllCustomPoliciesboolean
- deviceChangesConsumedinteger<int32>Description
- parentPolicyReferencestringDescription
- devicesFictiveGlobal.Api.Rest.Dtos.v1.Devices.DeviceDTO[]Description
- deviceReferencestring
- deviceNamestring
- deviceTypestring<none | mobile | tablet | console | tv | desktop>
- statusstring<Active | AwaitingDeletion>Description
- identifierstring
- registeredDatestring<date-time>Example
- lastUpdateDatestring<date-time>
- registeredSlotFictiveGlobal.Api.Rest.Dtos.v1.Devices.DeviceSlotDTO
- slotReferencestring
- lastUpdatedDatestring<date-time>
401
403
409
500
503
curl
curl --request GET \
--url https://api.fictive.com/REST/api/accounts/{accountReference}/device-policies \
--header 'accept: application/json' \
--header 'x-version: string'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-version", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.fictive.com/REST/api/accounts/{accountReference}/device-policies", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.fictive.com/REST/api/accounts/{accountReference}/device-policies")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-version"] = "string"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.fictive.com/REST/api/accounts/{accountReference}/device-policies"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-version': 'string'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
[
{
"devicePolicyReference": "0010SPG7K4O2A5UOOP",
"allowedDevices": 1,
"deviceChangesAllowed": 1,
"deviceChangesUnit": "days",
"deviceChangesPeriod": 1,
"allowedPlayoutSlots": 1,
"removeAllCustomPolicies": false,
"deviceChangesConsumed": 0,
"parentPolicyReference": "0010JP6UISY1ZR0OOP",
"devices": [
{
"deviceReference": "0010OFA69SIHZW8OOP",
"deviceName": "a device name",
"deviceType": "tv",
"status": 0,
"identifier": "an identifier",
"registeredDate": "2021-09-21T05:33:17.1197482Z",
"lastUpdateDate": "2021-09-21T05:33:17.1197482Z",
"registeredSlot": {
"slotReference": "0010B6G7K4O2A5UOOP",
"lastUpdatedDate": "2021-09-21T05:33:17.1197482Z"
}
}
]
}
]401
// API Authentication Failure: Invalid Authentication Type/Credentials Provided
403
// • Missing privilege.
• Disabled Device Management Feature.
409
// Unable to synchronise devices due to too many devices being returned from the external platform.
500
// • Unexpected error occured during Third Party Device Callout initialisation.
• Unable to synchronise devices with external system.
503
// • Unable to synchronise devices with external system - Timeout.
•Cannot construct Third Party Device Callout object. Reason: Affiliate is unknown.
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.