CorebanqCorebanq Developer Docs
User Preferencesv1

Delete an option

ANSWERS 200 WITH A MESSAGE BODY, not the 204 that deleting a group or a preference answers. The two are inconsistent on purpose here only in the sense that the code is: document what you get.

DELETE
/v1/user-preferences/{user_id}/preferences/{preference_id}/options/{option_id}

Authorization

BearerAuth
AuthorizationBearer <token>

JWT Bearer token authentication

In: header

Path Parameters

user_id*string

Owner of the preferences. This is the record the preferences belong to, NOT the caller — an actor with the right record permission reads and writes another user's preferences through the same route.

preference_id*string

Identifier of the preference.

option_id*string

Identifier of the option.

Response Body

application/json

curl -X DELETE "https://example.com/v1/user-preferences/497f6eca-6276-4993-bfeb-53cbbbba6f08/preferences/497f6eca-6276-4993-bfeb-53cbbbba6f08/options/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "message": "string"
}
Empty
Empty
Empty
Empty