Skip to content
Hoody.com

Manage collaborators, reactions, and user roles on notebooks. The collaboration surface is split across three resource families:

  • Node collaborators — per-node permissions with roles admin, editor, collaborator, or viewer.
  • Node reactions — emoji reactions attached to nodes on behalf of the current user.
  • Notebook users — membership in the notebook itself, with roles owner, admin, collaborator, guest, or none.

GET /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/collaborators

Section titled “GET /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/collaborators”

Returns all collaborators on a node with their roles and user info.

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook
nodeIdpathstringYesIdentifier of the node
Terminal window
curl -X GET \
https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.icu/api/v1/notes/notebooks/nb_8f3a2c/nodes/node_4d1e9b/collaborators

POST /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/collaborators

Section titled “POST /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/collaborators”

Adds a user as a collaborator on a node with a specified role. Requires admin permission.

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook
nodeIdpathstringYesIdentifier of the node
NameTypeRequiredDescription
collaboratorIdstringYesID of the notebook user to add as a collaborator
rolestringYesOne of admin, editor, collaborator, viewer
Terminal window
curl -X POST \
https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.icu/api/v1/notes/notebooks/nb_8f3a2c/nodes/node_4d1e9b/collaborators \
-H "Content-Type: application/json" \
-d '{
"collaboratorId": "user_d4e5f6",
"role": "editor"
}'

PATCH /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/collaborators/{collaboratorId}

Section titled “PATCH /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/collaborators/{collaboratorId}”

Changes the role of an existing collaborator. Requires admin permission.

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook
nodeIdpathstringYesIdentifier of the node
collaboratorIdpathstringYesIdentifier of the collaborator to update
NameTypeRequiredDescription
rolestringYesOne of admin, editor, collaborator, viewer
Terminal window
curl -X PATCH \
https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.icu/api/v1/notes/notebooks/nb_8f3a2c/nodes/node_4d1e9b/collaborators/user_d4e5f6 \
-H "Content-Type: application/json" \
-d '{
"role": "editor"
}'

DELETE /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/collaborators/{collaboratorId}

Section titled “DELETE /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/collaborators/{collaboratorId}”

Removes a collaborator from a node. Requires admin permission.

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook
nodeIdpathstringYesIdentifier of the node
collaboratorIdpathstringYesIdentifier of the collaborator to remove
Terminal window
curl -X DELETE \
https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.icu/api/v1/notes/notebooks/nb_8f3a2c/nodes/node_4d1e9b/collaborators/user_d4e5f6

GET /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/reactions

Section titled “GET /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/reactions”

Returns all reactions on a node with the collaborator who reacted.

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook
nodeIdpathstringYesIdentifier of the node
Terminal window
curl -X GET \
https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.icu/api/v1/notes/notebooks/nb_8f3a2c/nodes/node_4d1e9b/reactions

POST /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/reactions

Section titled “POST /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/reactions”

Adds an emoji reaction to a node on behalf of the current user.

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook
nodeIdpathstringYesIdentifier of the node
NameTypeRequiredDescription
reactionstringYesThe reaction string (1 to 64 characters)
Terminal window
curl -X POST \
https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.icu/api/v1/notes/notebooks/nb_8f3a2c/nodes/node_4d1e9b/reactions \
-H "Content-Type: application/json" \
-d '{
"reaction": "\ud83d\udc4d"
}'

DELETE /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/reactions/{reaction}

Section titled “DELETE /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/reactions/{reaction}”

Removes an emoji reaction from a node for the current user.

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook
nodeIdpathstringYesIdentifier of the node
reactionpathstringYesThe reaction string to remove
Terminal window
curl -X DELETE \
https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.icu/api/v1/notes/notebooks/nb_8f3a2c/nodes/node_4d1e9b/reactions/%F0%9F%91%8D

POST /api/v1/notes/notebooks/{notebookId}/users

Section titled “POST /api/v1/notes/notebooks/{notebookId}/users”

Creates one or more users in the notebook by username. Returns created users and any per-entry errors.

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook
NameTypeRequiredDescription
usersarrayYesUp to 50 user entries to invite

Each entry in users has the following shape:

NameTypeRequiredDescription
usernamestringYesUsername to add to the notebook
rolestringYesOne of owner, admin, collaborator, guest, none
Terminal window
curl -X POST \
https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.icu/api/v1/notes/notebooks/nb_8f3a2c/users \
-H "Content-Type: application/json" \
-d '{
"users": [
{
"username": "grace",
"role": "admin"
},
{
"username": "linus",
"role": "collaborator"
}
]
}'

PATCH /api/v1/notes/notebooks/{notebookId}/users/{userId}/role

Section titled “PATCH /api/v1/notes/notebooks/{notebookId}/users/{userId}/role”

Changes the notebook role of a user. Requires owner or admin permission.

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook
userIdpathstringYesIdentifier of the user whose role is being changed
NameTypeRequiredDescription
rolestringYesOne of owner, admin, collaborator, guest, none
Terminal window
curl -X PATCH \
https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.icu/api/v1/notes/notebooks/nb_8f3a2c/users/user_g7h8i9/role \
-H "Content-Type: application/json" \
-d '{
"role": "admin"
}'