Skip to content

Remove uma faixa de preço

DELETE/api/bookings/resources/{resourceId}/price-rules/{ruleId}

Auth
Requires a token
Who can call it:
owner
admin
X-CommunityId
X-CommunityId Send the X-CommunityId of the community the operation happens in.
Endpoint descriptions come straight from the API specification and are in Portuguese for now. The interface around them is translated.

Só owner e admin (soft delete).

Parameters

NameInTypeDescription
resourceIdrequiredpathstring (uuid)
ruleIdrequiredpathstring (uuid)

Headers

NameTypeDescription
X-CommunityIdoptionalstring (uuid)ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade.

Responses

StatusDescription
200Removida.
403Autenticado, mas sem permissão para esta operação.
404Recurso não encontrado.

curl example

curl -X DELETE "https://api.memberfy.net/api/bookings/resources/<resourceId>/price-rules/<ruleId>" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-CommunityId: $COMMUNITY_ID"