1

How do you delete / update a metadata object through the API?

For example Scheduled emails: http://docs.gooddata.apiary.io/#reportsanddashboardsbyemail In the documentation I see how to create a new one or get existing ones. How do I delete a Scheduled email?

DELETE https://secure.gooddata.com/gdc/md/PROJECT_ID/obj/OBJECT_ID

For scheduledMail it works fine, but does it work universally?

How do you update a scheduled email? Does PUT work? What request body should I use? Or do I have to delete the old object and create a new one?

4

1 回答 1

3

对于每个元数据对象,DELETE 都有效。要更新对象,请使用 PUT,其中正文将响应来自 GET 请求的相同资源,您可以轻松地编辑并使用 PUT 将其发送回相同的资源。所以工作流程将是:

  1. GET元数据对象
  2. 更新对象主体 (JSON)
  3. PUT它回到你得到它的同一个资源上

这适用于所有元数据对象。您可以通过以下方式轻松识别这些对象

/obj/OBJECT-ID

感谢您的提问!

于 2014-02-06T13:12:30.070 回答