POST api/playlists

Add a playlist

Request Information

URI Parameters

None.

Body Parameters

Playlist
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

Required

String length: inclusive between 0 and 64

StartDate

date

Data type: Date

StartTime

integer

None.

EndDate

date

Data type: Date

EndTime

integer

None.

Recurrence

integer

None.

RecurrenceType

CampaignScheduleType

None.

MonthType

CampaignMonthlyType

None.

WeekDays

CampaignDayOfWeek

None.

Months

CampaignMonth

None.

MonthWeeks

CampaignWeekOfMonth

None.

MonthDays

string

String length: inclusive between 0 and 32

Active

boolean

None.

Deleted

boolean

None.

LastUpdated

date

Data type: Date

UpdatedByUser

string

String length: inclusive between 0 and 255

CreatedByUser

string

String length: inclusive between 0 and 255

Priority

integer

None.

PlaylistDetails

Collection of PlaylistDetail

None.

PlaylistGroups

Collection of PlaylistGroup

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "startDate": "2026-04-03T06:24:58.9857589",
  "startTime": 1,
  "endDate": "2026-04-03T06:24:58.9857589",
  "endTime": 1,
  "recurrence": 1,
  "recurrenceType": 1,
  "monthType": 1,
  "weekDays": 1,
  "months": 1,
  "monthWeeks": 1,
  "monthDays": "sample string 3",
  "active": true,
  "deleted": true,
  "lastUpdated": "2026-04-03T06:24:58.9857589",
  "updatedByUser": "sample string 4",
  "createdByUser": "sample string 5",
  "priority": 6,
  "playlistDetails": [
    {
      "$id": "2",
      "id": 1,
      "sortOrder": 2,
      "playlistID": 3,
      "advertID": 4,
      "duration": 5,
      "deleted": true,
      "advert": {
        "$id": "3",
        "id": 1,
        "fileName": "sample string 2",
        "extension": "sample string 3",
        "fileSize": 4,
        "isVideo": true,
        "deleted": true,
        "created": "2026-04-03T06:24:58.9857589",
        "updated": "2026-04-03T06:24:58.9857589",
        "imageData": "QEA=",
        "length": 7
      }
    },
    {
      "$ref": "2"
    }
  ],
  "playlistGroups": [
    {
      "$id": "4",
      "id": 1,
      "playlistID": 2,
      "storeID": 3,
      "zoneID": 4
    },
    {
      "$ref": "4"
    }
  ]
}

application/xml, text/xml

Sample:
<Playlist xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Adverts">
  <Active>true</Active>
  <CreatedByUser>sample string 5</CreatedByUser>
  <Deleted>true</Deleted>
  <EndDate>2026-04-03T06:24:58.9857589+00:00</EndDate>
  <EndTime>1</EndTime>
  <ID>1</ID>
  <LastUpdated>2026-04-03T06:24:58.9857589+00:00</LastUpdated>
  <MonthDays>sample string 3</MonthDays>
  <MonthType>1</MonthType>
  <MonthWeeks>1</MonthWeeks>
  <Months>1</Months>
  <Name>sample string 2</Name>
  <PlaylistDetails>
    <PlaylistDetail>
      <Advert>
        <Created>2026-04-03T06:24:58.9857589+00:00</Created>
        <Deleted>true</Deleted>
        <Extension>sample string 3</Extension>
        <FileName>sample string 2</FileName>
        <FileSize>4</FileSize>
        <ID>1</ID>
        <ImageData>QEA=</ImageData>
        <IsVideo>true</IsVideo>
        <Length>7</Length>
        <Updated>2026-04-03T06:24:58.9857589+00:00</Updated>
      </Advert>
      <AdvertID>4</AdvertID>
      <Deleted>true</Deleted>
      <Duration>5</Duration>
      <ID>1</ID>
      <PlaylistID>3</PlaylistID>
      <SortOrder>2</SortOrder>
    </PlaylistDetail>
    <PlaylistDetail>
      <Advert>
        <Created>2026-04-03T06:24:58.9857589+00:00</Created>
        <Deleted>true</Deleted>
        <Extension>sample string 3</Extension>
        <FileName>sample string 2</FileName>
        <FileSize>4</FileSize>
        <ID>1</ID>
        <ImageData>QEA=</ImageData>
        <IsVideo>true</IsVideo>
        <Length>7</Length>
        <Updated>2026-04-03T06:24:58.9857589+00:00</Updated>
      </Advert>
      <AdvertID>4</AdvertID>
      <Deleted>true</Deleted>
      <Duration>5</Duration>
      <ID>1</ID>
      <PlaylistID>3</PlaylistID>
      <SortOrder>2</SortOrder>
    </PlaylistDetail>
  </PlaylistDetails>
  <PlaylistGroups>
    <PlaylistGroup>
      <ID>1</ID>
      <PlaylistID>2</PlaylistID>
      <StoreID>3</StoreID>
      <ZoneID>4</ZoneID>
    </PlaylistGroup>
    <PlaylistGroup>
      <ID>1</ID>
      <PlaylistID>2</PlaylistID>
      <StoreID>3</StoreID>
      <ZoneID>4</ZoneID>
    </PlaylistGroup>
  </PlaylistGroups>
  <Priority>6</Priority>
  <Recurrence>1</Recurrence>
  <RecurrenceType>1</RecurrenceType>
  <StartDate>2026-04-03T06:24:58.9857589+00:00</StartDate>
  <StartTime>1</StartTime>
  <UpdatedByUser>sample string 4</UpdatedByUser>
  <WeekDays>1</WeekDays>
</Playlist>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

int

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Sample:
PK3�\���յ5xl/workbook.xml �(����� ��&�����CC{�ū�H!���>���M�yۙ��v������}�dc:�R�-!Q(0<���w��S��I��Z���ۀM���BL<ig��>��+�|�
 �iE�-�����a�Efc�����!�b�_�,7��'�Qq�c�+�B��p�ZRY7b�zn��;{�1���PK3�\����	�[Content_Types].xml �(����J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
3�\��g�''_rels/.rels �(�<?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R0a5c2af36ae141e1" /></Relationships>PK3�\��4�xl/worksheets/sheet1.xml �(��Q�n� ��}%��j�U���n�ۙ%N@
82����6M�e������<��Ȯ@��ox��8�bg���9�w����t	 ��aO
71N{!Bk���	|z둜�)�A`��N��|۪�	�Q�T*;���G+L�+ܸJ9m=W��I=�g}Ï5gBɂ|���_1�m|"^r��5�*X�|.�_�u��y�o�<�LLz(��Pv�l�gN�ʹ�.��?m��j�M�v��z��+��:騕$\�礚��G����Z�kf���ߎW�Is:#F����W�PK3�\u��Pxl/_rels/workbook.xml.rels �(���An� E��f_6�Q'�n�Ms�m�H��-��W(j��H]t��?��4���c�=�y�G�:��N{3���c�+�n�;�T�7�0.��'.v0��<Q�����_���aV)������#�ki(p�$���!zkG��^gt�0}���d�B����(��W�
��t���2[7����Y �nj1�'��^׺����m�X&���UfP�k
yӥSj\&���\Xy����/PK3�\Ѓc'2E
xl/styles.xml �(��S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v�F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}���LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK3�\�/���xl/sharedStrings.xml �(�5�A� �B�nA�h&�@@ڵ����������d2;}Ҧ�X9frp(�9/�V���p��i�[&t�E5��YTO��r՚���R7�\���u�\*����M��9��#��s#qЧ��������~PK-3�\���յ5xl/workbook.xmlPK-3�\����	��[Content_Types].xmlPK-
3�\��g�''T_rels/.relsPK-3�\��4��xl/worksheets/sheet1.xmlPK-3�\u��P,xl/_rels/workbook.xml.relsPK-3�\Ѓc'2E
qxl/styles.xmlPK-3�\�/����xl/sharedStrings.xmlPK��

application/vnd.ms-excel

Sample:
PK3�\�|P5�5xl/workbook.xml �(�����0��&�C��E	&�p��Ճ��.������Ǘ�@������#F^�s/�1��e��Jɗ��N��xr��]0�&�����q�۠M��y����Qi�J��}@�Q!&3�(���x D��Ǹ�����&ak�����/E,�h	(Y���hFI(�4ܹ�(�-�Xdy���w�`���PK3�\����	�[Content_Types].xml �(����J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
3�\�U��''_rels/.rels �(�<?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R2173c6f724934519" /></Relationships>PK3�\��4�xl/worksheets/sheet1.xml �(��Q�n� ��}%��j�U���n�ۙ%N@
82����6M�e������<��Ȯ@��ox��8�bg���9�w����t	 ��aO
71N{!Bk���	|z둜�)�A`��N��|۪�	�Q�T*;���G+L�+ܸJ9m=W��I=�g}Ï5gBɂ|���_1�m|"^r��5�*X�|.�_�u��y�o�<�LLz(��Pv�l�gN�ʹ�.��?m��j�M�v��z��+��:騕$\�礚��G����Z�kf���ߎW�Is:#F����W�PK3�\Ξc�Pxl/_rels/workbook.xml.rels �(���An� E��f_���*N6�t��c�Hۜ���W(J��H]t��?��4����f�6��C�k��t����-�����n�8ʔoD;̑�'.�`S�(���$c�gt�c|�d�e��,�Q�H�54��f��y���1��G�N�����p�19��cj�'��r�U�y�-�f�ם��Լ�%z3���#�_�ﺐ1\�ҝ`����fqS+���K�2.�V�A�ւ�g�V5z�/�_PK3�\Ѓc'2E
xl/styles.xml �(��S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v�F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}���LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK3�\�/���xl/sharedStrings.xml �(�5�A� �B�nA�h&�@@ڵ����������d2;}Ҧ�X9frp(�9/�V���p��i�[&t�E5��YTO��r՚���R7�\���u�\*����M��9��#��s#qЧ��������~PK-3�\�|P5�5xl/workbook.xmlPK-3�\����	��[Content_Types].xmlPK-
3�\�U��''U_rels/.relsPK-3�\��4��xl/worksheets/sheet1.xmlPK-3�\Ξc�P-xl/_rels/workbook.xml.relsPK-3�\Ѓc'2E
sxl/styles.xmlPK-3�\�/����xl/sharedStrings.xmlPK��