From: Sander A. <sa....@fz...> - 2020-03-25 16:39:23
|
Hi Krzysztof, I try to set a multivalue attribute using the rest API, but every time the content is stored in one value. The attribute is configured as multivalue attribute. First I tried to add the value element multiple times within the values array. This was my payload: {\'values\': [\'{"value":"http://localhost:4242","tags":[]},{"value":"http://localhost:8080","tags":[]},{"value":"http://localhost:43985","tags":[]}\'], \'name\': \'sys:oauth:allowedReturnURI\', \'groupPath\': \'/\'} which lead to the value: {"value":"http://localhost:4242","tags":[]},{"value":"http://localhost:8080","tags":[]},{"value":"http://localhost:43985","tags":[]} So I removed the parts from the request which are wrong in the attribute and I tried with this payload: {\'values\': [\'"http://localhost:4242","http://localhost:8080","http://localhost:43985"\'], \'name\': \'sys:oauth:allowedReturnURI\', \'groupPath\': \'/\'} which lead to the value "http://localhost:4242","http://localhost:8080","http://localhost:43985" After having a look in the Get response, I tried with this payload: {\'values\': [\'"http://localhost:4242",\\n"http://localhost:8080",\\n"http://localhost:43985"\'], \'name\': \'sys:oauth:allowedReturnURI\', \'groupPath\': \'/\'} which lead to the value: "http://localhost:4242", "http://localhost:8080", "http://localhost:43985" I tried calling the API multiple time, but this changes only the value. This is fine, because it should be possible to update the existing value. Can you give me a hint how to set multivalues using the rest API? Best regards, Sander -- Federated Systems and Data Juelich Supercomputing Centre phone: +49 2461 61 8847 fax: +49 2461 61 6656 email: sa....@fz... ---------------------------------------------------------------------- ----------------------------------------------------------------------- Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Volker Rieke Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ----------------------------------------------------------------------- ----------------------------------------------------------------------- |