Update or create an authorization rule
Updates an authorization rule by completely replacing it with specified values. Or, if there is no rule that has the specified ID, creates a new rule using that ID.
Request
- Base URL: http://example.com/authorization
- URL: http://example.com/authorization/rules/{ruleId}
- Auth: none declared. Required headers: If-Match
Path parameters
The ID of the rule to update or create.
Headers
The entity tag obtained from the most recent ETag response header. Must match the current entity tag for the rule.
Request body
A Spring Expression Language (SpEL) expression that limits the applicability of the rule. The rule applies only in authorization contexts in which the expression evaluates to 'true'.
A relative URI that represents the container aspect of a container object, such as a folder. Rules that target a container URI affect access that the container conveys to its child members.
The date and time at which the rule expires. Expired rules should be disregarded and deleted.
Filter criteria for the rule's target object (or objects). This property is not currently in use.
Media type of the object that is handled by an endpoint. If set, rules will only apply to endpoints that consume resources of this type. Most rules do not specify a content type.
Media type of the object returned by an endpoint. If set, rules will only apply to endpoints that produce resources of this type. Most rules do not specify an accept type.
Media type of object in a resource collection that is returned by an endpoint. If set, rules will only apply to endpoints that produce a resource collection containing resources of this type. Most rules do not specify an accept item type.
A relative URI or ANT-path pattern that represents a resource or set of resources. Most rules target an object URI.
The specific actions that the rule affects (for example: read, update, delete, create, secure, add, or remove).
Specifies the ID of a user or group to which the rule applies. Use this property in conjunction with the principalType property.
The type of principal or construct to which the rule applies.
Information that a client can display to end users for diagnostic purposes. For example, a prohibit rule’s reason could be displayed to an end user as part of an 'access denied' message.
Indicates whether the rule blocks (prohibit) or attempts to provide (grant) access to the specified principal.
The version of the rule representation. The current representation version is 8.
Information that documents the rule for administrative purposes.
Indicates whether the rule is enabled.
Indicates whether the rule applies to only those requests whose query parameters exactly match the rule target.
The unique identifier for the rule.
Response
The object was updated.
A Spring Expression Language (SpEL) expression that limits the applicability of the rule. The rule applies only in authorization contexts in which the expression evaluates to 'true'.
A relative URI that represents the container aspect of a container object, such as a folder. Rules that target a container URI affect access that the container conveys to its child members.
The date and time at which the rule expires. Expired rules should be disregarded and deleted.
Filter criteria for the rule's target object (or objects). This property is not currently in use.
Media type of the object that is handled by an endpoint. If set, rules will only apply to endpoints that consume resources of this type. Most rules do not specify a content type.
Media type of the object returned by an endpoint. If set, rules will only apply to endpoints that produce resources of this type. Most rules do not specify an accept type.
Media type of object in a resource collection that is returned by an endpoint. If set, rules will only apply to endpoints that produce a resource collection containing resources of this type. Most rules do not specify an accept item type.
A relative URI or ANT-path pattern that represents a resource or set of resources. Most rules target an object URI.
The specific actions that the rule affects (for example: read, update, delete, create, secure, add, or remove).
Specifies the ID of a user or group to which the rule applies. Use this property in conjunction with the principalType property.
The type of principal or construct to which the rule applies.
Information that a client can display to end users for diagnostic purposes. For example, a prohibit rule’s reason could be displayed to an end user as part of an 'access denied' message.
Indicates whether the rule blocks (prohibit) or attempts to provide (grant) access to the specified principal.
The version of the rule representation. The current representation version is 8.
Information that documents the rule for administrative purposes.
Indicates whether the rule is enabled.
Indicates whether the rule applies to only those requests whose query parameters exactly match the rule target.
The unique identifier for the rule.
The ID of the user who created the rule.
The date and time at which the rule was created.
The ID of the last user to modify the rule.
The date and time at which the rule was last modified.