Python Discussions

POST Rest api method for creating datasources in OCI

sadhana
3,126 Views

I get an error when I try to invoke rest-api POST method with the URL. URL for POST is : "https://localhost/rest/v1/admin/datasources" .

 

When I invoked the rest api it gave the following error:

 

raise HTTPError('{} Client Error: {}'.format(response.status_code, response.reason), response=response)
requests.exceptions.HTTPError: 404 Client Error: Not Found

 

Note:

 

The server to which I want to post data is logged in.

 

I am able to access the URL and see the information of the datasources that are already created.

 

The file is in the JSON format. The contents are as per requirement.

 

Can someone help me with this?

0 REPLIES 0
Public