PUT https://api.nexway.store/products/price-functions/{id}
Parameter name | Value | Description | Additional |
---|---|---|---|
id | string | price function ID or name |
Required |
The request body takes a complete PriceFunction resource, containing the following writable properties:
{
"createDate": "date-time",
"customerId": "string",
"dbVersion": "int64",
"expression": "string",
"id": "string",
"name": "string",
"parameters": [
{
"defaultValue": "string",
"field": "string",
"internalDesc": "string",
"labels": {
"<key>": "string"
},
"max": "int32",
"min": "int32",
"pattern": "string",
"type": "string"
}
],
"productFields": [
"string"
],
"subject": "string",
"updateDate": "date-time",
"variables": [
"string"
]
}
Name | Type | Description | Additional |
---|---|---|---|
createDate | date-time | Optional | |
customerId | string |
Customer ID |
Optional |
dbVersion | int64 | Optional | |
expression | string | Optional | |
id | string | Optional | |
name | string | Optional | |
parameters[] | array |
Parameters of the expression |
Optional |
parameters[].defaultValue | string |
Parameter default value |
|
parameters[].field | string |
Parameter name |
|
parameters[].internalDesc | string |
Parameter internal description |
Optional |
parameters[].labels | object | Optional | |
parameters[].labels.<key> | map of string | Optional | |
parameters[].max | int32 |
Maximum value |
|
parameters[].min | int32 |
Minimum value |
|
parameters[].pattern | string |
Pattern value |
|
parameters[].type | string |
Parameter type Possible values are:
|
|
productFields[] | array of string |
Product fields used in the expression |
Optional |
subject | string | Optional | |
updateDate | date-time | Optional | |
variables[] | array of string |
Variables used in the expression |
Optional |
This request requires the use of one of following authorisation methods:
OAuth2
.
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK Success |
PriceFunction |
401 | Unauthorized Unauthorized |
|
403 | Forbidden Forbidden |
|
404 | Not Found Not Found |
|
500 | Internal Server Error Failure |