Assuming the default setup (http port for zero is at 6080), this command will reserve a 100 uids for you:
http://localhost:6080/assign?what=uids&num=100
The response to this request might look something like this:
| startId | “115” |
|---|---|
| endId | “214” |
This means that the uids from 0x73 to 0xd6 are reserved for you. We can use one of the reserved UIDs as below. This was fired from ratel directly after reserving uids.
{
set{
<0x73> <name> "A reserved UID" .
}
}
You can then query to confirm as below:
Query:
{
query(func: uid(<0x73>)){
uid
name
}
}
Response:
"data": {
"query": [
{
"uid": "0x73",
"name": "A reserved UID"
}
]
}