Hello :wave: Possibly sending a small bug report y...
# gooddata-cn
t
Hello 👋 Possibly sending a small bug report your way. I’ve just tried using the
PUT <https://www.gooddata.com/api/v1/layout/workspaces/{workspaceId}/permissions>
endpoint and it turns out it doesn’t accept the
[application/vnd.gooddata.api+json]
Content-type header, like all the other endpoints, but it only accepts
[application/json]
i
Hi Tomas, I can see the correct content-type mentioned here in our Apiary. Also, I believe there are more API calls accepting only
[application/json]
.
Could you possibly point me to your source where is it stated differently, please?
t
Hello @Tomáš Gajdoš, thank you for the notice. 👍Some of the APIs indeed accept
[application/json]
while others accept
[application/vnd.gooddata.api+json]
. I will push the feedback back to the product.
I have checked the topic with Engineering and the general rule is that: • Entity APIs use
application/vnd.gooddata.api+json
• Other APIs (layout, actions…) use
application/json
1
t
Ah, thanks for the clarification! I thought I saw requests using
application/vnd.gooddata.api+json
for some other layout APIs, but I was mistaken.
👍 1