Add a new image series

post

/rhp-restapi/rhp/series/{seriesId}

Creates a new series resource with the given name in the seriesId parameter.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : AddSeriesBody
Type: object
Show Source

Response

Supported Media Types

200 Response

OK. A JSON object containing a series resource representation with multiple properties and the links array with at least the "self" link.
Body ()
Root Schema : seriesResource
Type: object
Show Source
Nested Schema : imageNames
Type: array
Show Source
Nested Schema : subscribedUsers
Type: array
Show Source

Default Response

Unexpected error. A JSON object containing error details of the issue while executing the operation.
Body ()
Root Schema : errorResource
Type: object
Show Source
Nested Schema : errorDetails
Type: array
If multiple errors are reported they can be organized in a hierarchical structure in this array.
Show Source

Examples

The following example shows how to create a new image series and insert the image (optional) specified in the request body body.json by submitting a POST request on the REST resource using cURL.

curl -u restUser -X POST -H "Content-Type: application/json" -d "@body.json" "https://RHP_node_name:8894/rhp-restapi/rhp/series/CRM_DB_Serie1"

HTTP Status Code and Response Headers

The following shows an example of the response header.

HTTP/1.1 200
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET,PUT,POST,DELETE,PATCH,OPTIONS
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Content-Length, Authorization
Connection: keep-alive
Content-Type: application/json
Content-Length: 229
Date:  Tue, 19 Jun 2018 14:03:23 GMT

Request Body (body.json)

The following shows an example of the response header.

{ 
  "imageName": "DB_Image2" 
}

Response Body

{
     "seriesId": "CRM_DB_Serie1",
     "imageNames": ["DB_Image2"],
     "subscribedUsers": [],
     "links": [{
         "uri": "https://RHP_node_name:8894/rhp-restapi/rhp/series/CRM_DB_Serie1",
         "rel": "self"
      }]
}