Skip to content

orchestrator assets put-by-id fails with "assetDto must not be null" while attempting to update an Orchestrator Asset Credential password #215

Description

@shrayusDesarkar

Problem Description

When attempting to update an Orchestrator Asset Credential password using the uipath orchestrator assets put-by-id command, the request fails with a 400 Bad Request and the error message is "; assetDto must not be null".

This issue occurs even though the debug output indicates a complete JSON payload is being sent in the PUT request body, including the Key field.

Steps to Reproduce

  1. Ensure you have an existing Orchestrator Asset with an ID.
  2. Execute the following command, replacing placeholders with your specific values:
uipath orchestrator assets put-by-id --folder-id 5407283 --key 1841598 --name "TestAssest" --description "Hej hej hemskt mycket hej" --can-be-deleted true --has-default-value true --value-scope "Global" -value-type "Credential" --credential-username "service-account-key" --credential-password "hej hopp"--debug

Expected Behavior

The Orchestrator Asset Credential password should be successfully updated without errors.

Actual Behavior

The command returns a 400 Bad Request error with the following response from the Orchestrator API:

{
  "message": "; assetDto must not be null",
  "errorCode": 0,
  "traceId": "00-4a3b5b441ce7a7e81b47e9e3f8828fd4-652e8d6c18ca4ff3-00"
}

The full --debug output:

uipath orchestrator assets put-by-id --folder-id 5407283 --key 1841598 --name "TestAssest" --description "Hej hej hemskt mycket hej" --can-be-deleted true --has-default-value true --value-scope "Global" -value-type "Credential" --credential-username "service-account-key" --credential-password "hej hopp"--debug


No access token available. Calling identity server to retrieve new token...
POST https://cloud.uipath.com/identity_/connect/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded

client_id=*&client_secret=%2A%2Aredacted%2A%2A&code=&code_verifier=&grant_type=client_credentials&redirect_uri=&refresh_token=&scope=


HTTP/1.1 200 OK
Cache-Control: no-store, must-revalidate, no-cache, max-age=0
Cf-Cache-Status: DYNAMIC
Cf-Ray: 9f679d521e55400f-BOM
Connection: keep-alive
Content-Security-Policy: *
Content-Type: application/json; charset=UTF-8
Date: Mon, 04 May 2026 12:47:32 GMT
Pragma: no-cache
Ratelimit-Limit: 3000
Ratelimit-Remaining: 2999
Request-Context: appId=*
Server: cloudflare
X-Download-Options: noopen
X-Envoy-Upstream-Service-Time: 123
X-Robots-Tag: noindex,nofollow
X-Uipath-Correlation-Id: *
X-Uipath-Targetservice-Duration: 123
X-Xss-Protection: 1

{"access_token":"*","expires_in":3600,"token_type":"Bearer","scope":"AutomationSolutions EnterpriseContextService OR.Administration.Read OR.Assets OR.BackgroundTasks OR.Execution OR.Execution.Read OR.Folders OR.Folders.Read OR.Jobs OR.Jobs.Read OR.Jobs.Write OR.Machines OR.Machines.Read OR.Monitoring OR.Queues OR.Queues.Read OR.Robots OR.Robots.Read OR.Settings OR.Settings.Read OR.Tasks OR.TestDataQueues OR.TestSetExecutions OR.TestSets OR.TestSetSchedules OR.Users OR.Users.Read Solutions.Deployments Solutions.Deployments.Read Solutions.Deployments.Write Solutions.Packages Solutions.Packages.Read Solutions.Packages.Write StudioWebS2S.Project.CRUD StudioWebS2S.Share.CRUD StudioWebS2S.Workflow.CRUD TM.Projects TM.TestExecutions TM.TestSets"}


PUT https://cloud.uipath.com/ingka/GlobalTest/orchestrator_/odata/Assets(1841598) HTTP/1.1
Authorization: Bearer *
Content-Type: application/json
User-Agent: uipathcli/v2.0.51 (windows; amd64)
X-Request-Id: ab573ce356728f7592a90f33fd3330c2
X-Uipath-Organizationunitid: *

{"CanBeDeleted":true,"CredentialPassword":"hej hopp","CredentialUsername":"service-account-key","Description":"Hej hej hemskt mycket hej","HasDefaultValue":true,"Key":"1841598","Name":"TestAssest","ValueScope":"Global","ValueType":"Credential"}


HTTP/1.1 400 Bad Request
Cache-Control: no-store
Cf-Cache-Status: DYNAMIC
Cf-Ray: 9f679d555f7e2698-BOM
Connection: keep-alive
Content-Length: 123
Content-Security-Policy: default-src 'self';script-src 'self' https://orch-cdn.uipath.com https://uipath-apps-prdcom.azureedge.net https://ecs-prd-cdn.azureedge.net https://uipath-apps-prd.azureedge.net http://ecs-alp-cdn.azureedge.net/ https://use.typekit.net/ https://d2c7xlmseob604.cloudfront.net https://platform-cdn.uipath.com https://*.uipath.com https://*.pendo.io https://autopwhereprdsa.z6.web.core.windows.net;style-src 'self' 'unsafe-inline' https://orch-cdn.uipath.com https://uipath-apps-prdcom.azureedge.net https://ecs-prd-cdn.azureedge.net https://uipath-apps-prd.azureedge.net http://ecs-alp-cdn.azureedge.net/ https://fonts.googleapis.com/css https://use.typekit.net https://p.typekit.net/ https://platform-cdn.uipath.com https://content.usage.uipath.com;img-src 'self' data: https://orch-cdn.uipath.com https://uipath-apps-prdcom.azureedge.net https://ecs-prd-cdn.azureedge.net https://uipath-apps-prd.azureedge.net http://ecs-alp-cdn.azureedge.net/ https://cdn.auth0.com https://s.gravatar.com https://secure.gravatar.com https://*.wp.com https://*.googleusercontent.com https://i.ytimg.com https://platform-cdn.uipath.com https://*.pendo.io https://content.usage.uipath.com https://pendo-static-5668600916475904.storage.googleapis.com https://data.usage.uipath.com https://*.blob.core.windows.net https://*.amazonaws.com blob:;media-src 'self' https://*.blob.core.windows.net https://*.blob.core.windows.net https://*.amazonaws.com;frame-src 'self' https://*.uipath.com https://*.pendo.io;font-src 'self' https://orch-cdn.uipath.com https://uipath-apps-prdcom.azureedge.net https://ecs-prd-cdn.azureedge.net https://uipath-apps-prd.azureedge.net http://ecs-alp-cdn.azureedge.net/ https://use.typekit.net/ https://fonts.gstatic.com https://platform-cdn.uipath.com data:;connect-src 'self' wss: https://orch-cdn.uipath.com https://uipath-apps-prdcom.azureedge.net https://ecs-prd-cdn.azureedge.net https://uipath-apps-prd.azureedge.net http://ecs-alp-cdn.azureedge.net/ https://primer.typekit.net https://use.typekit.net/ https://studio-feedback.azure-api.net https://app.launchdarkly.com https://clientstream.launchdarkly.com https://events.launchdarkly.com https://api.smartling.com https://platform-cdn.uipath.com https://*.service.signalr.net https://*.uipath.com https://*.pendo.io https://autopwhereprdsa.z6.web.core.windows.net https://cloud.uipath.com https://storage.googleapis.com https://*.blob.core.windows.net https://*.amazonaws.com dc.services.visualstudio.com *.in.applicationinsights.azure.com https://robotube-prd-ne.uipath.com/;worker-src 'self' blob:
Content-Type: application/json; charset=utf-8
Date: Mon, 04 May 2026 12:47:32 GMT
Expires: -1
Pragma: no-cache
Request-Context: appId=cid-v1:354c7cb9-ae5a-4d16-84a7-f13242bbac6d
Server: cloudflare
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Correlation-Id: b15e5524-1098-4902-8f1e-99eefe87eb48
X-Download-Options: noopen
X-Envoy-Upstream-Service-Time: 15
X-Frame-Options: SameOrigin
X-Robots-Tag: noindex,nofollow
X-Uipath-Correlation-Id: undefined
X-Uipath-Targetservice-Duration: 15
X-Xss-Protection: 1

{"message":"; assetDto must not be null","errorCode":0,"traceId":"00-4a3b5b441ce7a7e81b47e9e3f8828fd4-652e8d6c18ca4ff3-00"}


{
  "errorCode": 0,
  "message": "; assetDto must not be null",
  "traceId": "00-4a3b5b441ce7a7e81b47e9e3f8828fd4-652e8d6c18ca4ff3-00"
}

This indicates that request parameters are incorrect.

Environment

  1. CLI Version: uipathcli/v2.0.51
  2. Operating System: Windows 11

Request

  1. Can you check the data type of --key. The CLI is expecting --key as Integer and server expects it as string.
  2. Can you please update documentation on what are the required parameters for updating password of asset (credential).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions