A Client ID for your org.
Params
The unique identifier of the Datasource you wish to update.
Body
Updated name of the Datasource.
An array of updated metadata fields, each having a name, type, and description.
Updated type of the Datasource.
Updated flag indicating whether auto-extraction is enabled or not.
# 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"
}
}