400 ERROR: "id": "PARAMETER httpClient" message": "must not be null

Hi there!
I’m trying to create a Nexus maven Proxy repo using Nexus API.
If I’m using this conf -

  "name": "internal",
  "online": true,
  "storage": {
    "blobStoreName": "default",
    "strictContentTypeValidation": true
  },
  "proxy": {
    "remoteUrl": "http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/",
    "contentMaxAge": 1440,
    "metadataMaxAge": 1440
  },
  "negativeCache": {
    "enabled": true,
    "timeToLive": 1440
  },
  "maven": {
    "versionPolicy": "MIXED",
    "layoutPolicy": "STRICT"
  }

I’m getting 400 ERROR -

"[
  {
    "id": "PARAMETER httpClient",
    "message": "must not be null"
  }
]"

Does it refer to HTTP request setting? But why by creating the same manually , without HTTP request setting, works? I don’t wanna use neither HTTP request setting, or Authentication.

Also, if you’re trying to use the default conf, you will get

[
{
“id”: “FIELD password”,
“message”: “may not be empty”
}
]

That’s obvious if password is empty, but I don’t wanna use it. When creating manually, it works.
Would be thankful for any help.

Try creating something with the UI and then retrieving it via the REST API to see what the fields should look like.

Yup, apparently it had to be ‘null’.
Thanks!

Like this -

{
“name”: “internal”,
“online”: true,
“storage”: {
“blobStoreName”: “default”,
“strictContentTypeValidation”: true
},
“cleanup”: {
“policyNames”: [
“string”
]
},
“proxy”: {
“remoteUrl”: “https://remote.repository.com”,
“contentMaxAge”: 1440,
“metadataMaxAge”: 1440
},
“negativeCache”: {
“enabled”: true,
“timeToLive”: 1440
},
“httpClient”: {
“blocked”: false,
“autoBlock”: true,
“connection”: {
“retries”: 0,
“userAgentSuffix”: “string”,
“timeout”: 60,
“enableCircularRedirects”: false,
“enableCookies”: false
},
“authentication”: null
},
“routingRule”: “null”,
“maven”: {
“versionPolicy”: “MIXED”,
“layoutPolicy”: “STRICT”
}
}