PATCH
/
prices
/
{id}
curl --request PATCH \
  --url https://api.sulu.sh/v0/prices/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "invoiceDisplayName": "<string>",
  "properties": {
    "unitPrice": "<string>"
  }
}'
{
  "id": "<string>",
  "object": "price",
  "billableMetricId": "<string>",
  "model": "standard",
  "invoiceDisplayName": "<string>",
  "properties": {
    "unitPrice": "<string>"
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Unique identifier for a price

Body

application/json
invoiceDisplayName
string
properties
any

Response

200
application/json
Price updated successfully
id
string

Unique identifier for a price

object
enum<string>
default:price
Available options:
price
billableMetricId
string

Unique identifier for a billable metric

model
enum<string>
Available options:
standard,
dynamic,
volume
invoiceDisplayName
string
properties
object
createdAt
string
updatedAt
string
deletedAt
string