> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oasm.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Update asset group workflow relationship

> Updates the relationship between an asset group and workflow, primarily to change the schedule.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/asset-group/workflows/{id}
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/asset-group/workflows/{id}:
    patch:
      tags:
        - Asset Group
      summary: Update asset group workflow relationship
      description: >-
        Updates the relationship between an asset group and workflow, primarily
        to change the schedule.
      operationId: AssetGroupController_updateAssetGroupWorkflow
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAssetGroupWorkflowDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetGroupWorkflow'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    UpdateAssetGroupWorkflowDto:
      type: object
      properties:
        schedule:
          type: string
          enum:
            - disabled
            - 0 0 * * *
            - 0 0 */3 * *
            - 0 0 * * 0
            - 0 0 */14 * *
            - 0 0 1 * *
      required:
        - schedule
    AssetGroupWorkflow:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        assetGroup:
          type: object
        workflow:
          type: object
        schedule:
          type: string
          enum:
            - disabled
            - 0 0 * * *
            - 0 0 */3 * *
            - 0 0 * * 0
            - 0 0 */14 * *
            - 0 0 1 * *
      required:
        - id
        - createdAt
        - updatedAt
        - assetGroup
        - workflow
        - schedule

````