Grant Requests
Lists grant requests visible to the current user.
Behavior differences:
Group route (
grant_request_group_idpath param): Only returns requests belonging to that group.Standard route with
user=me: Scopes results exclusively to requests created by or assigned to the current user.Standard route without
user=me: Returns all visible requests based on the user's permissions.
Permissions:
Requires either the 'Approve grant request' or 'Create grant request' permission.
When accessed via a group route, the user must have the 'View grant request group' permission on that specific group.
If no explicit page or size are sent in the request body, the search layer applies internal defaults (typically page 0, size 20).
Grant request group ID (required only when accessing from group route)
Filter by current user (use 'me')
Filter by status
Filter by action (e.g., 'approve')
List of grant requests
Unauthorized
Forbidden
Internal Server Error
GET /api/grant_requests HTTP/1.1
Accept: */*
{
"data": [
{
"_embedded": {
"data_structure": {
"external_id": "ds_1",
"id": 1,
"name": "DS",
"type": "table"
},
"group": {
"_embedded": {
"user": {
"full_name": "User Name",
"id": 3,
"user_name": "u"
}
},
"id": 2,
"type": "grant_request_group"
}
},
"dynamic_content": {
"foo": "bar"
},
"filters": {
"status": [
"pending"
]
},
"id": 456,
"inserted_at": "2020-01-01T00:00:00Z",
"metadata": {
"grant_meta": "bar"
},
"status": "pending",
"type": "grant_creation"
}
],
"permissions": [
"approver"
]
}Approves or rejects multiple grant requests in one request.
Requires Approve grant request permission.
Request parameters:
role(required) – approval role (e.g., 'approver').comment(optional) – attached to each approval.is_rejection(optional, defaultfalse) – whentrue, approvals are treated as rejections.Search parameters (
filters,must,query, etc.) select the requests; approve‑view filters are automatically applied.
Approvals are created in batch; individual failures are logged but do not stop the rest. Returns 201 with the list of created approval records.
Optional comment attached to the approval action
Flag that indicates whether the bulk action should be treated as a rejection
falseApproval role
Grant request approvals created
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/grant_requests/bulk_approval HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"comment": "Bulk approval",
"filters": {
"status": [
"pending"
]
},
"is_rejection": false,
"role": "approver"
}{
"data": [
{
"comment": "Bulk approval",
"id": 789,
"inserted_at": "2026-06-16T09:43:18.491754Z",
"is_rejection": false,
"role": "approver"
}
]
}Triggers a full grant-request reindex for the search layer and returns 202 once the reindex is accepted.
Requires administrative privileges (administrator or service account).
Reindexing accepted
No content
Unauthorized
Forbidden
Internal Server Error
GET /api/grant_requests/search/reindex_all HTTP/1.1
Accept: */*
No content
Lists grant request groups available to the current user, optionally filtered by a list of group IDs.
Admins receive the unscoped list. Non-admin users see only groups they own (as target user), have created, or belong to via their user group..
No pagination is available for this endpoint; the full list is returned in a single response.
Comma-separated list of group IDs to filter. When provided, only those specific groups are returned (still subject to visibility permissions)
List of grant request groups
Unauthorized
Internal Server Error
GET /api/grant_request_groups HTTP/1.1
Accept: */*
{
"data": [
{
"_embedded": {
"requests": [
{
"id": 789,
"type": "grant_creation"
}
]
},
"id": 123,
"status": "pending",
"type": "grant_request",
"user_id": 456
}
]
}Lists grant requests visible to the current user.
Behavior differences:
Group route (
grant_request_group_idpath param): Only returns requests belonging to that group.Standard route with
user=me: Scopes results exclusively to requests created by or assigned to the current user.Standard route without
user=me: Returns all visible requests based on the user's permissions.
Permissions:
Requires either the 'Approve grant request' or 'Create grant request' permission.
When accessed via a group route, the user must have the 'View grant request group' permission on that specific group.
If no explicit page or size are sent in the request body, the search layer applies internal defaults (typically page 0, size 20).
Grant request group ID (required only when accessing from group route)
Filter by current user (use 'me')
Filter by status
Filter by action (e.g., 'approve')
List of grant requests
Unauthorized
Forbidden
Internal Server Error
GET /api/grant_request_groups/{grant_request_group_id}/grant_requests HTTP/1.1
Accept: */*
{
"data": [
{
"_embedded": {
"data_structure": {
"external_id": "ds_1",
"id": 1,
"name": "DS",
"type": "table"
},
"group": {
"_embedded": {
"user": {
"full_name": "User Name",
"id": 3,
"user_name": "u"
}
},
"id": 2,
"type": "grant_request_group"
}
},
"dynamic_content": {
"foo": "bar"
},
"filters": {
"status": [
"pending"
]
},
"id": 456,
"inserted_at": "2020-01-01T00:00:00Z",
"metadata": {
"grant_meta": "bar"
},
"status": "pending",
"type": "grant_creation"
}
],
"permissions": [
"approver"
]
}Generates an XLSX file containing grant requests matching the supplied filters.
Permissions: Requires either the 'Approve grant request' or 'Create grant request' permission. The export respects visibility permissions and only includes requests the caller can view.
Request parameters:
header_labels(required) – Map of original field names to custom column labels for the XLSX file.lang(optional) – Locale for translations (status, types, and template fields). Defaults to the application's default language.Search parameters (
filters,must,query, etc.) are forwarded to filter the exported data.Approve‑view specific filters are automatically applied when present in the payload.
page,size,scrollandscroll_idwill be accepted but ignored – The export streams all matching records, disregarding pagination.
Request body for POST /api/grant_requests/xlsx/download.
Mirrors GrantRequestSearchRequest so that the payload sent by the
Manage grant requests view (Search or Approve) can be forwarded
verbatim. Dynamic template fields are not listed here because the
schema depends on the active templates at runtime; the headers for
each dynamic column are returned in the same order produced by the
server, prefixed by the eight fixed columns.
The download always exports every record matching the query, so the
pagination and cursor properties of the search payload (page,
size, scroll, scroll_id) are accepted but ignored.
Locale used to translate the status and request type columns and the template fields. Defaults to the default locale.
esAccepted and ignored.
Accepted and ignored.
Accepted and ignored.
Accepted and ignored. The Approve view filters are applied whenever the payload carries them, as in the search endpoint.
allPossible values: Accepted and ignored.
XLSX file downloaded
No grant requests available for download
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/grant_requests/xlsx/download HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 305
{
"filters": {
"status": [
"pending"
]
},
"header_labels": {
"created_by_full_name": "Created by",
"current_status": "Status",
"domains": "Domains",
"request_type": "Request type",
"structure_external_id": "Structure",
"structure_path": "Path",
"system_name": "System",
"user_full_name": "User"
},
"lang": "en",
"search_by": "approve"
}binaryRetrieves a single grant request by its ID.
Permissions: Requires the 'View grant request' permission on the target record. This permission is automatically granted if:
The user owns the request (is the target user).
The user created the request.
The user belongs to the user group associated with the request.
The user has the 'Approve grant request' permission on the relevant domains or structures.
The response includes embedded resources such as the associated data structure, group, and approval details when available.
Grant request ID
Grant request retrieved
Unauthorized
Forbidden
Internal Server Error
GET /api/grant_requests/{id} HTTP/1.1
Accept: */*
{
"data": {
"_embedded": {
"data_structure": {
"external_id": "ds_1",
"id": 1,
"name": "DS"
}
},
"data_structure_id": 789,
"id": 456,
"status": "pending",
"type": "grant_creation"
}
}Permanently deletes (hard delete) the grant request identified by the given ID. The grant request record is removed from the database immediately.
Requires the 'Delete grant request' permission. Currently, this operation is restricted to administrative users (role admin). Non-admin users will receive a 403 Forbidden response even if they own the request.
Grant request ID
Grant request deleted
No content
Unauthorized
Forbidden
Internal Server Error
DELETE /api/grant_requests/{id} HTTP/1.1
Accept: */*
No content
Returns the available grant-request filter values for the current user and the filtered request.
Requires 'View grants' permission.
Soft‑deleted grant requests are excluded.
No pagination or scrolling is applied; the endpoint returns all available aggregations for the given search context.
If no search filters are provided, the response includes filter values for all visible grant requests.
Page number (0-indexed)
0Search query string
Scroll ID for pagination (e.g., '1m' for 1 minute)
Scroll ID to continue a previous search
Page size
20Available filters
Unauthorized
Internal Server Error
POST /api/grant_requests_filters/search HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 73
{
"filters": {
"status": [
"pending"
]
},
"page": 0,
"query": "user name",
"size": 20
}{
"data": {
"status": [
{
"count": 10,
"key": "pending"
}
],
"type": [
{
"count": 5,
"key": "grant_creation"
}
]
}
}Creates or updates the status of a grant request.
The request can be cancelled either by the user who created the grant request group (ownership), or by a user who has the Approve grant request permission on the associated domains. Non-cancel status updates require the 'Approve grant request' permission.
The optional reason is passed to non-cancel status updates.
Both branches return the updated request with 201.
Grant request ID
Grant request status created
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/grant_requests/{grant_request_id}/status HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"reason": "Request approved",
"status": "approved"
}{
"data": {
"_embedded": {
"approvals": [],
"data_structure": {
"external_id": "ds_1",
"id": 1,
"name": "DS"
},
"group": {
"created_by_id": 123,
"id": 1
}
},
"all_pending_roles": [],
"data_structure_id": 789,
"domain_ids": [
123
],
"dynamic_content": {
"foo": "bar"
},
"filters": {
"status": [
"pending"
]
},
"id": 456,
"inserted_at": "2026-06-16T13:40:56.464111Z",
"metadata": {
"grant_meta": "bar"
},
"pending_roles": [],
"request_type": "grant_access",
"status": "processing",
"status_reason": "Processing the request",
"type": "grant_request",
"updated_at": "2026-06-16T13:40:56.468406Z"
}
}Searches grant requests using the provided criteria and returns only requests visible to the user.
The response includes the total number of matches in x-total-count, optional aggregation filters, per-result approval permissions, and a scroll_id when scroll search is used. page defaults to 0 and size defaults to 20. Sorting is by relevance unless overridden via sort.
Requires 'View grants' permission.
Page number (0-indexed)
0Search query string
Scroll ID for pagination (e.g., '1m' for 1 minute)
Scroll ID to continue a previous search
Page size
20Grant request search response
User permissions for the search results
Scroll ID for pagination
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/grant_requests/search HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 73
{
"filters": {
"status": [
"pending"
]
},
"page": 0,
"query": "user name",
"size": 20
}{
"_permissions": [],
"data": [
{
"created_by": {
"email": "email325",
"full_name": "",
"user_name": "joe"
},
"created_by_id": 666498,
"current_status": "pending",
"data_structure_id": 2735267,
"data_structure_version": {
"data_structure_id": 2735267,
"description": "data_structure_version_description100",
"domain": null,
"external_id": "ds_external_id398",
"metadata": {
"description": "some description"
},
"mutable_metadata": null,
"name": "data_structure_version_name100",
"note": null,
"path": []
},
"domain_ids": [],
"grant": null,
"group_id": 1130,
"id": 48207,
"inserted_at": "2026-06-16T17:13:15.241941Z",
"metadata": {},
"modification_grant_id": null,
"request_type": "grant_access",
"user": {
"email": "email325",
"full_name": "",
"user_name": "joe"
},
"user_id": 666498
}
],
"filters": null,
"scroll_id": null
}Creates an approval record for the selected grant request.
Requires the 'Approve grant request' permission.
Grant request ID
Grant request approval created
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/grant_requests/{grant_request_id}/approvals HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"approval": {
"comment": "Approved",
"role": "approver"
}
}{
"data": {
"_embedded": {
"user": {
"id": 1,
"user_name": "admin"
}
},
"comment": "Approved",
"id": 789,
"inserted_at": "2026-06-16T09:43:18.491754Z",
"is_rejection": false,
"role": "approver"
}
}Last updated