Join Slack
Powered by
Hi! Why am I getting this message: {"detail":"Cont...
# gooddata-cn
в
Василий Островский
08/20/2021, 3:40 PM
Hi! Why am I getting this message: {"detail":"Content type 'text/plain' not supported","status":415,"title":"Unsupported Media Type","traceId":"b7b015ac9e271481"} when sending POST to metrics API with plain text body?
j
Jan Soubusta
08/20/2021, 3:58 PM
Have you imported our OpenAPI schema like it is described here?
https://www.gooddata.com/developers/cloud-native/doc/1.3/api/tools/
Anyway your tool sends wrong Content-Type in header. In this case (/api/entities) you have to send "application/vnd.gooddata.api+json", like it is described in our DOC:
https://www.gooddata.com/developers/cloud-native/doc/1.3/api/intro/#media-type
в
Василий Островский
08/21/2021, 8:54 AM
👍Thanks a lot Jan!
Open in Slack
Previous
Next