Version 4.0.24.16 (latest)
Get an array of all existing Color Collections
Get a single color collection by id with ColorCollection
Get all standard color collections with ColorCollection
Get all custom color collections with ColorCollection
Note: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return Not Found
(404) errors.
Request
GET
/color_collections
Datatype
Description
Request
query
Expand HTTP Query definition...
fields
Requested fields.
Response
200: ColorCollections
Datatype
Description
(array)
id
lock
Unique Id
label
Label of color collection
categoricalPalettes
Expand DiscretePalette definition...
id
lock
Unique identity string
label
Label for palette
type
Type of palette
colors
sequentialPalettes
Expand ContinuousPalette definition...
id
lock
Unique identity string
label
Label for palette
type
Type of palette
stops
Expand ColorStop definition...
color
CSS color string
offset
Offset in continuous palette (0 to 100)
divergingPalettes
Expand ContinuousPalette definition...
id
lock
Unique identity string
label
Label for palette
type
Type of palette
stops
Expand ColorStop definition...
color
CSS color string
offset
Offset in continuous palette (0 to 100)
400: Bad Request
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
Examples
Kotlin
https://github.com/looker-open-source/sdk-codegen/blob/main/kotlin/src/test/TestMethods.kt |
https://github.com/looker-open-source/sdk-codegen/blob/main/kotlin/src/test/TestSmoke.kt |
TypeScript
https://github.com/looker-open-source/sdk-codegen/blob/main/packages/sdk-node/test/methods.spec.ts |
https://github.com/looker-open-source/sdk-codegen/blob/main/packages/sdk-node/test/sdk.test.ts |
Python
https://github.com/looker-open-source/sdk-codegen/blob/main/python/tests/integration/test_methods.py |
Swift