This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sidebar:remoteapi:apiref:core:create_unit [29/11/2013 12:31] 127.0.0.1 external edit |
en:sidebar:remoteapi:apiref:core:create_unit [25/02/2020 08:15] (current) chdi [Parameters] |
||
---|---|---|---|
Line 7: | Line 7: | ||
"name":<text>, | "name":<text>, | ||
"hwTypeId":<long>, | "hwTypeId":<long>, | ||
- | "dataFlags":<uint>} | + | "dataFlags":<long>} |
</code> | </code> | ||
Line 16: | Line 16: | ||
| creatorId | ID of a user who will be assigned a creator for a new unit | | | creatorId | ID of a user who will be assigned a creator for a new unit | | ||
| name | new unit name (at least 4 characters) | | | name | new unit name (at least 4 characters) | | ||
- | | hwTypeId | device (hardware) ID | | + | | hwTypeId | device [[en:sidebar:remoteapi:apiref:core:get_hw_types|(hardware) ID]] | |
| dataFlags | data flags for the response (see [[../format/unit|Data format: Units]])| | | dataFlags | data flags for the response (see [[../format/unit|Data format: Units]])| | ||
Line 25: | Line 25: | ||
... | ... | ||
}, | }, | ||
- | "flags":<unit> /* applied data flags */ | + | "flags":<uint> /* applied data flags */ |
} | } | ||
</code> | </code> | ||
You can find the format of “item” in the chapter [[../format/unit|Data format: Units]]. | You can find the format of “item” in the chapter [[../format/unit|Data format: Units]]. |
|