Registering a node
In this section, you will learn how to use the client to register a new node with the server.
client.organization.list(fields=['id', 'name'])
client.collaboration.list(fields=['id', 'name'])# A node is associated with both a collaboration and an organization
organization_id = 1
collaboration_id = 1
api_key = client.node.create(collaboration = collaboration_id, organization = organization_id)
print(f"Registered a node for collaboration with id {collaboration_id}, organization with id {organization_id}. The API key that was generated for this node was {api_key}")Last updated
Was this helpful?