Skip to content

Measurements (2.0.0)

The 'Measurements' application of the Core API

Languages
Servers
https://{environment}.pigello.io

Priceitem

Operations

Pricegroup

Operations

Sensorspecification

Operations

Pricegrouponlyenabledfor

Operations

Get 'Pricegrouponlyenabledfor'

Request

Security
customer_id and application_id and service_id and service_version_id and client_ct and client_object_id and client_secret
Path
pkstringwrite-onlyrequired
curl -i -X GET \
  'https://dev.api.pigello.io/measurements/sensors/pricegrouponlyenabledfor/{pk}/' \
  -H 'X-PIGELLO-APPLICATION-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-CT: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-ENTITY: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-SECRET: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CUSTOMER-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-SERVICE-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-SERVICE-VERSION-ID: YOUR_API_KEY_HERE'

Responses

Successful selection

Bodyapplication/json
idstring(uuid)read-onlyrequired

Additional Validation Information:

Must be unique

price_groupobject(Pricegroup)required
price_group.​idstring(uuid)
outdoor_areaobject or null(Outdoorarea)

Additional Validation Information:

This value can't bet set, when any of the following fields are set: building, parking_lot

This field, or at least one of the following fields must be set: building, parking_lot

created_atstring(date-time)read-only
custom_idstring or null<= 128 characters
tagsanyread-only
parking_lotobject or null(Parkinglot)

Additional Validation Information:

This value can't bet set, when any of the following fields are set: building, outdoor_area

This field, or at least one of the following fields must be set: building, outdoor_area

organizationobject or null(Organization)
customer_columnsanyread-only
buildingobject or null(Building)

Additional Validation Information:

This value can't bet set, when any of the following fields are set: outdoor_area, parking_lot

This field, or at least one of the following fields must be set: outdoor_area, parking_lot

Response
application/json
{ "outdoor_area": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "created_at": "2019-08-24T14:15:22Z", "custom_id": "string", "tags": null, "parking_lot": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "organization": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "customer_columns": null, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "building": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "price_group": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } }

Create 'Pricegrouponlyenabledfor'

Request

Security
customer_id and application_id and service_id and service_version_id and client_ct and client_object_id and client_secret
Bodyapplication/json
price_groupobject(Pricegroup)required
price_group.​idstring(uuid)
outdoor_areaobject or null(Outdoorarea)

Additional Validation Information:

This value can't bet set, when any of the following fields are set: building, parking_lot

This field, or at least one of the following fields must be set: building, parking_lot

custom_idstring or null<= 128 characters
parking_lotobject or null(Parkinglot)

Additional Validation Information:

This value can't bet set, when any of the following fields are set: building, outdoor_area

This field, or at least one of the following fields must be set: building, outdoor_area

organizationobject or null(Organization)
buildingobject or null(Building)

Additional Validation Information:

This value can't bet set, when any of the following fields are set: outdoor_area, parking_lot

This field, or at least one of the following fields must be set: outdoor_area, parking_lot

curl -i -X POST \
  https://dev.api.pigello.io/measurements/sensors/pricegrouponlyenabledfor/ \
  -H 'Content-Type: application/json' \
  -H 'X-PIGELLO-APPLICATION-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-CT: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-ENTITY: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-SECRET: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CUSTOMER-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-SERVICE-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-SERVICE-VERSION-ID: YOUR_API_KEY_HERE' \
  -d '{
    "outdoor_area": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    },
    "custom_id": "string",
    "parking_lot": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    },
    "organization": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    },
    "building": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    },
    "price_group": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    }
  }'

Responses

Successful creation

Bodyapplication/json
idstring(uuid)read-onlyrequired

Additional Validation Information:

Must be unique

price_groupobject(Pricegroup)required
price_group.​idstring(uuid)
outdoor_areaobject or null(Outdoorarea)

Additional Validation Information:

This value can't bet set, when any of the following fields are set: building, parking_lot

This field, or at least one of the following fields must be set: building, parking_lot

created_atstring(date-time)read-only
custom_idstring or null<= 128 characters
tagsanyread-only
parking_lotobject or null(Parkinglot)

Additional Validation Information:

This value can't bet set, when any of the following fields are set: building, outdoor_area

This field, or at least one of the following fields must be set: building, outdoor_area

organizationobject or null(Organization)
customer_columnsanyread-only
buildingobject or null(Building)

Additional Validation Information:

This value can't bet set, when any of the following fields are set: outdoor_area, parking_lot

This field, or at least one of the following fields must be set: outdoor_area, parking_lot

Response
application/json
{ "outdoor_area": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "created_at": "2019-08-24T14:15:22Z", "custom_id": "string", "tags": null, "parking_lot": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "organization": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "customer_columns": null, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "building": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "price_group": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } }