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

# setDinoAiAgentGraph

> Replaces every delegation between the DinoAI agents of the workspace the key targets: a workspace key's own, or the one in the `X-Paradime-Workspace` header. A cycle is refused. Needs `dinoai:admin:write`.



**mutation** `setDinoAiAgentGraph(input: SetDinoAiAgentGraphInput!): SetDinoAiAgentGraphPayload!`

## Arguments

**`input`**: `SetDinoAiAgentGraphInput!` (required)

The delegations.

## Returns

`SetDinoAiAgentGraphPayload!`

**`workspace`**: `Workspace!`

The workspace, with its agents' new delegates.

## Examples

```graphql Mutation
mutation SetDinoAiAgentGraph($input: SetDinoAiAgentGraphInput!) {
  setDinoAiAgentGraph(input: $input) {
    workspace {
      name
      uid
      createdAt
      dbtVersion
      supportedDbtVersions
      dbtPartialParsing
    }
  }
}
```

```json Variables
{
  "input": {
    "edges": [
      {
        "fromSlug": "string",
        "toSlug": "string"
      }
    ]
  }
}
```

```json Response
{
  "data": {
    "setDinoAiAgentGraph": {
      "workspace": {
        "name": "string",
        "uid": "string",
        "createdAt": "value",
        "dbtVersion": "string",
        "supportedDbtVersions": [
          "string"
        ],
        "dbtPartialParsing": true
      }
    }
  }
}
```


## Related topics

- [Administration API: DinoAI](https://docs.paradime.io/developers/graphql-api/admin-api/dinoai.md)
- [DinoAI Programmable Agents API](https://docs.paradime.io/developers/graphql-api/api-reference/dinoai-programmable-agents-api.md)
- [Automate with AI agents](https://docs.paradime.io/guides/programmable-agents/index.md)
- [Set up DinoAI Code Review](https://docs.paradime.io/guides/programmable-agents/set-up-dinoai-code-review.md)
- [Admin client: DinoAI](https://docs.paradime.io/developers/python-sdk/modules/admin/dinoai.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.