latestOpenAPI 3.0.02026-08-0819201.1 MB

411f9f98c01e

data samples

Update the specified data sample

You need workspaces.flow.edit permission to access this resource

patch/data-samples/{datasample_id}

Path parameters

datasample_idstring required

Data-sample identifier

Request body

Example request

{
  "data": {
    "attributes": {
      "method": "createOrUpdateRecord"
    }
  }
}

Response

OK

metaobject required

Example response

{
  "data": {
    "id": "5b4f337bff4304610483ba67",
    "links": {
      "self": "/v2/data-samples/5b4f337bff4304610483ba67"
    },
    "attributes": {
      "method": "createOrUpdateRecord"
    },
    "relationships": {
      "component": {
        "data": {
          "id": "5b4f337bff4304610483ba67"
        },
        "links": {
          "self": "/v2/components/5b4f337bff4304610483ba67"
        }
      },
      "component_version": {
        "data": {
          "id": "latest"
        },
        "links": {
          "self": "/v2/components/5b4f337bff4304610483ba67/versions/latest"
        }
      },
      "workspace": {
        "data": {
          "id": "5b4f337bff4304610483ba67"
        },
        "links": {
          "self": "/v2/workspaces/5b4f337bff4304610483ba67"
        }
      },
      "user": {
        "data": {
          "id": "5b4f337bff4304610483ba67"
        },
        "links": {
          "self": "/v2/users/5b4f337bff4304610483ba67"
        }
      }
    }
  }
}