Amazon API Gateway · Arazzo Workflow

AWS API Gateway Add a Method and Redeploy

Version 1.0.0

Verify a REST API exists, attach a method to one of its resources, and publish a fresh deployment.

1 workflow 4 source APIs 1 provider
View Spec View on GitHub API GatewayCloudRESTHTTPWebSocketServerlessMCPAgentCoreDeveloper PortalArazzoWorkflows

Provider

aws-api-gateway

Workflows

add-method-and-redeploy
Attach a method to an existing REST API resource and redeploy.
Confirms the REST API, resolves a resource, puts a method, and creates a deployment to publish the change.
4 steps inputs: apiKeyRequired, authorizationType, httpMethod, resourceId, restApiId, stageName outputs: deploymentId, methodHttpMethod
1
confirmRestApi
Confirm the target REST API exists before modifying it.
2
listResources
List the resources for the REST API to obtain a target resource id.
3
putMethod
Add the requested HTTP method to the resolved resource.
4
redeploy
Create a deployment so the new method is published to the stage.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: AWS API Gateway Add a Method and Redeploy
  summary: Verify a REST API exists, attach a method to one of its resources, and publish a fresh deployment.
  description: >-
    A common iteration on an existing Amazon API Gateway V1 REST API. The
    workflow confirms the REST API exists, lists its resources to pick a target
    resource, puts a new HTTP method on that resource, and then creates a fresh
    deployment so the change is reflected on a stage. 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: deploymentsApi
  url: ../openapi/aws-api-gateway-deployments-api-openapi.yml
  type: openapi
- name: methodsApi
  url: ../openapi/aws-api-gateway-methods-api-openapi.yml
  type: openapi
- name: resourcesApi
  url: ../openapi/aws-api-gateway-resources-api-openapi.yml
  type: openapi
- name: restapisApi
  url: ../openapi/aws-api-gateway-restapis-api-openapi.yml
  type: openapi
workflows:
- workflowId: add-method-and-redeploy
  summary: Attach a method to an existing REST API resource and redeploy.
  description: >-
    Confirms the REST API, resolves a resource, puts a method, and creates a
    deployment to publish the change.
  inputs:
    type: object
    required:
    - restApiId
    - httpMethod
    - stageName
    properties:
      restApiId:
        type: string
        description: Identifier of the existing REST API.
      resourceId:
        type: string
        description: Optional explicit resource id; when omitted the first listed resource is used.
      httpMethod:
        type: string
        description: HTTP verb to add to the resource.
      authorizationType:
        type: string
        description: Authorization type for the method.
      apiKeyRequired:
        type: boolean
        description: Whether the method requires an API key.
      stageName:
        type: string
        description: Stage to publish the redeployment to.
  steps:
  - stepId: confirmRestApi
    description: Confirm the target REST API exists before modifying it.
    operationId: getRestApi
    parameters:
    - name: restapi_id
      in: path
      value: $inputs.restApiId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      restApiId: $response.body#/id
  - stepId: listResources
    description: List the resources for the REST API to obtain a target resource id.
    operationId: getResources
    parameters:
    - name: restapi_id
      in: path
      value: $inputs.restApiId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstResourceId: $response.body#/items/0/id
  - stepId: putMethod
    description: Add the requested HTTP method to the resolved resource.
    operationId: putMethod
    parameters:
    - name: restapi_id
      in: path
      value: $inputs.restApiId
    - name: resource_id
      in: path
      value: $steps.listResources.outputs.firstResourceId
    - name: http_method
      in: path
      value: $inputs.httpMethod
    requestBody:
      contentType: application/json
      payload:
        authorizationType: $inputs.authorizationType
        apiKeyRequired: $inputs.apiKeyRequired
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      methodHttpMethod: $response.body#/httpMethod
  - stepId: redeploy
    description: Create a deployment so the new method is published to the stage.
    operationId: createDeployment
    parameters:
    - name: restapi_id
      in: path
      value: $inputs.restApiId
    requestBody:
      contentType: application/json
      payload:
        stageName: $inputs.stageName
        description: Redeployment after adding a method.
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      deploymentId: $response.body#/id
  outputs:
    methodHttpMethod: $steps.putMethod.outputs.methodHttpMethod
    deploymentId: $steps.redeploy.outputs.deploymentId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/aws-api-gateway-add-method-and-redeploy-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.