Error of permissions in using postman to get the list of custom dimensions ==> help please

Hello the Piwik Community,

I’m facing an issue in using posting to create a request to return the list all custom dimensions available for a website.

But even after creating my “access_token” “Bearer type” i’m not able to execute the request ; i’m getting the following error
“errors”: {
“detail”: “You do not have permission to perform this action.”
}

Here’s my example request
{
“data”: {
“type”: “CustomDimension”,
“id”: “331dea87-ef9c-4aa5-9ac8-24df5860bff0”,
“attributes”: {
“website_id”: “d34d32fd-6634-4882-9c22-6d342d41b39d”

    }
}

}

What did i missed to run correctly my request ?
Thanks in advance for your kindly help& support.

Sébastien

Hi Sébastien,
the website_id should be in the query parameters, not in the body. Try to add it like that:

Let me know if it helped :slight_smile:

Piotr

1 Like

Hi Piotr,

Thanks for your support.
I tested it but maybe still didn’t catch something :frowning: Ressource not found

Do you have any idea please ?
Thanks for your support.
Good evening
Sébastien

Fortunately, it’s a different error :slight_smile:

You’re missing ‘s’ in the name of the instance → ‘obusines’ instead of ‘obusiness’

Cheers
Piotr

1 Like

Hello @pwachala Piotr,

thanks a lot; i’m feeling so dumb.

You make my day.
Last question: is it possible possible to change the slot or the tracking_id number please ? if so, where’s the documentation link i didn’t see it in the documentation) .
Kind regards,
Sébastien

hi @spujade
No worries, I’m happy I could help :smiley:

Regarding the slot and id of a custom dimension: it’s not possible to change it.

Hi Piotr,
Thanks again for your great help and confirmation.
Wish you a lovely day
Kind regards
Sébastien