Coactive · Schema

UpdateUserRolesRequest

Request model for updating user roles. This model is used when modifying a user's role assignments. It allows for updating the complete list of roles and optionally specifying the context where these roles apply. For example, if the "system" context is used, the roles provided will only replace roles at the system level (ex. dataset roles would remain unchanged). If no context is provided, the role provided in the request will replace all roles for the user.

CompanyArtificial IntelligenceMultimodal AIComputer VisionVideo IntelligenceImage SearchContent IntelligenceSemantic SearchContextual AdvertisingMetadataMachine LearningMedia

Properties

Name Type Description
roles array New list of roles to assign to the user
roles_context stringnull Context for the roles to update. This can either be 'system' for system-level roles or 'dataset:{dataset_id}' for dataset-level roles.
View JSON Schema on GitHub

JSON Schema

coactive-update-user-roles-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/coactive/main/json-schema/coactive-update-user-roles-request-schema.json",
  "title": "UpdateUserRolesRequest",
  "description": "Request model for updating user roles.\n\nThis model is used when modifying a user's role assignments. It allows for\nupdating the complete list of roles and optionally specifying the context\nwhere these roles apply. For example, if the \"system\" context is used, the roles\nprovided will only replace roles at the system level (ex. dataset\nroles would remain unchanged). If no context is provided, the role provided in the\nrequest will replace all roles for the user.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coactive-user-management-api-openapi.yml#/components/schemas/UpdateUserRolesRequest",
  "type": "object",
  "properties": {
    "roles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Role"
      },
      "description": "New list of roles to assign to the user"
    },
    "roles_context": {
      "type": [
        "string",
        "null"
      ],
      "description": "Context for the roles to update. This can either be 'system' for system-level roles or 'dataset:{dataset_id}' for dataset-level roles."
    }
  },
  "required": [
    "roles"
  ],
  "$defs": {
    "Role": {
      "type": "object",
      "properties": {
        "role_id": {
          "type": "string",
          "description": "Name of the role (e.g., 'admin', 'editor', 'viewer')"
        },
        "resource": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional resource type the role applies to (e.g., 'dataset')"
        },
        "resource_instance": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional resource instance ID the role applies to"
        }
      },
      "required": [
        "role_id"
      ],
      "description": "Role model for user and client roles",
      "title": "Role"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/coactive-update-user-roles-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.