> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Change Workflow Permissions

> Updates the permissions for a workflow model



## OpenAPI

````yaml /openapi/product/workflows-api.yaml post /models/{modelId}/permissions
openapi: 3.0.3
info:
  title: Domo Workflows Product API
  description: >
    API for interacting with Domo Workflows from external Domo instances,
    environments outside of Domo, or scripts running in Domo's Jupyter
    Workspaces.


    For authentication details, please refer to the Product APIs authentication
    overview.

    For more information about Workflows, check the Domo Knowledge Base.
  version: 1.0.0
  contact:
    name: Domo Support
    url: https://www.domo.com
servers:
  - url: https://{instance}.domo.com
    description: Domo Workflow API
    variables:
      instance:
        default: your-instance
        description: Your Domo instance name
security:
  - DeveloperToken: []
tags:
  - name: Workflow Instances
    description: Operations for managing workflow instances
  - name: Workflow Models
    description: Operations for managing workflow models and permissions
paths:
  /models/{modelId}/permissions:
    post:
      tags:
        - Workflows API (Product)
      summary: Change Workflow Permissions
      description: Updates the permissions for a workflow model
      operationId: updateWorkflowPermissions
      parameters:
        - name: modelId
          in: path
          required: true
          description: The ID of the workflow model
          schema:
            type: string
          example: a8afdc89-9491-4ee4-b7c3-b9e9b86c0138
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/PermissionEntry'
            example:
              - id: '123456'
                permissions:
                  - ADMIN
                  - SHARE
                  - DELETE
                  - WRITE
                  - READ
                  - EXPORT
                  - EXECUTE
                  - UPDATE_CONTENT
                name: John Doe
                type: USER
              - id: '98765'
                name: John Smith
                type: USER
                permissions:
                  - READ
      responses:
        '200':
          description: Permissions updated successfully
        '400':
          description: Bad request - Invalid permissions data
        '401':
          description: Unauthorized - Invalid or missing authentication token
        '403':
          description: Forbidden - Insufficient permissions to modify workflow
        '404':
          description: Workflow model not found
components:
  schemas:
    PermissionEntry:
      type: object
      required:
        - id
        - type
        - permissions
      properties:
        id:
          type: string
          description: User or group ID
          example: '123456'
        name:
          type: string
          description: Name of the user or group
          example: John Doe
        type:
          type: string
          description: Type of entity
          enum:
            - USER
            - GROUP
          example: USER
        permissions:
          type: array
          description: Array of permissions to grant
          items:
            type: string
            enum:
              - ADMIN
              - SHARE
              - DELETE
              - WRITE
              - READ
              - EXPORT
              - EXECUTE
              - UPDATE_CONTENT
          example:
            - ADMIN
            - READ
            - EXECUTE
  securitySchemes:
    DeveloperToken:
      type: apiKey
      in: header
      name: X-DOMO-Developer-Token
      description: Domo Developer Token for authentication

````