Table of Contents

Template

Template class for customer projects. Mock data is supported.

URL

/cnbs/v1/template

Method(s)

POST | GET

Overview

High level summary of required operations:

Parameters

Optional

Example POST

JSON Payload:

{
  "impersonation_user": "CNBSTEST",
  "mock_data": {
    "mock_type": "C",
    "mock_number": 1
  },
  "parameter": [
    {
      "name": "MATNR",
      "value": "4711"
    }
  ]
}

cURL

curl -X POST "https://<<your.server.here>>/cnbs/v1/user/change_password?sap-client=800&sap-language=EN&apiid=CNBSMV01R" -H "accept: application/json" -H "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI=" -H "authorization: Basic Y2tvZXNzbHQ6dGVzdDAx" -H "Content-Type: application/json" -d "{ \"current_password\": \"Initial01\", \"new_password\": \"Zufght#$\"}"

Response

Example Response

JSON: {

"data": {
  "gen": [
    {
      "name": "VBELN",
      "value": "123"
    },
    {
      "name": "MATNR",
      "value": "7890"
    }
  ]
},
"status": {
  "message_type": "S",
  "message_identification": "/CNBS/X_API",
  "message_number": 10,
  "message_line_string": "Request successfully processed",
  "json": ""
}

} </code>