Version 4.0.25.4 (latest)
Set the global default Color Collection by ID
Returns the new specified default Color Collection object.
Note: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return Not Found
(404) errors.
Request
PUT
/color_collections/default
Datatype
Description
Request
query
Expand HTTP Query definition...
collection_id
ID of color collection to set as default
Response
200: ColorCollection
Datatype
Description
(object)
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
422: Validation Error
Datatype
Description
(object)
message
lock
Error details
errors
Expand ValidationErrorDetail definition...
field
lock
Field with error
code
lock
Error code
message
lock
Error info message
documentation_url
lock
Documentation link
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/TestSmoke.kt |
https://github.com/looker-open-source/sdk-codegen/blob/main/kotlin/src/test/TestSmoke.kt |
TypeScript
Python
Swift