Usage
prv directory-attribute:create [options]
Aliases
You can also use these shorthand aliases:prv dratr:create
Options
| Option | Description |
|---|---|
-d, --directory_dimension_id[=<value>] | The ID of the dimension to create the attribute for |
-p, --predecessor_id[=<value>] | The ID of the attribute that is being replaced |
-P, --no_predecessor | If set, will skip the predecessor prompt |
--name[=<value>] | The name of the attribute |
--handle[=<value>] | The handle of the attribute. The name will be used to create the handle if not set |
-e, --expires_after_days[=<value>] | Override the dimension number of days (0-1095) that attributes and associated users will expire after deprecated |
-E, --inherit_expiration | Inherit the dimension default expires_after_days value. If set, will skip the expiration prompt. |
-A, --activate | Set status to active. If not set, record will be staged. |
--api | (Debug) Show the API endpoint and query string in the command header |
Examples
Interactive creation
prv directory-attribute:create
Create with dimension ID
prv directory-attribute:create --directory_dimension_id=drdim_01hq8xyzabc123def456ghi789
Create and activate
prv directory-attribute:create --directory_dimension_id=drdim_01hq8xyzabc123def456ghi789 --name="Marketing" --activate
Create with all options
prv directory-attribute:create --directory_dimension_id=drdim_01hq8xyzabc123def456ghi789 --name="Marketing" --handle=mktg --activate
Create with custom expiration
prv directory-attribute:create --directory_dimension_id=drdim_01hq8xyzabc123def456ghi789 --expires_after_days=60