grant-requests

POST /api/grant-requests/exemption/{id}/decision

Changed on

Approve or deny a pending request, once, with a comment for the organization. Approval applies the request in the same transaction: the grant, slot, transfer or exemption is created then, or the decision fails and the request stays pending.

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Path parameters

idinteger required

Request body

status'approved' | 'denied' required
  • approved - Approved
  • denied - Denied
adminCommentstring required

Shown to the organization. Required, also for approvals.

Response

idinteger required
organizationinteger required
organizationNamestring required
requestedByinteger required
requestedByNamestring required
grantinteger required
grantStarttimestring date-time required
grantEndtimestring date-time required
messagestring

What the organization wants Frikanalen to know.

status'pending' | 'approved' | 'denied' required
  • pending - Pending
  • approved - Approved
  • denied - Denied
reviewedByinteger nullable required
adminCommentstring required
createdAtstring date-time required
reviewedAtstring date-time nullable required

Changes