Skip to main content
PUT
/
v1
/
data-sources
/
{dataSourceId}
/
data
Update data source CSV data
curl --request PUT \
  --url https://wmc.wiremockapi.cloud/v1/data-sources/{dataSourceId}/data \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: text/csv' \
  --data '<string>'
{
  "errors": [
    {
      "title": "Invalid query parameter format",
      "detail": "The offset parameter value must be a positive integer"
    }
  ]
}

Authorizations

Authorization
string
header
required

Your API key prefixed by 'Token '

Path Parameters

dataSourceId
string
required

Body

text/csv

A header row must be present in the supplied CSV with names that match the existing headers of the data source. Additionally, all cells of all supplied rows after the header row must conform to the type of their respective column. For example, if a column has type BOOLEAN, then all cells within that column must have a value of either true or false.

The body is of type string.

Response

Success