Hi all, I'm trying to apply "Active palette color...
# gd-beginners
s
Hi all, I'm trying to apply "Active palette color" to a workspace, I got the list of workspaces using this
{Domain}/api/v1/entities/users/auth0_{someId}
now to apply the palette id I got I'm using this
Copy code
api/v1/entities/workspaces/{workspaceId}/workspaceSettings

{
    "data": {
        "type": "workspaceSetting",
        "id": "{workspaceId}",
        "attributes": {
            "content": {
                "id": "{paletteId}",
                "type": "colorPalette"
            },
            "type": "ACTIVE_COLOR_PALETTE"
        }
    }
}
but in response to this latest one I get:
Copy code
{
  "detail": "The requested endpoint does not exist or you do not have permission to access it.",
  "status": 404,
  "title": "Not Found",
  "traceId": "{sometraceid}"
}
Note that I have "MANAGE" permission for this workspace I'm trying to update however in the gooddata
api/v1/profile
endpoint my permissions are coming up as empty:
Copy code
"permissions": []
Please help, I'm stuck at this point one more question: Do I need Admin permission to do this?
m
Hi shahenshah, Could you please confirm you are using the correct endpoint? This is how it should look like:
Copy code
$HOST_URL/api/v1/entities/workspaces/{workspaceId}/workspaceSettings
Remember to use the correct host or make sure that the variable is pointing to it. Regarding the permissions, yes, you need to have Manage permission on the workspace to modify the palette.
s
I think my url is correct
there's hosturl appended before api
m
Could you please share the traceID?
s
one sec
398eb94da63b4413045eac40e25f7708
m
Thanks. According to the current permissions on your user, you either have view or analyze permission on the workspace. You will need to have manage permission to be able to edit the color palette.
👍 1
s
Thanks @Moises Morales, we were able to resolve it