organizations

Get an Organization by identifier

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

successful operation

400

Bad Request

500

Internal server error

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

Update an Organization by identifier

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
accountIdentifier
required
string
header Parameters
If-Match
string
Request Body schema:
required
object (Organization)
Responses
200

successful operation

400

Bad Request

500

Internal server error

put/ng/api/organizations/{identifier}
Request samples
{
  • "organization": {
    }
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Delete an Organization by identifier

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
accountIdentifier
required
string
header Parameters
If-Match
string
Responses
200

successful operation

400

Bad Request

500

Internal server error

delete/ng/api/organizations/{identifier}
Request samples
curl -i -X DELETE \
  'https://app.harness.io/gateway/ng/api/organizations/:identifier?accountIdentifier=string' \
  -H 'If-Match: string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": true,
  • "metaData": { },
  • "correlationId": "string"
}

Get Organization list

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string
identifiers
Array of strings
searchTerm
string
pageIndex
integer <int32>
Default: 0
pageSize
integer <int32> <= 100
Default: 50
sortOrders
Array of strings
Responses
200

successful operation

400

Bad Request

500

Internal server error

get/ng/api/organizations
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/organizations?accountIdentifier=string&identifiers=string&searchTerm=string&pageIndex=0&pageSize=50&sortOrders=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Create an Organization

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string
Request Body schema:
required
object (Organization)
Responses
200

successful operation

400

Bad Request

500

Internal server error

post/ng/api/organizations
Request samples
{
  • "organization": {
    }
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}