Property Labels API Routes
GET /admin/property-labels#
List Property Labels
Retrieve a list of property labels. The property labels can be filtered by fields such as id. The property labels can also be sorted or paginated.
view_configurations feature flag is enabled. Set the MEDUSA_FF_VIEW_CONFIGURATIONS environment variable to true to enable it.Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
entitystringOptionalpropertystringOptionalqstringOptionallimitnumberOptionaloffsetnumberOptionalorderstringOptional-.with_deletedbooleanOptionalfieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. Without prefix it will replace the entire default fields.Request examples
Responses
200 OK
property_labelsobject[]TThe list of property labels.
property_labelsobject[]countnumberoffsetnumberlimitnumber400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/property-labels#
Create Property Label
Create a property label.
view_configurations feature flag is enabled. Set the MEDUSA_FF_VIEW_CONFIGURATIONS environment variable to true to enable it.Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Request body (application/json)
entitystringpropertystringlabelstringdescriptionstringOptionalRequest examples
Responses
201 OK
property_labelobjectThe property label's details.
property_labelobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/property-labels/batch#
Create Property Label
Create a property label.
view_configurations feature flag is enabled. Set the MEDUSA_FF_VIEW_CONFIGURATIONS environment variable to true to enable it.Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Request body (application/json)
createobject[]OptionalThe property labels to create.
createobject[]Optionalupdateobject[]OptionalThe property labels to update.
updateobject[]Optionaldeletestring[]OptionalRequest examples
Responses
200 OK
createdobject[]The created property labels.
createdobject[]updatedobject[]The updated property labels.
updatedobject[]deletedobject[]The deleted property labels.
deletedobject[]400, 401, 404, 409, 422, 500: an error response is returned.
GET /admin/property-labels/{id}#
Get a Property Label
Retrieve a property label by its ID.
view_configurations feature flag is enabled. Set the MEDUSA_FF_VIEW_CONFIGURATIONS environment variable to true to enable it.Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringRequest examples
Responses
200 OK
property_labelobjectThe property label's details.
property_labelobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/property-labels/{id}#
Update a Property Label
Update a property label's details.
view_configurations feature flag is enabled. Set the MEDUSA_FF_VIEW_CONFIGURATIONS environment variable to true to enable it.Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringRequest body (application/json)
labelstringOptionaldescriptionstringOptionalRequest examples
Responses
200 OK
property_labelobjectThe property label's details.
property_labelobject400, 401, 404, 409, 422, 500: an error response is returned.
DELETE /admin/property-labels/{id}#
Delete a Property Label
Delete a property label.
view_configurations feature flag is enabled. Set the MEDUSA_FF_VIEW_CONFIGURATIONS environment variable to true to enable it.Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringRequest examples
Responses
200 OK
idstringobjectstringproperty_label.deletedboolean400, 401, 404, 409, 422, 500: an error response is returned.