Create and manage organizations in your account. You use organizations to group together related projects. For example, you can use an organization to group together projects within a business unit or division.
Creates a new organization.
Post the necessary fields for the API to create an organization.
required | object (Organization) Organization model |
Organization response
{- "org": {
- "identifier": "example_organization",
- "name": "Example Organization",
- "description": "This is an Example organization",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}
}
}
{- "org": {
- "identifier": "example_organization",
- "name": "Example Organization",
- "description": "This is an example organization",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}
}, - "created": 1234567890,
- "updated": 1234567890,
- "harness_managed": true
}
Retrieves the information of the organizations.
Organization list response
[- {
- "org": {
- "identifier": "example_organization",
- "name": "Example Organization",
- "description": "This is an example organization",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}
}, - "created": 1234567890,
- "updated": 1234567890,
- "harness_managed": true
}
]
Retrieves the information of the organization with the matching organization identifier.
Organization response
{- "org": {
- "identifier": "example_organization",
- "name": "Example Organization",
- "description": "This is an example organization",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}
}, - "created": 1234567890,
- "updated": 1234567890,
- "harness_managed": true
}
Updates the information of the organization with the matching organization identifier.
Put the necessary fields for the API to update a organization.
required | object (Organization) Organization model |
Organization response
{- "org": {
- "identifier": "example_organization",
- "name": "Example Organization",
- "description": "This is an example organization",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}
}
}
{- "org": {
- "identifier": "example_organization",
- "name": "Example Organization",
- "description": "This is an example organization",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}
}, - "created": 1234567890,
- "updated": 1234567890,
- "harness_managed": true
}
Deletes the information of the organization with the matching organization identifier.
Organization response
{- "org": {
- "identifier": "example_organization",
- "name": "Example Organization",
- "description": "This is an example organization",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}
}, - "created": 1234567890,
- "updated": 1234567890,
- "harness_managed": true
}
List all Organizations matching the given search criteria.
Bad Request
Not Found
Internal server error
Returns list of Organizations
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Creates a new Organization.
Bad Request
Not Found
Internal server error
Returns created Organization details
{- "organization": {
- "identifier": "string",
- "name": "string",
- "description": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Lists Organization details using an Account and Organization ID.
Bad Request
Not Found
Internal server error
Returns the Organization details with the passed Account Identifier and Org Identifier
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Updates Organization settings.
This is the updated Organization. Please provide values for all fields, not just the fields you are updating
required | object (Organization1) This has details of the Organization as defined in Harness. |
Bad Request
Not Found
Internal server error
Returns the updated Organization details
{- "organization": {
- "identifier": "string",
- "name": "string",
- "description": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Deletes Organization for the given ID.
Bad Request
Not Found
Internal server error
It returns true if the Organization is deleted successfully and false if the Organization is not deleted.
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}