VMware Modern Apps Community
AbhishekSK
Hot Shot
Hot Shot
Jump to solution

the POST /api/manage/source/{source}/description api call fails with a 405, even from the documentation page

curl -X POST --header "Content-Type: text/plain" --header "Accept: application/json" --header "X-WF-CSRF-TOKEN: XXXXXXXXXXXXXXXXXXXXXXXXXXX" -d "foo foo test" "https://rocketfuel.wavefront.com/api/manage/source/sjc-108/description"

{ "error": "HTTP 405 Method Not Allowed", "trackingId": "ca9ca9fb-90b3-4a07-9b2d-e4e3c7a25ed0" }

{

  "status": "405 Method Not Allowed",

  "date": "Thu, 07 Apr 2016 23:47:00 GMT",

  "server": "nginx",

  "content-type": "application/json",

  "content-length": "91",

  "version": "HTTP/1.1"

}

0 Kudos
1 Solution

Accepted Solutions
AbhishekSK
Hot Shot
Hot Shot
Jump to solution

Hi Alastair,

We're very sorry about any inconvenience this might have caused you and your team and greatly appreciate you bringing this to our notice.

The  API call for this uses  PUT instead of  POST and so if you use the following curl command you should be able to add description to the sources.

curl -X PUT --header "Content-Type: text/plain" --header "Accept: application/json" --header "X-AUTH-TOKEN: <Your API Token>" -d "test" "https://rocketfuel.wavefront.com/api/manage/source/sjc-108/description"

I have already filed a request to update the API Documentation for this on our end. Once again thanks a lot for informing us about this issue.

Please let me know if you have any further questions around this.

Thanks,

Salil D

1 of 1 people found this helpful

View solution in original post

0 Kudos
2 Replies
AbhishekSK
Hot Shot
Hot Shot
Jump to solution

Hi Alastair,

We're very sorry about any inconvenience this might have caused you and your team and greatly appreciate you bringing this to our notice.

The  API call for this uses  PUT instead of  POST and so if you use the following curl command you should be able to add description to the sources.

curl -X PUT --header "Content-Type: text/plain" --header "Accept: application/json" --header "X-AUTH-TOKEN: <Your API Token>" -d "test" "https://rocketfuel.wavefront.com/api/manage/source/sjc-108/description"

I have already filed a request to update the API Documentation for this on our end. Once again thanks a lot for informing us about this issue.

Please let me know if you have any further questions around this.

Thanks,

Salil D

1 of 1 people found this helpful

0 Kudos
AbhishekSK
Hot Shot
Hot Shot
Jump to solution

That fixed it - descriptions uploaded.

thanks!

0 Kudos