---
updatedAt: 2026-04-22T19:15:29.000Z
agentTools:
  projectIndex: https://api-docs.render.com/llms.txt
---

# Update workflow

Update the workflow service with the provided ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Render Public API",
    "description": "Manage everything about your Render services",
    "version": "1.0.0",
    "contact": {
      "name": "Render API",
      "url": "https://community.render.com",
      "email": "support@render.com"
    }
  },
  "x-readme": {
    "metrics-enabled": false
  },
  "servers": [
    {
      "url": "https://api.render.com/v1"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Workflows",
      "description": "Create and manage [Render Workflows](https://render.com/docs/workflows) services.\n"
    }
  ],
  "paths": {
    "/workflows": {
      "post": {
        "summary": "Create a workflow",
        "description": "Create a new workflow service with the specified configuration.",
        "tags": [
          "Workflows"
        ],
        "operationId": "createWorkflow",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "ownerId",
                  "region",
                  "runCommand",
                  "buildConfig"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "ownerId": {
                    "type": "string"
                  },
                  "buildConfig": {
                    "type": "object",
                    "required": [
                      "buildCommand",
                      "repo",
                      "runtime"
                    ],
                    "properties": {
                      "branch": {
                        "type": "string",
                        "description": "The branch to use for the build, if applicable."
                      },
                      "buildCommand": {
                        "type": "string",
                        "description": "The command to run to build the workflow. Required for every runtime except docker, which builds from its Dockerfile."
                      },
                      "repo": {
                        "type": "string",
                        "pattern": "\\S",
                        "description": "The repository URL to use for the build. Cannot be blank."
                      },
                      "rootDir": {
                        "type": "string",
                        "description": "The root directory of the repository to use for the build, if applicable."
                      },
                      "runtime": {
                        "$ref": "#/paths/~1workflows~1{workflowId}/patch/requestBody/content/application~1json/schema/properties/buildConfig/properties/runtime"
                      }
                    }
                  },
                  "runCommand": {
                    "type": "string",
                    "pattern": "\\S",
                    "description": "The command to run the workflow. Cannot be blank."
                  },
                  "region": {
                    "type": "string",
                    "enum": [
                      "frankfurt",
                      "oregon",
                      "ohio",
                      "singapore",
                      "virginia"
                    ],
                    "default": "oregon",
                    "description": "Defaults to \"oregon\""
                  },
                  "autoDeployTrigger": {
                    "type": "string",
                    "enum": [
                      "commit",
                      "off",
                      "checksPass"
                    ],
                    "default": "commit",
                    "description": "Controls autodeploy behavior. \"commit\" deploys when a commit is pushed to the branch. \"checksPass\" waits for CI checks to pass before deploying. \"off\" disables autodeploy."
                  },
                  "envVars": {
                    "$ref": "#/paths/~1services~1{serviceId}~1env-vars/put/requestBody/content/application~1json/schema"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Workflow created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "createdAt",
                    "updatedAt",
                    "ownerId",
                    "region",
                    "runCommand",
                    "buildConfig"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "ownerId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "buildConfig": {
                      "$ref": "#/paths/~1workflows/post/requestBody/content/application~1json/schema/properties/buildConfig"
                    },
                    "runCommand": {
                      "type": "string",
                      "description": "Command to run the workflow."
                    },
                    "region": {
                      "$ref": "#/paths/~1workflows/post/requestBody/content/application~1json/schema/properties/region"
                    },
                    "environmentId": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "autoDeployTrigger": {
                      "$ref": "#/paths/~1workflows/post/requestBody/content/application~1json/schema/properties/autoDeployTrigger"
                    },
                    "defaultVersionId": {
                      "type": "string",
                      "description": "ID of the workflow version that new task runs use by default. Omitted until a version has been registered."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404NotFound"
          },
          "429": {
            "$ref": "#/components/responses/429RateLimit"
          },
          "500": {
            "$ref": "#/components/responses/500InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/503ServiceUnavailable"
          }
        }
      }
    },
    "/workflows/{workflowId}": {
      "parameters": [
        {
          "name": "workflowId",
          "in": "path",
          "description": "The ID of the workflow",
          "schema": {
            "type": "string"
          },
          "required": true
        }
      ],
      "patch": {
        "summary": "Update workflow",
        "description": "Update the workflow service with the provided ID.",
        "tags": [
          "Workflows"
        ],
        "operationId": "updateWorkflow",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "buildConfig": {
                    "type": "object",
                    "description": "A partial update to a workflow's build config. Every field is optional; omitted fields are left unchanged.",
                    "properties": {
                      "branch": {
                        "type": "string",
                        "description": "The branch to use for the build, if applicable."
                      },
                      "buildCommand": {
                        "type": "string",
                        "description": "The command to run to build the workflow. Required for every runtime except docker, which builds from its Dockerfile."
                      },
                      "repo": {
                        "type": "string",
                        "pattern": "\\S",
                        "description": "The repository URL to use for the build. Cannot be blank."
                      },
                      "rootDir": {
                        "type": "string",
                        "description": "The root directory of the repository to use for the build, if applicable."
                      },
                      "runtime": {
                        "type": "string",
                        "enum": [
                          "elixir",
                          "go",
                          "node",
                          "python",
                          "ruby"
                        ],
                        "description": "The runtime environment for the workflow (e.g., node, python, etc.)."
                      }
                    }
                  },
                  "runCommand": {
                    "type": "string",
                    "pattern": "\\S",
                    "description": "The command to run the workflow. Cannot be blank."
                  },
                  "autoDeployTrigger": {
                    "$ref": "#/paths/~1workflows/post/requestBody/content/application~1json/schema/properties/autoDeployTrigger"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Workflow updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1workflows/post/responses/201/content/application~1json/schema"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404NotFound"
          },
          "429": {
            "$ref": "#/components/responses/429RateLimit"
          },
          "500": {
            "$ref": "#/components/responses/500InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/503ServiceUnavailable"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "error": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "A stable, machine-readable identifier present on specific errors that clients can handle specially. Each endpoint documents the codes it can return. The errorCode schema lists the full vocabulary of codes."
          }
        }
      }
    },
    "responses": {
      "401Unauthorized": {
        "description": "Authorization information is missing or invalid.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      },
      "403Forbidden": {
        "description": "You do not have permissions for the requested resource. If a scoped API token does not satisfy the endpoint's minimum scope requirements, the response has code insufficient_token_scope and its message lists all minimum required scopes. Broader scopes that include their permissions also satisfy the requirements. Passing this check does not guarantee access to the requested resource or to conditional operations.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      },
      "404NotFound": {
        "description": "Unable to find the requested resource.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      },
      "429RateLimit": {
        "description": "Rate limit has been surpassed.\n\nRate-limited endpoints also return `RateLimit-Limit`, `RateLimit-Remaining`, and\n`RateLimit-Reset` on successful responses so clients can track their remaining quota.\n",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait before retrying the request.",
            "schema": {
              "type": "integer",
              "example": 30
            }
          },
          "RateLimit-Limit": {
            "description": "Maximum number of requests allowed in the current window.",
            "schema": {
              "type": "integer",
              "example": 100
            }
          },
          "RateLimit-Remaining": {
            "description": "Number of requests remaining in the current window. Always `0` for this response.",
            "schema": {
              "type": "integer",
              "example": 0
            }
          },
          "RateLimit-Reset": {
            "description": "Seconds until the current rate limit window resets.",
            "schema": {
              "type": "integer",
              "example": 30
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            },
            "example": {
              "message": "rate limit exceeded"
            }
          }
        }
      },
      "500InternalServerError": {
        "description": "An unexpected server error has occurred.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      },
      "503ServiceUnavailable": {
        "description": "Server currently unavailable.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      }
    }
  }
}
```