Organization
This contains APIs related to Organization as defined in Harness
List all Organizations matching the given search criteria.
Account Identifier for the Entity.
This is the list of Org Key IDs. Details specific to these IDs would be fetched.
This would be used to filter Organizations. Any Organization having the specified string in its Name, ID and Tag would be filtered.
Page Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns list of 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"
}
]
}Creates a new Organization.
Account Identifier for the Entity.
This contains details of the Organization.
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns created Organization details
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"
}
]
}Lists Organization details using an Account and Organization ID.
Organization Identifier for the Entity.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns the Organization details with the passed Account Identifier and Org 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"
}
]
}Updates Organization settings.
Organization Identifier for the Entity.
Account Identifier for the Entity.
Version number of the Organization
This contains details of the Organization.
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns the updated Organization details
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"
}
]
}Deletes Organization for the given ID.
Organization Identifier for the Entity.
Account Identifier for the Entity.
Version number of the Organization
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
It returns true if the Organization is deleted successfully and false if the Organization is not deleted.
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?