apiPUT: apiPUT - Do a PUT to the Core ODATA REST API.

Description Usage Arguments Details Value Author(s) Examples

View source: R/apiPUT.R

Description

apiPUT - Base PUT call to Core ODATA REST API.

Usage

1
2
apiPUT(coreApi, resource = NULL, query = NULL, body = NULL, encode,
  headers = NULL, special = NULL, useVerbose = FALSE, unbox = TRUE)

Arguments

coreApi

coreApi object with valid jsessionid

resource

entity type for PUT

query

query string

body

body for request

encode

encoding to use for request option are "multipart", "form", "json", "raw"

headers

headers to be added to get.

special

passed to buildUrl for special sdk endpoints

useVerbose

Use verbose communication for debugging

unbox

use autounbox when doing lait yo json conversion

Details

apiPUT Do a PUT to the Core ODATA REST API.

Value

Returns the entire http response

Author(s)

Craig Parman ngsAnalytics, ngsanalytics.com

Examples

1
2
3
4
5
6
7
8
## Not run: 
api<-CoreAPIV2::CoreAPI("PATH TO JSON FILE")
login<- CoreAPIV2::authBasic(api)
response <-CoreAPIV2::apiPUT(login$coreApi,"SAMPLE",body,"json",special=NULL,useVerbose=FALSE,unbox = TRUE)
content <- httr::coontent(response)
CoreAPIV2::logOut(login$coreApi )

## End(Not run)

ceparman/Core5.3 documentation built on May 7, 2019, 8:16 a.m.