Create a cost center

This command creates a cost center from the supplied JSON string.


POST http://{hostname}:{port}
Accept: application/json
Content-Type: application/json
Table 1. Header parameters
Parameter Type Required Description
Content-Type application/json true
Accept application/json true
This command takes a JSON request string or file. Use the following template for the request:
  "name": "Cost center name",
  "source": "Cost center source, such as CLOUD or UCD"


curl -u jsmith:passwd
  -H "Accept: application/json" 
  -H "Content-Type: application/json" 
  -X POST 
  -d '{"name":"MyNewCostCenter","source":"CLOUD"}'

Example response

  "id": "7adb3aa0-fab4-4ba8-ab0a-b71afa49d286",
  "name": "MyNewCostCenter",
  "source": "CLOUD"