Dokumentacja dla programistów
Nowe pole kontekstu SDK: `mondayCodeHostingURL`
Ten artykuł zniknął z dokumentacji monday.com 2026-09-22. Zostawiamy go, bo wciąż bywa szukany - ale może opisywać stan sprzed zmiany.
Aplikacje hostowane w monday code mogą pobierać przypisany do regionu adres hostingu bezpośrednio z kontekstu aplikacji za pomocą SDK.
Wywołaj monday.listen('context') lub monday.get('context') i sprawdź, czy w zwróconym kontekście znajduje się nowe pole mondayCodeHostingUrl:
Sample context
{
"theme": "dark", // or "light" or "black"
"subscription": { // app subscription object for marketplace app
"plan_id": "5",
"renewal_date": "2023-07-10T00:00:00+00:00",
"is_trial": false,
"billing_period": "monthly",
"days_left": 14,
"pricing_version": 5,
"max_units": 100 // maximum number of seats allowed for seat-based plans, null for feature-based plans
},
"account": {
"id": "654646" // unique account ID
},
"user": {
"id": "65464", // unique user ID
"isAdmin": false, // or true
"isGuest": false, // or true
"isViewOnly": false, // or true
"countryCode": "IL", // user's two-letter country code
"currentLanguage": "en", // user's default language
"timeFormat": "24H", // or "12H"
"timeZoneOffset": 3 // time zone offset based on GMT
},
"region": "use1", // availability zone ID
"productKind": "core",
"app": {
"id": 64541082, // unique app ID
"clientId": "d5be5bbc7re646g76b9988a6ad64d780" // unique client ID
},
"appVersion": {
"id": 6458043, // unique app version ID
"name": "New App", // name of the app's current version
"status": "draft", // or "live"
"type": "major", // or "minor"
"versionData": {
"major": 1, // version number
"minor": 0, // version number
"patch": 0, // patch number
"type": "major" // or "minor"
},
"mondayCodeHostingUrl": "https://b325b-service-25854030-b5796b91.us.monday.app" // used only for monday code apps; specifies the region-based hosting URL for server-side code
},
"workspaceId": 1350535, // unique workspace ID
"boardId": 6456619824, // unique board ID
"boardIds": [
6454619824 // list of connected boards
],
"itemId": 64564519872, // unique item ID
"instanceId": 65461164, // unique instance ID for the feature on the board
"instanceType": "item_view" // feature type
}
Mam problem z tym tematem
Źródło: developer.monday.com (strona może już nie istnieć)