Project

General

Profile

Actions

Bug #4567

open

Unable to reliably unset all object associations

Added by Dominic Cleal about 10 years ago. Updated about 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I'm trying to remove all associated domains from a subnet, but failing to find a reliable means. None of the examples below actually remove the associated domains, unless I add another domain in the array to replace it.

PUT /api/v2/subnets/1
{"domains":[]}
PUT /api/v2/subnets/1
{"domain_ids":[]}
PUT /api/v2/subnets/1
{"domain_ids":null}

Related issues 1 (1 open0 closed)

Related to Foreman - Bug #4571: "Domain (..) expected, got ActiveSupport::HashWithIndifferentAccess(..)" when setting associations with wrapped objectNew03/06/2014Actions
Actions

Also available in: Atom PDF