Managed API for monday.com is an API Client for monday.com by Adaptavist primarily designed for the use in ScriptRunner Connect. You can read more about Managed APIs here.
This is a runtime agnostic version of the Managed API (with core
suffix) that makes it easy to port it to any runtime you may want to use this Managed API on.
-
Board
-
Column
-
File
-
Item
-
ItemsPage
-
Me
-
Notification
-
Team
-
User
-
Workspace
-
Folder
-
Update
-
Doc
-
Tag
-
Version
-
Webhook
While the primary reason for creating Managed APIs was to use them in ScriptRunner Connect runtime, then you can easily port them to any runtime of your choosing.
You can do so by extending the *Core
Managed API class where you'll be asked to provide implementation for getPlatformImplementation
function. In this implementation you have yo specify how to perform buffer encoding/decoding operations and how to perform HTTP calls:
{
buffer: {
encode(input: string): ArrayBuffer;
decode(input: ArrayBuffer): string;
},
performHttpCall(request: Request): Promise<Response>
}
Here is an example how to create a Node port of the Managed API:
import { MondayApiCore } from "@managed-api/monday-core";
import { PlatformImplementation, Request, Response, Headers } from "@managed-api/commons-core";
import fetch from "node-fetch";
export class MondayApi extends MondayApiCore {
constructor(private baseUrl: string, private authToken: string) {
super();
}
protected getPlatformImplementation(): PlatformImplementation {
return {
buffer: {
encode: (input) => Buffer.from(input, 'utf-8'),
decode: (input) => Buffer.from(input).toString('utf-8')
},
performHttpCall: (request) => this.performHttpCall(request)
};
}
private async performHttpCall(request: Request): Promise<Response> {
const requestUrl = `${this.baseUrl}${request.url}`; // Substitute base URL
request.headers.set('Authorization', `Basic ${this.authToken}`); // Substitute auth token
const response = await fetch(requestUrl, {
method: request.method,
headers: request.headers as any,
body: request.method.toLowerCase() !== 'get' ? Buffer.from((await request.arrayBuffer()) ?? new ArrayBuffer(0)) : undefined
});
const apiHeaders = new Headers();
response.headers.forEach((value, key) => apiHeaders.append(key, value));
const body = await response.arrayBuffer();
return super.buildResponse(response.url, response.status, response.statusText, apiHeaders, body);
}
}
Please note that the authentication handling details may not be accurate and serve as an example. If you wish yo use these Managed APIs without having to concern yourself how to deal with and secure authentication details when working with APIs, then feel free to evaluate ScriptRunner Connect platform.
At this time Managed APIs are unlicensed and close sourced, but feel free to drop an email to eknoll@adaptavist.com for ideas, suggestions and improvements.
-
-
addUsersToTeam that can be used as
Team.addUsersToTeam
orAll.addUsersToTeam
. -
removeUsersFromTeam that can be used as
Team.removeUsersFromTeam
orAll.removeUsersFromTeam
.
-
addUsersToTeam that can be used as
-
-
updateWorkspace that can be used as
Workspace.updateWorkspace
orAll.updateWorkspace
-
updateWorkspace that can be used as
- Support
voters
field in VoteValue fragment.
- Support for
group_color
argument in createGroup.
- Support version 2024-04 of Monday API.
- Support
url
field in boards and items.
-
-
deleteTeamsFromBoard that can be used as
Team.deleteTeamsFromBoard
orAll.deleteTeamsFromBoard
.
-
deleteTeamsFromBoard that can be used as
- Implement remaining column value fragments.
- Fixing response objects for ItemsPage.getItemsPage.
- Allow access to
__typename
field in returned GraphQL objects.
- Fix issue with
items_page
managed API preventing Monday from acceptingquery_params
arguments.
- Support for StatusValue and TimelineValue fragments.
- Support for complexity queries to monitor the cost of each operation you make
- Using api version 2023-10 as default. Removing support for 2023-07
-
-
getFolders that can be used as
Folder.getFolders
orAll.getFolders
-
createFolder that can be used as
Folder.createFolder
orAll.createFolder
-
updateFolder that can be used as
Folder.updateFolder
orAll.updateFolder
-
deleteFolder that can be used as
Folder.deleteFolder
orAll.deleteFolder
-
getFolders that can be used as
- Converted all enum types to union types, for easier autocompletion suggestions
-
-
getWebhooks that can be used as
Webhook.getWebhooks
orAll.getWebhooks
-
createWebhook that can be used as
Webhook.createWebhook
orAll.createWebhook
-
deleteWebhook that can be used as
Webhook.deleteWebhook
orAll.deleteWebhook
-
getWebhooks that can be used as
-
-
getVersion that can be used as
Version.getVersion
orAll.getVersion
-
getVersions that can be used as
Version.getVersions
orAll.getVersions
-
getVersion that can be used as
-
-
getTags that can be used as
Tag.getTags
orAll.getTags
-
getTags that can be used as
Board.Tag.getTags
-
createOrGetTag that can be used as
Tag.createOrGetTag
orAll.createOrGetTag
-
getTags that can be used as
-
-
getDocBlocks that can be used as
Doc.DocBlock.getDocBlocks
orAll.getDocBlocks
-
createDocBlock that can be used as
Doc.DocBlock.createDocBlock
orAll.createDocBlock
-
updateDocBlock that can be used as
Doc.DocBlock.updateDocBlock
orAll.updateDocBlock
-
deleteDocBlock that can be used as
Doc.DocBlock.deleteDocBlock
orAll.deleteDocBlock
-
getDocBlocks that can be used as
-
-
getItemsPage that can be used as
Board.ItemsPage.getItemsPage
orAll.getItemsPage
-
getNextItemsPage that can be used as
Board.getNextItemsPage
orAll.getNextItemsPage
-
getItemsPageByColumnValues that can be used as
Board.getItemsPageByColumnValues
orAll.getItemsPageByColumnValues
-
getItemsPage that can be used as
-
-
getTeams that can be used as
Team.getTeams
orAll.getTeams
-
addTeamsToBoard that can be used as
Team.addTeamsToBoard
orAll.addTeamsToBoard
-
addTeamsToWorkspace that can be used as
Team.addTeamsToWorkspace
orAll.addTeamsToWorkspace
-
deleteTeamsFromWorkspace that can be used as
Team.deleteTeamsFromWorkspace
orAll.deleteTeamsFromWorkspace
-
getTeams that can be used as
-
-
getUpdates that can be used as
Update.getUpdates
orAll.getUpdates
. -
createUpdate that can be used as
Update.createUpdate
orAll.createUpdate
. -
likeUpdate that can be used as
Update.likeUpdate
orAll.likeUpdate
. -
deleteUpdate that can be used as
Update.deleteUpdate
orAll.deleteUpdate
.
-
getUpdates that can be used as
-
-
moveItemToBoard that can be used as
Item.moveItemToBoard
orAll.moveItemToBoard
.
-
moveItemToBoard that can be used as
-
-
updateGroup that can be used as
Board.Group.updateGroup
orAll.updateGroup
. -
archiveGroup that can be used as
Board.Group.archiveGroup
orAll.archiveGroup
. -
duplicateGroup that can be used as
Board.Group.duplicateGroup
orAll.duplicateGroup
. -
deleteGroup that can be used as
Board.Group.deleteGroup
orAll.deleteGroup
.
-
updateGroup that can be used as
-
-
createGroup that can be used as
Board.Group.createGroup
orAll.createGroup
.
-
createGroup that can be used as
-
-
createWorkspace that can be used as
Workspace.createWorkspace
orAll.createWorkspace
. -
deleteWorkspace that can be used as
Workspace.deleteWorkspace
orAll.deleteWorkspace
. -
getWorkspaces that can be used as
Workspace.getWorkspaces
orAll.getWorkspaces
.
-
createWorkspace that can be used as
-
-
createNotification that can be used as
Notification.createNotification
orAll.createNotification
.
-
createNotification that can be used as
- Changed type from
number[]
tostring[]
ofids
field ingroups
arguments for Board fields.
-
-
changeColumnMetadata that can be used as
Column.changeColumnMetadata
orAll.changeColumnMetadata
. -
changeColumnTitle that can be used as
Column.changeColumnTitle
orAll.changeColumnTitle
. -
changeColumnValue that can be used as
Column.changeColumnValue
orAll.changeColumnValue
. -
changeMultipleColumnValues that can be used as
Column.changeMultipleColumnValues
orAll.changeMultipleColumnValues
. -
changeSimpleColumnValue that can be used as
Column.changeSimpleColumnValue
orAll.changeSimpleColumnValue
. -
createColumn that can be used as
Column.createColumn
orAll.createColumn
. -
deleteColumn that can be used as
Column.deleteColumn
orAll.deleteColumn
.
-
changeColumnMetadata that can be used as
-
-
archiveBoard that can be used as
Board.archiveBoard
orAll.archiveBoard
. -
createBoard that can be used as
Board.createBoard
orAll.createBoard
. -
deleteBoard that can be used as
Board.deleteBoard
orAll.deleteBoard
. -
deleteSubscribersFromBoard that can be used as
Board.deleteSubscribersFromBoard
orAll.deleteSubscribersFromBoard
. -
duplicateBoard that can be used as
Board.duplicateBoard
orAll.duplicateBoard
. -
getBoards that can be used as
Board.getBoards
orAll.getBoards
. -
updateBoard that can be used as
Board.updateBoard
orAll.updateBoard
.
-
archiveBoard that can be used as
-
-
getViews that can be used as
Board.View.getViews
orAll.getBoardViews
.
-
getViews that can be used as
-
-
addFileToColumn that can be used as
File.addFileToColumn
orAll.addFileToColumn
. -
addFileToUpdate that can be used as
File.addFileToUpdate
orAll.addFileToUpdate
. -
getAssets that can be used as
File.getAssets
orAll.getAssets
.
-
addFileToColumn that can be used as
-
-
archiveItem that can be used as
Item.archiveItem
orAll.archiveItem
. -
clearUpdates that can be used as
Item.clearUpdates
orAll.clearItemUpdates
. -
createItem that can be used as
Item.createItem
orAll.createItem
. -
deleteItem that can be used as
Item.deleteItem
orAll.deleteItem
. -
duplicateItem that can be used as
Item.duplicateItem
orAll.duplicateItem
. -
getItems that can be used as
Item.getItems
orAll.getItems
. -
moveItemToGroup that can be used as
Item.moveItemToGroup
orAll.moveItemToGroup
.
-
archiveItem that can be used as
-
-
createSubitem that can be used as
Item.Subitem.createSubitem
orAll.createSubitem
. -
getSubitems that can be used as
Item.Subitem.getSubitems
orAll.getSubitems
.
-
createSubitem that can be used as
-
-
getUserDetails that can be used as
Me.getUserDetails
orAll.getUserDetails
.
-
getUserDetails that can be used as
-
-
addUsersToBoard that can be used as
User.addUsersToBoard
orAll.addUsersToBoard
. -
addUsersToWorkspace that can be used as
User.addUsersToWorkspace
orAll.addUsersToWorkspace
. -
deleteUsersFromWorkspace that can be used as
User.deleteUsersFromWorkspace
orAll.deleteUsersFromWorkspace
. -
getUsers that can be used as
User.getUsers
orAll.getUsers
.
-
addUsersToBoard that can be used as
Copyright Adaptavist 2023 (c) All rights reserved