Update a REST module template
put
/ords/rest/templates/{id}
Updates a REST module template.
Request
Path Parameters
-
id(required): integer
ID for specific template.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
comments: string
Comment text.
-
etag_query: string
Query that is used to generate the entity tag.
-
etag_type(required): string
A type of entity tag to be used by the resource template. An entity tag is an HTTP Header that acts as a version identifier for a resource. Use entity tag headers to avoid retrieving previously retrieved resources and to perform optimistic locking when updating resources. Valid values are HASH, QUERY, NONE.
-
priority(required): integer
The priority for the order of how the resource template should be evaluated: 0 (low priority. the default) through 9 (high priority).
-
uri_prefix(required): string
A matching pattern for the resource template. For example, a pattern of /objects/:object/:id? will match /objects/emp/101 (matches a request for the item in the emp resource with id of 101) and will also match /objects/emp/. (Matches a request for the emp resource, because the :id parameter is annotated with the ? modifier, which indicates that the id parameter is optional.)
Response
Supported Media Types
- application/json
200 Response
Details of the REST module template that has been successfully created.
400 Response
No etag_type or pattern or priority parameter provided.
404 Response
Template does not exist
409 Response
Template pattern already exists in the module.