Pin graph nodes to a session
POST
/v1/session/{nameOrId}/pin
const url = 'http://localhost:8090/v1/session/example/pin';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"nodeIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8090/v1/session/example/pin \ --header 'Content-Type: application/json' \ --data '{ "nodeIds": [ "example" ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”nameOrId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
nodeIds
required
Array<string>
Example generated
{ "nodeIds": [ "example" ]}Responses
Section titled “Responses”How many nodes were pinned
Media typeapplication/json
object
status
string
count
integer
Example
{ "status": "pinned"}