Skip to main content

Create an organization

Create an organization

Request Body REQUIRED
address object

Address of the company

city string REQUIRED

Possible values: length ≤ 90

number string REQUIRED

Possible values: length ≤ 10

street string REQUIRED

Possible values: length ≤ 90

zipCode string REQUIRED

Possible values: length ≤ 15

email email REQUIRED

Possible values: 3 ≤ length ≤ 64

Required when creating an organization, optional when updating an organization.

name string REQUIRED

Possible values: 3 ≤ length ≤ 50

Required when creating an organization, optional when updating an organization.

registrationNumber string

Possible values: length ≤ 90

Registration number of the company

provider boolean

Whether the new organization should be a provider or consumer.

Responses
201

Organization successfully created

Schema OPTIONAL
email string OPTIONAL
id uuid OPTIONAL
name string OPTIONAL
provider boolean OPTIONAL
address object OPTIONAL
city string OPTIONAL
number string OPTIONAL
street string OPTIONAL
zipCode string OPTIONAL
registrationNumber string OPTIONAL
contacts object[] OPTIONAL
id uuid OPTIONAL
createdAt date-time OPTIONAL
createdById uuid OPTIONAL
defaultContact boolean OPTIONAL
email string OPTIONAL
name string OPTIONAL
phone string OPTIONAL
active boolean OPTIONAL
400

Bad Request (e.g. element not found or resource conflict).

Schema OPTIONAL
message string OPTIONAL
timestamp date-time OPTIONAL
traceId string OPTIONAL
type string OPTIONAL
403

Missing permission

Schema OPTIONAL
message string OPTIONAL
timestamp date-time OPTIONAL
traceId string OPTIONAL
type string OPTIONAL
500

Internal server error (Internal service communication or process error).

Schema OPTIONAL
message string OPTIONAL
timestamp date-time OPTIONAL
traceId string OPTIONAL
type string OPTIONAL