PutPackages{id}
This request allows you to modify an existing packages.
Request URL
PUT https://api-dev.theownly.io/v1/packages/{id}
Headers
| Name | Value | Required? |
|---|---|---|
| Accept | application/json | Yes |
| Authorization | Bearer{APItoken} | Yes |
| Content-Type | application/json | Yes |
Parameters
| Name | Type | Required? | Description |
|---|---|---|---|
| name | String | No | Package Name |
| description | String | No | |
| basePrice | number | No |
Example Request
curl -X 'PUT' \
'https://api.theownly.io/v1/packages/OnMti6bW' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {APItoken}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Exclusive",
"description": "string",
"basePrice": 0
}
Example Response
Package updated.
{
"id": "OnMti6bW",
"name": "Exclusive",
"description": "string",
"basePrice": 0,
"isMultifamily": true
}