Summary
          Replaces a workflow document.
          Description
          Replaces a workflow document.
          Route
          PUT /automation-studio/automations/:id
          Roles
          
            admin
apiwrite
designer
          
          Parameters
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Required | Description | 
            
            
              
    | id | string | yes | Workflow id. | 
    | update | object | yes | Complete workflow definition to replace the existing workflow document with. | 
            
          
          
          
            Copied to Clipboard
            
            {
  "type": "object",
  "properties": {
    "update": {
      "title": "update",
      "description": "Complete workflow definition to replace the existing workflow document with.",
      "$ref": "automationUpdate"
    }
  },
  "required": [
    "update"
  ],
  "additionalProperties": false
}
           
          Return
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Description | 
            
            
              
                | response | object | Response object. | 
            
          
          
            Copied to Clipboard
            
            {
  "edit": "laborum elit minim fugiat"
}
           
          
            Copied to Clipboard
            
            {
  "title": "response",
  "type": "object",
  "properties": {
    "updated": {
      "description": "Workflow document after applying the update.",
      "$ref": "automation"
    },
    "edit": {
      "type": "string",
      "description": "URI to the edit page for the updated workflow."
    }
  },
  "required": [
    "updated",
    "edit"
  ]
}