Skip to main content

Version: 23.10

POST Create Service Parameter

Post a JSON object describing a service parameter to create a service parameter for an existing service definition.

Request

HTTP request

https://<JM_SERVER>/manager/secure/rest/service-definitions/v1/<SERVICE_ID>/serviceParameters

Parameters

This request takes no parameters.

Request body

You must pass in a service parameter value object containing the new values.

Example

Request
POST https://transact.maguire.com/manager/secure/rest/service-definitions/v1/215/serviceParameters
Request body
{
"name": "myCustomParameter",
"description": "A new parameter that our service can use",
"type": "String",
"bindParameterFlag": false,
"unitTestFlag": false,
"value": "Default Value"
}

Response

If successful, this operation returns a response with a HTTP 200 OK status code.

Example

An example succcessful response is shown below.

{
"id": 953,
"name": "myCustomParameter",
"description": "A new parameter that our service can use",
"type": "String",
"bindParameterFlag": false,
"unitTestFlag": false,
"value": "Default Value",
"createdAt": "Oct 1, 2015 11:26:08 AM",
"createdBy": "someadmin"
}