Modify a Policy Name
Overwrite the name of the specified policy with the new name.
Property | Location | Details |
AccessKey string
Required
Unique | Header | The access key for your user account. This value is a 36-character GUID provided in your user profile. |
PolicyName string
Required
Unique | URL | The existing name of the policy. This value has a max length of 128 ASCII characters. This value must adhere to this regular expression: ^[a-zA-Z0-9-_,. ]*$ |
Id ulong
Unique | Body Response | The ID assigned to the newly created Policy. This value is generated by Jetstream – do not define it in requests. |
Name string
Required
Unique | Body Request Response | The name of the policy. This value has a max length of 128 ASCII characters. This value must adhere to this regular expression: ^[a-zA-Z0-9-_,. ]*$ |
DeviceDefinition string | Body Response | The name of the device definition associated with the policy. This value is one of the device definitions retrieved by the Get All Device Definitions request. This value has a max length of 128 ASCII characters. This value must adhere to this regular expression: ^[a-zA-Z0-9-_,. ]*$ |
Parameters dictionary(string,string) | Body Response | The parameters and values associated with the policy. All parameters defined in the associated device definition must be defined. All values defined must be of the type (e.g., int, bool, string, float, datetime) defined in the associated device definition. |
The device definition and parameters can be included in the request. If they are included in the request, no action will be taken on them. The response will contain the current values for the policy in Jetstream.
PUT https://api.jetstreamrfid.com/3/policies/{Policy Name}
200 OK
None – this is a new endpoint.