accounts

Update Default Experience

Request
Security:
ApiKey (readwrite)
path Parameters
accountIdentifier
required
string
Request Body schema: application/json
identifier
string
name
string
companyName
string
cluster
string
defaultExperience
string
Enum: "NG" "CG"
authenticationMechanism
string
Enum: "USER_PASSWORD" "SAML" "LDAP" "OAUTH"
object (ServiceAccountConfig)
nextGenEnabled
boolean
Responses
200

successful operation

400

Bad Request

500

Internal server error

put/ng/api/accounts/{accountIdentifier}/default-experience
Request samples
application/json
{
  • "identifier": "string",
  • "name": "string",
  • "companyName": "string",
  • "cluster": "string",
  • "defaultExperience": "NG",
  • "authenticationMechanism": "USER_PASSWORD",
  • "serviceAccountConfig": {
    },
  • "nextGenEnabled": true
}
Response samples
application/json
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Update Account Name

Request
Security:
ApiKey (readwrite)
path Parameters
accountIdentifier
required
string
Request Body schema: application/json
identifier
string
name
string
companyName
string
cluster
string
defaultExperience
string
Enum: "NG" "CG"
authenticationMechanism
string
Enum: "USER_PASSWORD" "SAML" "LDAP" "OAUTH"
object (ServiceAccountConfig)
nextGenEnabled
boolean
Responses
200

successful operation

400

Bad Request

500

Internal server error

put/ng/api/accounts/{accountIdentifier}/name
Request samples
application/json
{
  • "identifier": "string",
  • "name": "string",
  • "companyName": "string",
  • "cluster": "string",
  • "defaultExperience": "NG",
  • "authenticationMechanism": "USER_PASSWORD",
  • "serviceAccountConfig": {
    },
  • "nextGenEnabled": true
}
Response samples
application/json
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Get Account

Request
Security:
ApiKey (readwrite)
path Parameters
accountIdentifier
required
string
Responses
200

successful operation

400

Bad Request

500

Internal server error

get/ng/api/accounts/{accountIdentifier}
Request samples
curl -i -X GET \
  https://app.harness.io/gateway/ng/api/accounts/:accountIdentifier \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}