Update or disables a REST enabled object
put
/ords/rest/autorest/{id}
Updates or disables a REST enabled object,
Request
Supported Media Types
- application/json
Path Parameters
-
id: integer
ID of the module for the REST Enabled Object.
Root Schema : schema
Type:
Show Source
object
-
action(optional):
string
Its value can be 'DISABLE' which would make the endpoint disables a REST enabled object or 'UPDATE' which would make the endpoint update a REST enabled object.
-
auth:
boolean
Controls whether Oracle REST Data Services should require user authorization before allowing access to the Oracle REST Data Services metadata for this object. If this value is TRUE, then the service is protected by the following roles: oracle.dbtools.autorest.any.schema, oracle.dbtools.role.autorest.
. . -
object_alias:
string
Alias of the object.
Response
Supported Media Types
- application/json
200 Response
Details of the REST enabled object that has been successfully updated or disables.
403 Response
You do not have permission to enable a REST object.
404 Response
A REST Object does not exist.
409 Response
A REST enabled object with that alias already exists.