Description

This endpoint must be used for getting all the profiles available to the user

This endpoint must be consumed in GET request


Request


As part of the request headers a Basic Auth must be sended:

Postman Auth Bearer Example

This must be sended in the Http headers of the request, look at the next cURL example for a better understanding

Copy codecurl --location 'host:port/zynchro.api.system-config/v1/profiles?transaction_id=123456&client_id=38' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTg3NTA5MTQsInVzZXJfbmFtZSI6ImFsZWphbmRyby56YW5hYnJpYUBkaWdpd29ya3MuY29tLm14IiwiYXV0aG9yaXRpZXMiOlsiNTFfRnVsbCBBY2Nlc3MiLCIyMV9GdWxsIEFjY2VzcyIsIjUzX0Z1bGwgQWNjZXNzIiwiMzBfRnVsbCBBY2Nlc3MiLCIzMl9GdWxsIEFjY2VzcyIsIjQxX0Z1bGwgQWNjZXNzIiwiNDNfRnVsbCBBY2Nlc3MiLCIzMV9GdWxsIEFjY2VzcyIsIjI5X0Z1bGwgQWNjZXNzIiwiNDlfRnVsbCBBY2Nlc3MiLCIzOF9GdWxsIEFjY2VzcyIsIjI4X0Z1bGwgQWNjZXNzIiwiMzlfRnVsbCBBY2Nlc3MiLCI0NV9GdWxsIEFjY2VzcyIsIjQ3X0Z1bGwgQWNjZXNzIiwiMzRfRnVsbCBBY2Nlc3MiLCIzNl9GdWxsIEFjY2VzcyIsIjIzX0Z1bGwgQWNjZXNzIiwiMjdfRnVsbCBBY2Nlc3MiLCI1NV9GdWxsIEFjY2VzcyIsIjI0X0Z1bGwgQWNjZXNzIFdpdGggUHJpY2luZyIsIjIyX0Z1bGwgQWNjZXNzIiwiMjZfRnVsbCBBY2Nlc3MiLCIzM19GdWxsIEFjY2VzcyIsIjM1X0Z1bGwgQWNjZXNzIl0sImp0aSI6ImVlTkJFRDJHLU5QS0tsTWdGMFRlVDdpUWU3QSIsImNsaWVudF9pZCI6Inp5bmNocm8iLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXX0.vYMXO18lzsBhkVejcjwerhi0ZN_46RJp5F0Td2BQYcw'


In java it would be something like this (depending on the dependency you use)

Copy codeOkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
  .url("host:port/zynchro.api.system-config/v1/profiles?transaction_id=123456&client_id=38")
  .method("GET", body)
  .addHeader("Authorization", "Bearer ••••••")
  .build();
Response response = client.newCall(request).execute();



Next are listed the params required in the request


Field
SubField
Type
Description
IsRequired
transaction_id

text

A custom value to identify the data related to the request in the response (you can see the transactionId in the response header).


Example:

  • REQ000001

Note: This field is not related with the data to be retrieved, must be used by the client app in order to identify the request/response (if that is useful), the same value can be sended in multiple request (it’s not validated that the same value was sended before)


N
client_id 

int

The id of the client associated to the request,


Example:

  • 38
Y


Consuming Service


Example Request

Consuming service 

(GET) URL:HOST:PORT/zynchro.api.system-config/v1/profiles?transaction_id=123456&client_id=38

Request Params:

  • transaction_id=123456
  • client_id=38


Response


Response 200 OK

If the params present in the request are valid, then you will receive a response 200 "ok" message code look at the next example:

Copy code{
    "header": {
        "resultCode": "ok",
        "messageCode": "ok",
        "messageDescription": "request ok",
        "transactionId": "123456"
    },
    "data": [
        {
            "id": 1,
            "name": "Full Access",
            "isDashboard": true,
            "isMap": true,
            "isList": 2,
            "isSnapshotMosaic": true,
            "isPlayerHealth": true,
            "isOperationalHealth": true,
            "isLocationCompliance": true,
            "isBandWidth": true,
            "isVDAMonitoring": true,
            "isVDAHealth": true,
            "isDashboardAnalytics": true,
            "isPlaybacks": true,
            "isEvents": true,
            "isPageViews": true,
            "isSessions": true,
            "isDownloadFTP": true,
            "isManageLocations": true,
            "isUpdateLocation": true,
            "isGroupsLocation": true,
            "isPlayersLocation": true,
            "isSmartGroups": true,
            "isTags": true,
            "isMediaLibrary": true,
            "isFilesLibrary": true,
            "isMediaFeed": true,
            "isPresentations": true,
            "isAuthorizeContent": true,
            "isPublishLocation": true,
            "isPublishLocationGroup": true,
            "isPublishSmartGroups": true,
            "isPublishUpdatePresentation": true,
            "isPublishUpdatePlaylist": true,
            "isPublishFirmware": true,
            "isPublishLog": true,
            "isWall": true,
            "isContentLog": true,
            "cmCampaigns": 2,
            "cmCanApprove": true,
            "cmRundown": true,
            "cmDayparting": true,
            "cmBanners": true,
            "cmProManufacturer": true,
            "cmProBrands": true,
            "cmProCategories": true,
            "cmProRevenueClass": true,
            "cmProFillers": true,
            "cmProInserts": true,
            "cmProPresentations": true,
            "cmProSettings": true,
            "cmProReports": true,
            "cmProInventory": true,
            "cmInventory": 3,
            "cmProDisclaimer": true,
            "cmReports": 1,
            "isTVControl": true,
            "isDownloadControl": true,
            "isRemoteSetup": true,
            "isBDeploy": true,
            "isPlayerSetup": true,
            "isSmartActions": true,
            "isStocks": true,
            "isLicenses": true,
            "isUsers": true,
            "isSetupUser": true,
            "isPlayListStandard": true,
            "isDayparting": true,
            "isAdminClients": true,
            "clients": null
        },
        {
            "id": 2,
            "name": "No Access",
            "isDashboard": false,
            "isMap": false,
            "isList": 0,
            "isSnapshotMosaic": false,
            "isPlayerHealth": false,
            "isOperationalHealth": false,
            "isLocationCompliance": false,
            "isBandWidth": false,
            "isVDAMonitoring": false,
            "isVDAHealth": false,
            "isDashboardAnalytics": false,
            "isPlaybacks": false,
            "isEvents": false,
            "isPageViews": false,
            "isSessions": false,
            "isDownloadFTP": false,
            "isManageLocations": false,
            "isUpdateLocation": false,
            "isGroupsLocation": false,
            "isPlayersLocation": false,
            "isSmartGroups": false,
            "isTags": false,
            "isMediaLibrary": false,
            "isFilesLibrary": false,
            "isMediaFeed": false,
            "isPresentations": false,
            "isAuthorizeContent": false,
            "isPublishLocation": false,
            "isPublishLocationGroup": false,
            "isPublishSmartGroups": false,
            "isPublishUpdatePresentation": false,
            "isPublishUpdatePlaylist": false,
            "isPublishFirmware": false,
            "isPublishLog": false,
            "isWall": false,
            "isContentLog": false,
            "cmCampaigns": 0,
            "cmCanApprove": false,
            "cmRundown": false,
            "cmDayparting": false,
            "cmBanners": false,
            "cmProManufacturer": false,
            "cmProBrands": false,
            "cmProCategories": false,
            "cmProRevenueClass": false,
            "cmProFillers": false,
            "cmProInserts": false,
            "cmProPresentations": false,
            "cmProSettings": false,
            "cmProReports": false,
            "cmProInventory": false,
            "cmInventory": 0,
            "cmProDisclaimer": false,
            "cmReports": 0,
            "isTVControl": false,
            "isDownloadControl": false,
            "isRemoteSetup": false,
            "isBDeploy": false,
            "isPlayerSetup": false,
            "isSmartActions": false,
            "isStocks": false,
            "isLicenses": false,
            "isUsers": false,
            "isSetupUser": false,
            "isPlayListStandard": false,
            "isDayparting": false,
            "isAdminClients": false,
            "clients": null
        },
    ]
}


Description of the response data

Field
SubField
Type
Description

header

 

Object

Specific data related to the response

 

resultCode

text

The result code of the response, can be:

·         error -> if errors were found

·         ok -> if NO errors were found

 

messageCode

text

The message code related to the result code of the response, can be:

Example:

 

 

messageDescription

text

The description of the message code

Example:

·         request ok

·         Please check your params fields

 

transactionId

text

The transactionId specified in the request, if no transactionId was sended in the request then the transacionId in the response will be null

errors

 

Array

 This field is present if there are errors in the request

 

fieldName

text

The field with errors

 

fieldDesc

text

 The description of the error

Data

 

Array

The specific response data related to the request


id

int

The identifier of the profile

Example: 1


name

text

The name of the profile


isDashboard

boolean

Used to access data in:

  • Monitoring menu, 
    • Dashboard submenu


isMap

boolean

Used to access data in: 

  • Monitoring menu, 
    • By Map submenu


isList

int

Used to access data in: 

  • Monitoring menu, 
    • By List submenu
    • By Filters submenu
    • Download Manager submenu

These are the possible values this field can retrieve:

  • 0 -> the module cannot be accessed 
  • 1 -> allows access to the module, the user can't modify the content 
  • 2 -> Allows access to the module, the user can modify the content


isSnapshotMosaic

boolean

Used to access data in:

  • Monitoring menu, 
    • Snapshot Mosaic submenu


isPlayerHealth

boolean

Used to access data in:

  • Monitoring menu, 
    • Player Health submenu


isOperationalHealth

boolean

Used to access data in:

  • Monitoring menu, 
    • Operational Health submenu


isLocationCompliance

boolean

Used to access data in:

  • Monitoring menu, 
    • Location Compliance submenu


isBandWidth

boolean

Used to access data in:

  • Monitoring menu, 
    • Bandwidth submenu


isVDAMonitoring

boolean

Used to access data in:

  • VDA menu, 
    • Monitoring submenu


isVDAHealth

boolean

Used to access data in:

  • VDA menu, 
    • Health submenu


isDashboardAnalytics

boolean

Used to access data in:

  • Analytics menu 
    • Dashboard submenu


isPlaybacks

boolean

Used to access data in:

  • Analytics menu 
    • Playbacks submenu


isEvents

boolean

Used to access data in:

  • Analytics menu 
    • Events submenu


isPageViews

boolean

Used to access data in:

  • Analytics menu 
    • PageViews submenu


isSessions

boolean

Used to access data in: 

  • Analytics menu 
    • Sessions submenu


isDownloadFTP

boolean

Used to access data in: 

  • Analytics menu 
    • FTP submenu


isManageLocations

boolean

Used to access data in:

  • Locations menu 
    • List submenu


isUpdateLocation

boolean

Used to access data in: 

  • Locations menu 
    • Uploadsubmenu


isGroupsLocation

boolean

Used to access data in: 

  • Locations menu 
    • Player Set submenu


isPlayersLocation

boolean

Used to access data in:

  • Groups menu 
    • By Location submenu


isSmartGroups

boolean

Used to access data in:

  • Groups menu 
    • Smart Groups submenu


isTags

boolean

Used to access data in:

  • Content menu 
    • Tags submenu


isMediaLibrary

boolean

Used to access data in:

  • Content menu 
    • Media Library submenu


isFilesLibrary

boolean

Used to access data in:

  • Content menu 
    • Files Library submenu


isMediaFeed

boolean

Used to access data in:

  • Content menu 
    • Media Feed submenu


isPresentations

boolean

Used to access data in:

  • Content menu 
    • Presentations submenu


isAuthorizeContent

boolean

Used to access data in:

  • Content menu 
    • Authorize Content submenu


isPublishLocation

boolean

Used to access data in:

  • Content menu 
    • Publish submenu
      • Location Tab


isPublishLocationGroup

boolean

Used to access data in:

  • Content menu 
    • Publish submenu
      • Location Group Tab


isPublishSmartGroups

boolean

Used to access data in:

  • Content menu 
    • Publish submenu
      • Smart Group Tab


isPublishUpdatePresentation

boolean

Used to access data in:

  • Content menu 
    • Publish submenu
      • Update Presentation Tab


isPublishUpdatePlaylist

boolean

Used to access data in: 

  • Content menu 
    • Publish submenu
      • Update Publish Tab


isPublishFirmware

boolean

Used to access data in:

  • Content menu 
    • Publish submenu
      • Firmware Tab


isPublishLog

boolean

Used to access data in:

  • Content menu 
    • Programming Log submenu


isWall

boolean

Used to access data in: 

  • Content menu 
    • Wall submenu


isContentLog

boolean

Used to access data in:

  • Content menu 
    • Activity Log submenu


cmCampaigns

int

Used to access data in:

  • Campaign Manager menu 
    • Campaign submenu


cmCanApprove

boolean

It is used to change a status campaign to approved


cmRundown

boolean

Used to access data in:

  • Campaign Manager menu 
    • Rundown submenu


cmDayparting

boolean

Used to access data in:

  • Campaign Manager menu 
    • Takeover submenu


cmBanners

boolean

Used to access data in:

  • Campaign Manager menu 
    • Banners submenu


cmProManufacturer

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Manufacturer tab


cmProBrands

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Brands tab


cmProCategories

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Categories tab


cmProRevenueClass

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Revenue tab


cmProFillers

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Fillers tab


cmProInserts

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Asset Inserts tab


cmProPresentations

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Presentations tab


cmProSettings

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Settings tab


cmProReports

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Reports tab


cmProInventory

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Inventory tab


cmInventory

int

Used to access data in:

  • Campaign Manager menu 
    • Inventory submenu


cmProDisclaimer

boolean

Used to access data in:

  • Campaign Manager menu 
    • Properties submenu
      • Disclaimer tab


cmReports

int

Used to access data in:

  • Campaign Manager menu 
    • Reports submenu


isTVControl

boolean

Used to access data in: 

  • Player Config menu 
    • TV Control submenu


isDownloadControl

boolean

Used to access data in:

  • Player Config menu 
    • Download Control submenu


isRemoteSetup

boolean

Used to access data in: 

  • Player Config menu 
    • Remote Setup submenu


isBDeploy

boolean

Used to access data in:

  • Player Config menu 
    • B-Deploy submenu


isPlayerSetup

boolean

Used to access data in:

  • Player Config menu 
    • Player Setup submenu


isSmartActions

boolean

Used to access data in:

  • Player Config menu 
    • Smart Actions submenu


isStocks

boolean

Used to access data in:

  • Player Config menu 
    • Stock Market submenu


isLicenses

boolean

Used to access data in:

  • System Config menu 
    • Licenses submenu


isUsers

boolean

Used to access data in:

  • System Config menu 
    • Profiles/Users submenu


isSetupUser

boolean

Used to access data in:

  • System Config menu 
    • Settings submenu


isPlayListStandard

boolean

Used to access data in:

  • Content menu 
    • Playlist submenu


isDayparting

boolean

Used to access data in:

  • Content menu 
    • dayparting submenu


isAdminClients

boolean

Used to access data in:

  • System Config menu 
    • Clients submenu



Response 400

If there are errors with the request, then you will receive a 400 message response BAD_REQUEST with the errors field present, like the following example:

Copy code{
    "header": {
        "resultCode": "error",
        "messageCode": "BAD_REQUEST",
        "messageDescription": "Please check your params fields",
        "transactionId": "12233445666"
    },
    "errors": [
        {
            "fieldName": "client_id",
            "fieldDesc": "Field is required, and must be of type int "
        }
    ]
}



Response 401

If you dont send any token, then you will receive a error message of "unauthorized", look at the next example:

Copy code{
    "error": "unauthorized",
    "error_description": "Full authentication is required to access this resource"
}



If you send a Token, but the Token you are sending is expired, then you will receive a response message with an "invalid_token" error, look at the next example:


Copy code{
    "error": "invalid_token",
    "error_description": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDM2MTk5NzMsInVzZXJfbmFtZSI6ImFsZWphbmRyby56YW5hYnJpYUBkaWdpd29ya3MuY29tLm14IiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9TWVNURU1BRE1JTiJdLCJqdGkiOiJHTGtQb3hQbVRTZUs2RFhmc1NfNkUxRkMxZmsiLCJjbGllbnRfaWQiOiJ6eW5jaHJvIiwic2NvcGUiOlsicmVhZCIsIndyaXRlIl19.yAFbdU18wMtQXSGUY3_noQn4BQv0RqYjDbw0sr1x6Yk"
}


This is the data retrieved when the 401 Unauthorized is retrieved:

Field
SubField
Type
Description

error

 

text

The type of the error, can be:

  • unauthorized
  • invalid_token


error_description


text

The description of the error, for the "invalid_token", this field retrieves the bearer token you're sending


Postman collection

File: