Organization

"Organizations" acts as a container for managing infrastructure and object resources, providing a centralized platform for development and deployment. It allows for easier management of permissions, scalability, and collaboration among different stakeholders within the platform.

Organization Data Model

Name
Data Type
Description

_id

String

System-generated field that indicates org identifier.

name

String

Represents the name of an organization within the system.

domain

String

Represents the domain associated with an organization within the system.

_databaseName

String

System-generated field that indicates the database identifier.

_createdAt

Date

System-generated timestamp that denotes the date and time when an organization was created.

_createdBy

String

System-generated field that indicates the account who created.

_modifiedAt

Date

System-generated generated timestamp that denotes the date and time when a organization was modified.

_modifiedby

String

System-generated field that indicates the account who modified.

Example Organization

{
    "_id":"64392b37862be321e3598f58",
    "name":"Clinic",
    "domain":"clinic",
    "_databaseName":"clinic_64392b37862be321e3598f58",
    "_createdAt":
        {
            "$date":
                {
                    "$numberLong":"1681468215788"
                }
        },
    "_createdBy":"[email protected]",
    "_modifiedAt":
        {
            "$date":
                {
                    "$numberLong":"1681468215788"
                }
        },
    "_modifiedby":"[email protected]"
}

Create a new organization

post

Sample request:

POST api/v1/CreateOrganization
{
    "name": "Touchcore Systems",
    "domain": "TSPL"   
}
Authorizations
AuthorizationstringRequired

Standard Authorization header using the Bearer scheme ("bearer {token}")

Body
namestringRequired
domainstringRequired
Responses
post
/api/v1/CreateOrganization

No content

Get all organizations

get
Authorizations
AuthorizationstringRequired

Standard Authorization header using the Bearer scheme ("bearer {token}")

Responses
get
/api/v1/GetOrganizations

No content

Get an organization

get
Authorizations
AuthorizationstringRequired

Standard Authorization header using the Bearer scheme ("bearer {token}")

Path parameters
idstringRequired
Responses
get
/api/v1/GetOrganization/{id}

No content

Last updated