Organization
Retrieves a list of all organizations. Each organization includes a name, an optional parent identifying its parent organization (forming a hierarchy), and a description. Returns 200 OK with a list of organizations in the response body.
OK
GET /gbds/v2/organizations HTTP/1.1
Host: <ip>:8085
Accept: */*
OK
{
"httpResponse": {
"httpCode": 1,
"body": "text"
},
"data": [
{
"parent": "text",
"name": "text",
"description": "text"
}
]
}Creates a new organization or updates an existing one. The request body includes the organization's name, optional description, and optional parent indicating the parent organization. A successful creation returns 201 Created, while updating an existing organization returns 202 Accepted.
Created
Accepted
POST /gbds/v2/organizations HTTP/1.1
Host: <ip>:8085
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"parent": "text",
"name": "text",
"description": "text"
}{}Retrieves a single organization by its name. The name path parameter uniquely identifies the organization. The response includes the organization's name, optional parent, and description fields and returns 200 OK when found.
OK
GET /gbds/v2/organizations/{name} HTTP/1.1
Host: <ip>:8085
Accept: */*
OK
{
"httpResponse": {
"httpCode": 1,
"body": "text"
},
"data": {
"parent": "text",
"name": "text",
"description": "text"
}
}Deletes an organization identified by the name path parameter. On successful deletion, returns 204 No Content.
NO CONTENT (deleted)
DELETE /gbds/v2/organizations/{name} HTTP/1.1
Host: <ip>:8085
Accept: */*
NO CONTENT (deleted)
{}Was this helpful?

