I would like to create a dataset in the logical da...
# gooddata-platform
p
I would like to create a dataset in the logical data model through an API call. I think this is the right API: https://help.gooddata.com/doc/growth/en/expand-your-gooddata-platform/api-reference/#tag/non-production-publish-mod[…]roduction~1model~1publish/post but I'm not able to make it work.. Can somebody help me?
m
Hi Pietro, as mentioned in the documentation - NOTE: Requires canManageCustomDataset permission. I think this might be the case here, but can you please provide me with the related Request ID or Error ID so I can check our logs for you?
p
Thank you for the reply Michael. Actually I'm in a demo account and I am the only one so unless I have to explicitly enable that permission I should already be allowed.
I get an 401 Authorization Required
m
Please can you provide me with the related Request ID or Error ID?
p
I've only changed the endpoint to use my project and than the default body from the docs
where do I get Request or Error IDs?
m
In the response from the API tool you’re using
p
x-gdc-request: sjVkpAlqR1At3qRl
is this it?
m
Thanks for providing the request ID - The issue here is caused by the fact that your project is under “GoodData Cloud” environment: 909b09b996a5423eb514c64b24680e65 But you are working with the API Calls from our “GoodData Platform” documentation: https://help.gooddata.com/doc/growth/en/expand-your-gooddata-platform/api-reference/#tag/non-production-publish-mod[…]roduction~1model~1publish/post You’ll need to refer to our GoodData Cloud API documentation: https://www.gooddata.com/docs/cloud/api-and-sdk/api/ Sorry for the confusion, but I hope this helps! 🙂
p
thank you
what is the right API to call to create a dataset?
for cloud edition I am only finding GET method for datasets
@Michael Ullock can you help me?
m
The GoodData API documentation for Cloud does not have the same API calls and available functionality as in the documentation for GoodData Classic - You’ll need to refer to the following API documentation to see what API calls are available to you: https://www.gooddata.com/docs/cloud/api-and-sdk/api/api_reference_all/
I would also like to recommend that moving forward you post any new questions in the “gooddata-cloud” Slack channel - As I see that you’re working with our GoodData Cloud product 🙂
👍 1
p
thank you