Skip to main content
POST
/
v2
/
workspaces
/
{workspaceId}
/
pricing-rules
Create a custom pricing rule in a workspace
curl --request POST \
  --url https://api.pelanor.io/v2/workspaces/{workspaceId}/pricing-rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "isActive": true,
  "filters": [
    {
      "propertyId": "<string>",
      "values": [
        "<string>"
      ],
      "operator": "EQUALS"
    }
  ],
  "adjustmentMethod": "ACTUAL",
  "value": 123,
  "timeRange": {
    "start": "2023-11-07T05:31:56Z",
    "end": "2023-11-07T05:31:56Z"
  }
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.pelanor.io/llms.txt

Use this file to discover all available pages before exploring further.

Use the List Attributes endpoint to get available properties and their IDs.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Body

application/json
name
string
isActive
boolean
filters
object[]
adjustmentMethod
enum<string>
default:ACTUAL
Available options:
ACTUAL,
LIST_PRICE,
CUSTOM_PRICE
value
number<double>
timeRange
object

Response

A successful response.

The response is of type object.