---
updatedAt: 2026-09-21T10:34:49.000Z
agentTools:
  projectIndex: https://developers.marq.com/llms.txt
---

# Update dataset grant

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "data-services",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://data.app.marq.com/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/sourceGrants/{grantId}": {
      "put": {
        "summary": "Update data source grant",
        "description": "",
        "operationId": "update-data-source-grant",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json;v=1.0"
            }
          },
          {
            "name": "grantId",
            "in": "path",
            "description": "The ID of the grant associated with the data source.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "dataSource",
                  "permissionType",
                  "identifier",
                  "role"
                ],
                "properties": {
                  "dataSource": {
                    "type": "string",
                    "description": "The datasource link associated to the grant.",
                    "default": "https://data.app.marq.com/dataSources/713032"
                  },
                  "permissionType": {
                    "type": "string",
                    "default": "user",
                    "enum": [
                      "user",
                      "account",
                      "project"
                    ]
                  },
                  "identifier": {
                    "type": "string",
                    "default": "117781559"
                  },
                  "role": {
                    "type": "string",
                    "default": "edit"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```