amsUpdateArtifact
Update an Artifact for the AMS
Description
Updates the contents in a checked-out artifact
Usage
amsUpdateArtifact(object, artCheckoutObj, entityId = NULL,
    artDescription = "Artifact Description", url, apiToken, port = 2185)
Arguments
  
| object | an R object to replace in the artifact. | 
  | artCheckoutObj | an object returned by amsCheckoutArtifact.
This object contains the necessary ID for updating the artifact with object. | 
  | entityId | the entityId of the checked out artifact.
This value can be found in the artCheckoutObj. 
It does not need to be specified if the artCheckoutObj is given. | 
  | artDescription | a character string describing the artifact. | 
  | url | the URL for the AMS.
The default is the cached value saved when amsLogin was called. | 
  | apiToken | a character value. Specifies the API token to connect to the AMS.
The default is the cached value created when amsLogin was called. | 
  | port | an numeric value. Specifies the port for connecting to the AMS.
The default is cached value saved when amsLogin was called. | 
 
Details
A warning is issued if the return status is not 200 (success).
Value
returns a list with the following components.
| body | a character vector with the body of the results from the connection to the AMS.
This character vector is in JSON format. | 
| status | an integer return code from the connection to the AMS.
A value of 200 indicates a successful operation. | 
| headers | a character vector containing the headers returned
from the connection to the AMS. | 
See Also
amsCheckoutArtifact, amsCommitArtifact