arazzo: 1.0.1
info:
title: Amazon Data Exchange Update Data Set Metadata
summary: Read a data set, update its name and description, and verify the change.
description: >-
A metadata maintenance flow for AWS Data Exchange. The workflow reads the
current details of a data set, updates its name and description, and reads
it back to confirm the new values. Every step spells out its request inline
so the flow can be read and executed without opening the underlying OpenAPI
description.
version: 1.0.0
sourceDescriptions:
- name: dataSetsApi
url: ../openapi/amazon-data-exchange-datasets-api-openapi.yml
type: openapi
workflows:
- workflowId: update-data-set-metadata
summary: Update a data set's name and description and verify the result.
description: >-
Gets the data set, patches its name and description, and gets it again to
confirm the update.
inputs:
type: object
required:
- dataSetId
- name
- description
properties:
dataSetId:
type: string
description: The ID of the data set to update.
name:
type: string
description: The new name for the data set.
description:
type: string
description: The new description for the data set.
steps:
- stepId: GetDataSet
description: >-
Read the current details of the data set before updating it.
operationId: GetDataSet
parameters:
- name: DataSetId
in: path
value: $inputs.dataSetId
successCriteria:
- condition: $statusCode == 200
outputs:
oldName: $response.body#/Name
- stepId: UpdateDataSet
description: >-
Patch the data set with the new name and description.
operationId: UpdateDataSet
parameters:
- name: DataSetId
in: path
value: $inputs.dataSetId
requestBody:
contentType: application/json
payload:
Name: $inputs.name
Description: $inputs.description
successCriteria:
- condition: $statusCode == 200
outputs:
updatedName: $response.body#/Name
updatedAt: $response.body#/UpdatedAt
- stepId: verifyDataSet
description: >-
Read the data set back to confirm the new metadata is in effect.
operationId: GetDataSet
parameters:
- name: DataSetId
in: path
value: $inputs.dataSetId
successCriteria:
- condition: $statusCode == 200
outputs:
confirmedName: $response.body#/Name
confirmedDescription: $response.body#/Description
outputs:
dataSetId: $inputs.dataSetId
oldName: $steps.GetDataSet.outputs.oldName
confirmedName: $steps.verifyDataSet.outputs.confirmedName
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.