ChainPromotion List [GET]

Operation

Information of the operation

GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/promotion


Request


PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter0Unique identificator of the chain.
offsetIntegerfalserequest parameter0Offset of the array of results.
limitIntegerfalserequest parameter10Limit of results.
sortstringfalserequest parameteridProperty of the entity to sort by.
sortModestringfalserequest parameterascMode of sorting.

Example request

GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/promotion


Response

PropertyTypeRequiredDescription
PagePagetrueDescription of the response of the success operation

Entity



FieldTypeRequiredDescription
idinttrueId of the ChainChannel
codestringtrueCode of the ChainChannel
namestringtrueName of the ChainChannel
orderinttrueOrder of the ChainChannel

Example response

{
  "count": 5,
  "offset": 0,
  "limit": 3,
  "list": [
		   {
             "id": 2,
             "code": "SS",
             "name": "Short Stay",
             "order": 1
           },
           {
             "id": 3,
             "code": "HOLY",
             "name": "Holydays Short Stay",
             "order": 2
           },
           {
             "id": 4,
             "code": "BUSY",
             "name": "Business Short Stay",
             "order": 3
           }
  		  ]
}