Update a NAR File

put

/v1/nodeManagers/{id}/nars

Updates a specified NAR file.

Request

Path Parameters
Query Parameters
Supported Media Types
Request Body - multipart/form-data ()
Root Schema : schema
Type: string(binary)
The NAR file to upload.
Back to Top

Response

Supported Media Types

204 Response

The NAR file was updated successfully.
Body ()
Root Schema : schema
Type: object

400 Response

The request could not be understood or was missing required parameters.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

401 Response

The client does not have the correct privileges.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

403 Response

The request was not authorized.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

404 Response

The requested resource cannot be found.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

405 Response

This method is not allowed.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

409 Response

The request could not be processed due to a conflict with the existing state of the resource.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

413 Response

The uploaded file exceeds the allowable size limit.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

415 Response

The media type of the request is not supported.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

422 Response

The server was unable to process the request due to semantic errors.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

500 Response

The system has encountered an internal server error.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
Back to Top

Examples

This example shows how to update a NAR file by submitting a PUT request on the REST resource using cURL. This operation uses a multipart/form-data request to upload the updated JSON data. For more information about cURL, see Use cURL.

curl -X PUT 'http://hostname:port/nodeManagers/{id}/nars?filePath=%2Fhome%2Focomcuser%2Finstall%2Focomc%2Ftest.arch' --form 'nars=@"/path/to/updated/nar.json"''

Example of the Request Body

The following is an example of the structured contents of the multipart/form-data request body.

Content-Type - multipart/form-data
key - nars
value - updated nar as json file

Example of the Response Body

If successful, the response code 204 is returned with no response body.

Back to Top