Go to documentation repository
System objects are added, updated, and deleted by the following commands:
Below is a message that adds the specified user to the specified department, with the specified parameters:
CORE||CREATE_OBJECT|objtype<PERSON>,objid<12341>,parent_id<1>,surname<Tim>,name<Kovac>,card<12362>,facility_code<0>
IIDK will return the following message in response to this command:
CORE||CREATE_OBJECT|card<1234>,objtype<PERSON>,guid_pk<{281A172C-62D2-EA11-A54B-B06EBF811A34}>,facility_code<122>,surname<Tim>,module<iidk_client_test_x64.exe>,time<16:42:53>,parent_id<1>,fraction<797>,date<30-07-20>,name<Kovac>,owner<QA-T49>,SLAVE_id<QA-T49.11>,objid<12341>
This allows receiving the ID of the created object in the objid<> parameter.
If an object is not present in the system, add that object with the UPDATE_OBJECT command (the system must not have an object with a type and ID equal to objtype and objid, respectively).
CORE||UPDATE_OBJECT|objtype<GRABBER>,objid<12>,core_global<0>,parent_id<SLAVAXP>,name<Frame grabber 1>,params<5>,param0_name<format>,param0_val<NTSC>,param1_name<mode>,param1_val<1>,param2_name<chan>,param2_val<2>,param3_name<type>,param3_val<FX 4>,param4_name<resolution>,param4_val<0>
Having received the following message, the system changes the name of an existing object:
CORE||UPDATE_OBJECT|objtype<GRABBER>,objid<12>,core_global<0>,parent_id<SLAVAXP>,name<Card 2>
To delete an object and all of its child objects, use the DELETE_OBJECT command:
CORE||DELETE_OBJECT|objtype<GRABBER>,objid<12>