Bookmark expiration date

  • 1
  • 1
  • Question
  • Updated 2 years ago
  • Answered

I am trying to add expiration dates to the bookmarks created through API but I cannot seem to get it to work. I do not get any errors but the date wont update. Any help is appreciated.

$update_Exp = "{"type":"JSBookmark","expiration":"2016-09-26T23:59:59.999Z"  }"


$WebResponse = Invoke-WebRequest -WebSession $myWebSession -Uri "$DX_uri/jetstream/bookmark/$DX_bookmarkid" -Method Post -ContentType "application/json" -Body $update_Exp


Write-Host $WebResponse


{"type":"OKResult","status":"OK","result":"","job":null,"action":"ACTION-86929"}


Photo of Deb

Deb

  • 120 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
  • 1
Photo of Jatinder Luthra

Jatinder Luthra, Employee

  • 2,754 Points 2k badge 2x thumb
Official Response
Hello Deb,
                Could you please share version of Delphix Engine you use?
Photo of Jatinder Luthra

Jatinder Luthra, Employee

  • 2,754 Points 2k badge 2x thumb
Official Response
Hello Deb,
              I just tried updating expiration date with version 1.7.0. It worked fine.

Below is api call I used.

POST /resources/json/delphix/jetstream/bookmark/JS_BOOKMARK-83

{

    "type": "JSBookmark",

    "expiration": "2016-09-29T10:00:00.000Z"

}