action traccar_post_permissions { label: "Link an Object to another Object" provider: traccar method: POST path: "/permissions" encoding: json input: { type: "object" description: "This is a permission map that contain two object indexes. It is used to link/unlink objects. Order is important. Example: { deviceId:8, geofenceId: 16 }" properties: { attributeId: { type: "integer" description: "Computed Attribute Id, can be second parameter only" } calendarId: { type: "integer" description: "Calendar Id, can be second parameter only and only in combination with userId" } deviceId: { type: "integer" description: "Device Id, can be first parameter or second only in combination with userId" } driverId: { type: "integer" description: "Driver Id, can be second parameter only" } geofenceId: { type: "integer" description: "Geofence Id, can be second parameter only" } groupId: { type: "integer" description: "Group Id, can be first parameter or second only in combination with userId" } managedUserId: { type: "integer" description: "User Id, can be second parameter only and only in combination with userId" } notificationId: { type: "integer" description: "Notification Id, can be second parameter only" } userId: { type: "integer" description: "User Id, can be only first parameter" } } } output: { type: "object" description: "This is a permission map that contain two object indexes. It is used to link/unlink objects. Order is important. Example: { deviceId:8, geofenceId: 16 }" properties: { attributeId: { type: "integer" description: "Computed Attribute Id, can be second parameter only" } calendarId: { type: "integer" description: "Calendar Id, can be second parameter only and only in combination with userId" } deviceId: { type: "integer" description: "Device Id, can be first parameter or second only in combination with userId" } driverId: { type: "integer" description: "Driver Id, can be second parameter only" } geofenceId: { type: "integer" description: "Geofence Id, can be second parameter only" } groupId: { type: "integer" description: "Group Id, can be first parameter or second only in combination with userId" } managedUserId: { type: "integer" description: "User Id, can be second parameter only and only in combination with userId" } notificationId: { type: "integer" description: "Notification Id, can be second parameter only" } userId: { type: "integer" description: "User Id, can be only first parameter" } } } }