pub struct PermissionUpdate {
pub auth_id: i64,
pub data_id: Option<Option<Vec<i64>>>,
pub is_inherited: Option<bool>,
pub reason: Option<Option<String>>,
pub type: Option<String>,
pub extra: Map<String, Value>,
}Expand description
Add or update stored assignment rows. This is not full replacement of the owner’s permissions. Path parameters identify the source owner.
Fields§
§auth_id: i64Permission ID. status and person require values below 10000. Role domains also accept internal permission IDs. 10127 is obsolete and returns 410.
data_id: Option<Option<Vec<i64>>>Selections to add/update. Omission, null or [] writes a null-data row, normally used for boolean permissions. Use [-1] for unrestricted selection access. Existing other selections remain. If a -1 row already exists for this key/inheritance mode, any nonempty request currently returns without changing rows, type or reason.
None leaves the field out, Some(None) sends null.
is_inherited: Option<bool>Select inherited-source rows when true, otherwise direct rows. Only role domains allow true.
reason: Option<Option<String>>Trimmed optional explanation. Empty/whitespace input becomes null. No maximum length is validated by the controller.
None leaves the field out, Some(None) sends null.
type: Option<String>Grant a permission, or revoke a contribution for a concrete group_role. revoke is rejected for all other source domains.
Allowed values: grant, revoke.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.