Remove description from job

dbx-user7354
New Contributor III

How do I remove a description from a job completely? When I try to just remove the text in the edit window, the same text shows up afterwards, even though it says "Successfully updated job".

 

Also I had to write this twice, because on the first try I had to register and my message was not saved

Wojciech_BUK
Valued Contributor III

Hi,
this is not possible form UI 😞 
You have to replace content with e.g. white space. I think this is bug.

But you can do it using job api !
Below example in PowerShell, just reaplce:

  • job_is
  • token
  • workspaceURL
$body = @'
{
  "job_id": 123456789,
  "new_settings": {
  "description": ""
  }
}  
'@

$token = 'my123adb123token-2'
$wspace ='https://adb-123456.1.azuredatabricks.net'

$api = '/api/2.1/jobs/update'
$uri = $wspace + $api

$headers = @{
    Authorization="Bearer $token"
}

$response = Invoke-WebRequest -Method POST -Uri $uri -Headers $headers -Body $body -ContentType "application/json"