List Palettes

GET {{baseUrl}}/palettes?page[number]=1&page[size]=20&filter[discipline]=<string>&filter[countryCode]=<string>&sort=-createdAt

List Palettes, filtered by user provided parameters. This will return palettes those are either created by partition owner or approved palettes from other partitions.

Request Params

KeyDatatypeRequiredDescription
page[number]numberA cursor to the page number for use in “pagination linked list”
page[size]numberNumbers of items to return
filter[discipline]stringDiscipline of Palette
filter[countryCode]stringCountry Code of palette
sortstringSort by createdAt time and name

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;links&quot;:{&quot;self&quot;:&quot;/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes?sort=-createdAt\u0026page[number]=1\u0026page[size]=20&quot;,&quot;first&quot;:&quot;/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes?sort=-createdAt\u0026page[number]=1\u0026page[size]=20&quot;,&quot;prev&quot;:&quot;/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes?sort=-createdAt\u0026page[number]=1\u0026page[size]=20&quot;,&quot;next&quot;:&quot;/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes?sort=-createdAt\u0026page[number]=1\u0026page[size]=20&quot;,&quot;last&quot;:&quot;/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes?sort=-createdAt\u0026page[number]=1\u0026page[size]=20&quot;},&quot;data&quot;:[{&quot;id&quot;:&quot;827d0ae5-6c62-42a7-9367-7aa95512823e&quot;,&quot;type&quot;:&quot;Palette&quot;,&quot;meta&quot;:{&quot;createdAt&quot;:&quot;2018-01-13T19:56:02.197Z&quot;,&quot;updatedAt&quot;:&quot;1973-09-18T07:33:05.651Z&quot;,&quot;createdBy&quot;:&quot;Z0011111&quot;,&quot;updatedBy&quot;:&quot;Z0011111&quot;},&quot;attributes&quot;:{&quot;name&quot;:&quot;Fire Palette 1&quot;,&quot;discipline&quot;:&quot;\u003cstring\u003e&quot;,&quot;countryCode&quot;:&quot;CHE&quot;},&quot;links&quot;:{&quot;self&quot;:&quot;/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes/4fa85f64-5454-1212-c3fc-2c963f66af44&quot;}},{&quot;id&quot;:&quot;827d0ae5-6c62-42a7-9367-7aa95512823e&quot;,&quot;type&quot;:&quot;Palette&quot;,&quot;meta&quot;:{&quot;createdAt&quot;:&quot;2003-05-19T21:10:22.717Z&quot;,&quot;updatedAt&quot;:&quot;1976-08-14T17:07:23.800Z&quot;,&quot;createdBy&quot;:&quot;Z0011111&quot;,&quot;updatedBy&quot;:&quot;Z0011111&quot;},&quot;attributes&quot;:{&quot;name&quot;:&quot;Fire Palette 1&quot;,&quot;discipline&quot;:&quot;\u003cstring\u003e&quot;,&quot;countryCode&quot;:&quot;CHE&quot;},&quot;links&quot;:{&quot;self&quot;:&quot;/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes/4fa85f64-5454-1212-c3fc-2c963f66af44&quot;}}]}