# Example Request curl -X PUT "https://api.getmetal.io/v1/datasources/{id}" \ --header 'Content-Type: application/json' \ --header 'x-metal-api-key: <api-key>' \ --header 'x-metal-client-id: <client-id>' \ --data-raw '{ "name": "updated_datasource", "metadataFields": [ { "name": "updated_field", "type": "string", "description": "Updated description" } ], "sourcetype": "updated_type", "autoExtract": false }'
{ "data": { "id": "datasourceID", "name": "updated_datasource", "metadataFields": [ { "name": "updated_field", "type": "string", "description": "Updated description" } ], "sourcetype": "updated_type", "autoExtract": false, "updatedAt": "2023-03-17T17:21:13.163Z" } }
This endpoint updates the details of an existing Datasource by its ID.