For the complete documentation index, see llms.txt. This page is also available as Markdown.

Organization

This contains APIs related to Organization as defined in Harness

List Organizations by filter

get

List all Organizations matching the given search criteria.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

identifiersstring[]Optional

This is the list of Org Key IDs. Details specific to these IDs would be fetched.

searchTermstringOptional

This would be used to filter Organizations. Any Organization having the specified string in its Name, ID and Tag would be filtered.

pageIndexinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32 · max: 100Optional

Results per page(max 100)Default Value: 50

Default: 50
pageTokenstringOptional

Page Token of the next results to fetch.Default Value: ''

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/organizations
GET /gateway/ng/api/organizations?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Create an Organization

post

Creates a new Organization.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

This contains details of the Organization.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/organizations
POST /gateway/ng/api/organizations?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 115

{
  "organization": {
    "identifier": "text",
    "name": "text",
    "description": "text",
    "tags": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    }
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

List Organization details

get

Lists Organization details using an Account and Organization ID.

Path parameters
identifierstringRequired

Organization Identifier for the Entity.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/organizations/{identifier}
GET /gateway/ng/api/organizations/{identifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Update an Organization

put

Updates Organization settings.

Path parameters
identifierstringRequired

Organization Identifier for the Entity.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Header parameters
If-MatchstringOptional

Version number of the Organization

Body

This contains details of the Organization.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/organizations/{identifier}
PUT /gateway/ng/api/organizations/{identifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 115

{
  "organization": {
    "identifier": "text",
    "name": "text",
    "description": "text",
    "tags": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    }
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Delete an Organization

delete

Deletes Organization for the given ID.

Path parameters
identifierstringRequired

Organization Identifier for the Entity.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Header parameters
If-MatchstringOptional

Version number of the Organization

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/organizations/{identifier}
DELETE /gateway/ng/api/organizations/{identifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?