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": "2025-10-04T23:58:39.8818182",
  "startTime": 1,
  "endDate": "2025-10-04T23:58:39.8818182",
  "endTime": 1,
  "recurrence": 1,
  "recurrenceType": 1,
  "monthType": 1,
  "weekDays": 1,
  "months": 1,
  "monthWeeks": 1,
  "monthDays": "sample string 3",
  "active": true,
  "deleted": true,
  "lastUpdated": "2025-10-04T23:58:39.8818182",
  "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": "2025-10-04T23:58:39.8818182",
        "updated": "2025-10-04T23:58:39.8818182",
        "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>2025-10-04T23:58:39.8818182+00:00</EndDate>
  <EndTime>1</EndTime>
  <ID>1</ID>
  <LastUpdated>2025-10-04T23:58:39.8818182+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>2025-10-04T23:58:39.8818182+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>2025-10-04T23:58:39.8818182+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>2025-10-04T23:58:39.8818182+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>2025-10-04T23:58:39.8818182+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>2025-10-04T23:58:39.8818182+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:
PKS�D[6��5xl/workbook.xml �(�����0��J}�(�B!`b�ڡ��D�%���7�ԭ��|�|����k=��\��lC'�MŘ&��nڠ
;���}1͹���[��,K��Y\���$��;��3at��ˎ� m�B��S���Qw3	�C�7UG�yQ ��x�$:���)%�ax9bR�t�2��4��	����PKS�D[����	�[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
S�D[�?��''_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="R5aa54b00a49d40c8" /></Relationships>PKS�D[��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�PKS�D[b��Pxl/_rels/workbook.xml.rels �(����N!�_��݅E�n��^�x�}
�����<�H��D��ă����_������޾L#y��$��N{3�N�)ٛ���G���s$�������Q�8�X�]�X&�r::+}TR�XCCɀK&ٟg��[;h���4�K����#& {:L~�H?���T F®����Q-�Z�WS��<b����}Ǘb����FX^_U�W�c
yӥSjF+a-�e��{N��_l>PKS�D[Ѓ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��PKS�D[�/���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-S�D[6��5xl/workbook.xmlPK-S�D[����	��[Content_Types].xmlPK-
S�D[�?��''U_rels/.relsPK-S�D[��4��xl/worksheets/sheet1.xmlPK-S�D[b��P-xl/_rels/workbook.xml.relsPK-S�D[Ѓc'2E
sxl/styles.xmlPK-S�D[�/����xl/sharedStrings.xmlPK��

application/vnd.ms-excel

Sample:
PKS�D[ċ��5xl/workbook.xml �(�����0��&�C���
)��x��}�E�O�||K	$޼���~;|�vl��GN������`̵Jp'mP�]���}1����Z�o�ʳ4Irfq/�r�0���X�X��
�^N+J�P�:�K����E���b���o�G�~Q ��5x�$:���gJl!���r�n�\ӼI��
���a�m��/PKS�D[����	�[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
S�D[Ai''_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="Rb97ece04a4804e11" /></Relationships>PKS�D[��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�PKS�D[�.�L�Pxl/_rels/workbook.xml.rels �(���Kn�0@�b;q��T6ݰ�\`�'�ؑmh9[=R�P�J�����h~OO��|�Xmަ�������,FFY=���Sh$l֫���ٳ�b|}��^�4���L&vZ�&1u�Q�#^�y�]ʀ[&�_f�Ѷ��٪�D&���}O���u�)y~
E�������PH��:�b!	��������w��,Q�u[h,Q	Y�����H�/�:��DM*qP�%ѣ�����XPKS�D[Ѓ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��PKS�D[�/���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-S�D[ċ��5xl/workbook.xmlPK-S�D[����	��[Content_Types].xmlPK-
S�D[Ai''U_rels/.relsPK-S�D[��4��xl/worksheets/sheet1.xmlPK-S�D[�.�L�P-xl/_rels/workbook.xml.relsPK-S�D[Ѓc'2E
sxl/styles.xmlPK-S�D[�/����xl/sharedStrings.xmlPK��