Colrows (0.9.3)

Download OpenAPI specification :Download

User Auth

Login

authentication user if the provided credentials are valid.

Authorizations:
noauthAuth
Request Body schema: application/json
userName
string

The username of the user.

pwd
string <password >

The password of the user.

Responses

Request samples

Content type
application/json
{
  • "userName": "admin",
  • "pwd": "colrows"
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

Refresh authentication token

Returns a new authentication token if the provided bearer token is valid and not expired.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

User Management

Create User

Create new user in Native realm.

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db
Request Body schema: application/json
name
required
string

The full name of the new user.

username
required
string

The username for the new user.

secret
required
string

The password or secret for the new user.

email
required
string <email >

The email address of the new user.

Responses

Request samples

Content type
application/json
{
  • "name": "Test User",
  • "username": "TestUser",
  • "secret": "Password",
  • "email": "test@email.com"
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

List User

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": [
    ]
}

Update User

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db
Request Body schema: application/json
name
string

The updated name of the user.

userId
required
string

The unique ID of the user to be updated.

email
string <email >

The updated email address of the user.

Responses

Request samples

Content type
application/json
{
  • "name": "New User",
  • "userId": "TestUser",
  • "email": "test@email.com"
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

Delete User

Authorizations:
bearerAuth
path Parameters
userId
required
string

The ID of the user to deactivate

header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": "OPERATION_SUCCESSFUL"
}

User Group Management

Create UserGroup

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db
Request Body schema: application/json
groupName
string

The name of the group to create

memberIds
Array of strings <email >

List of member email IDs to add to the group

Responses

Request samples

Content type
application/json
{
  • "groupName": "TestGroupLeads",
  • "memberIds": [
    ]
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

Update UserGroup

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db
Request Body schema: application/json
groupId
string

The unique identifier of the group to update

groupName
string

The name of the group to update

memberIds
Array of strings <email >

List of member email IDs to update the group with

Responses

Request samples

Content type
application/json
{
  • "groupId": "test",
  • "groupName": "TestGroupLeads",
  • "memberIds": [
    ]
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

get UserGroup

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": [
    ]
}

Deactivate UserGroup

Authorizations:
bearerAuth
path Parameters
userGroupId
required
string
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

Access Policy Management

Create Access Role - Class Type

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db
Request Body schema: application/json
datasourceId
string <uuid >

Unique identifier for the data source

type
string

Type of the classification

name
string

Name of the classification

schema
string

Schema of the data source

Array of objects

List of permissions for the data source

Array of objects

List of users associated with the data source

Array of objects

List of groups associated with the data source

Responses

Request samples

Content type
application/json
{
  • "datasourceId": "b83d0bb2-4166-492d-9217-def7882a514b",
  • "type": "CLASS",
  • "name": "class-test",
  • "schema": "banking_system",
  • "permissions": [
    ],
  • "users": [
    ],
  • "groups": [
    ]
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

Update Fixed Access Role Copy

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db
Request Body schema: application/json
id
string <uuid >

Unique identifier for the data source classification

datasourceId
string

Identifier for the data source

type
string

Type of the classification

name
string

Name of the classification

schema
string

Schema of the data source

Array of objects

List of permissions for the data source

Array of objects

List of users associated with the data source

Array of objects

List of groups associated with the data source

Responses

Request samples

Content type
application/json
{
  • "id": "0e47911b-576b-4221-8079-a230a3060ee5",
  • "datasourceId": "test",
  • "type": "FIXED",
  • "name": "Banker Fixed Permissions",
  • "schema": "banking_system",
  • "permissions": [
    ],
  • "users": [
    ],
  • "groups": [
    ]
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

Get All versions of Specific Access Policy Copy

Authorizations:
bearerAuth
path Parameters
policyId
required
string

The ID of the policy

header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": [
    ]
}

Get specific versions of Specific Access Policy Copy

Authorizations:
bearerAuth
path Parameters
policyId
required
string

The ID of the policy

versionId
required
string

The ID of the policy

header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": [
    ]
}

get All AccessRoles - including active & inactive Copy

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": [
    ]
}

Delete Access Role Copy

Authorizations:
bearerAuth
path Parameters
policyId
required
string

The ID of the policy

header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "code": "UNAUTHORIZED",
  • "message": "Invalid or expired token"
}

Redaction Policy Management

Create RedactionRole

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db
Request Body schema: application/json
datasourceId
required
string <uuid >

Unique identifier of the data source

name
required
string

Name of the classification

schema
required
string

Schema of the data source

type
required
string

Type of the classification (e.g., FIXED, REGEX)

required
Array of objects

List of models associated with this classification

Array of objects

List of users associated with this classification

Array of objects

List of groups associated with this classification

Responses

Request samples

Content type
application/json
{
  • "datasourceId": "datasource-id",
  • "name": "redaction-fixed-role1",
  • "schema": "employees",
  • "type": "FIXED",
  • "models": [
    ],
  • "users": [
    ],
  • "groups": [
    ]
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

Update RedactionRole

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db
Request Body schema: application/json
id
required
string <uuid >

Unique identifier of the redaction role.

datasourceId
required
string <uuid >

Unique identifier of the associated datasource.

name
required
string

Name of the redaction role.

schema
required
string

Schema associated with the redaction role.

type
required
string

Type of redaction role.

required
Array of objects

List of models associated with the redaction role.

required
Array of objects

List of users with access to the redaction role.

required
Array of objects

List of groups with access to the redaction role.

Responses

Request samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "datasourceId": "f54dd925-2599-432c-9567-403230bdafed",
  • "name": "string",
  • "schema": "string",
  • "type": "string",
  • "models": [
    ],
  • "users": [
    ],
  • "groups": [
    ]
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

GET RedactionRole

Authorizations:
bearerAuth
path Parameters
redactionPolicyId
required
string
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": [
    ]
}

DELETE RedactionRole

Authorizations:
bearerAuth
path Parameters
redactionPolicyId
required
string
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "code": "UNAUTHORIZED",
  • "message": "Invalid or expired token"
}

GET RedactionRole ALL

Authorizations:
bearerAuth
header Parameters
Authorization
string
Example: Basic 89de0d91-fdff-40b2-8330-7799d972f9db

Responses

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": [
    ]
}

Permissions API

Evaluate Permissions to execute query.

This endpoint allows you to evaluate if user is allowed to execute given query on given datasource.

Request Body schema: application/json
datasourceId
required
string <uuid >

The unique identifier for the datasource.

userId
required
string

The ID of the user to evaluate the query for.

query
required
string

The SQL query to be executed.

Responses

Request samples

Content type
application/json
{
  • "datasourceId": "0dfea9a8-035a-4b1d-aec3-88b448694851",
  • "userId": "user1",
  • "query": "select * from banking.accounts"
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}

Evaluate Permissions to execute relation.

This endpoint allows you to evaluate if user is allowed to access specified column of the given table

Request Body schema: application/json
datasourceId
required
string <uuid >

The unique identifier for the datasource.

userId
required
string

The ID of the user to evaluate the query for.

schema
required
string

The schema within which the relation exists.

relation
required
string

The name of the relation (table) to be queried.

columns
required
Array of strings

A list of columns to be selected from the relation.

Responses

Request samples

Content type
application/json
{
  • "datasourceId": "0dfea9a8-035a-4b1d-aec3-88b448694851",
  • "userId": "admin",
  • "schema": "banking",
  • "relation": "accounts",
  • "columns": [
    ]
}

Response samples

Content type
application/json
{
  • "header": {
    },
  • "payload": {
    }
}