opal.put: Generic REST resource update.

View source: R/opal.R

opal.putR Documentation

Generic REST resource update.

Description

Generic REST resource update.

Usage

opal.put(
  opal,
  ...,
  query = list(),
  body = "",
  contentType = "application/x-rscript",
  callback = NULL
)

Arguments

opal

Opal object.

...

Resource path segments.

query

Named list of query parameters.

body

The body of the request.

contentType

The type of the body content.

callback

A callback function to handle the response object.

See Also

Other REST functions: opal.delete(), opal.get(), opal.post()

Examples

## Not run: 
o <- opal.login('administrator','password', url = 'https://opal-demo.obiba.org')
opal.put(o, 'some', 'resource', 'toupdate', body = '{"some":"value"}')
opal.logout(o)

## End(Not run)

opalr documentation built on Oct. 6, 2023, 5:08 p.m.