Create Organization
POST/organizations
Create Organization
Request
- application/json
Body
required
companyName stringrequired
The company name of organization.
companyAddress string
The company address of organization.
companyVat string
The company VAT of organization.
customUrl stringrequired
The URL of organization.
timezone stringrequired
The timezone of organization.
finance object
Financial information of the organization.
address object
city string
country string
line1 string
line2 string
postalCode string
state string
Responses
- 200
- 401
- 403
- 404
- 422
- application/json
- Schema
- Example (from schema)
- Example
Schema
data objectrequired
Data of the organization subscribed
id stringrequired
type stringrequired
awsAccountId stringrequired
awsRegion stringrequired
ownerEmail stringrequired
emailDomain stringrequired
customerId stringrequired
customUrl stringrequired
companyName stringrequired
companyVat stringrequired
companyAddress stringrequired
iotEndpoint stringrequired
timezone stringrequired
statistics objectrequired
assetType numberrequired
deck numberrequired
eventRule numberrequired
eventSchedule numberrequired
integrationService numberrequired
location numberrequired
team numberrequired
thing numberrequired
user numberrequired
workOrder numberrequired
workRequest numberrequired
subscriptionPlan stringrequired
subscriptionStatus stringrequired
finance objectrequired
email stringrequired
phoneNumber stringrequired
address objectrequired
city stringrequired
country stringrequired
line1 stringrequired
line2 stringrequired
postalCode stringrequired
state stringrequired
createdAtDateString stringrequired
createdAt numberrequired
{
"data": {
"id": "string",
"type": "string",
"awsAccountId": "string",
"awsRegion": "string",
"ownerEmail": "string",
"emailDomain": "string",
"customerId": "string",
"customUrl": "string",
"companyName": "string",
"companyVat": "string",
"companyAddress": "string",
"iotEndpoint": "string",
"timezone": "string",
"statistics": {
"assetType": 0,
"deck": 0,
"eventRule": 0,
"eventSchedule": 0,
"integrationService": 0,
"location": 0,
"team": 0,
"thing": 0,
"user": 0,
"workOrder": 0,
"workRequest": 0
},
"subscriptionPlan": "string",
"subscriptionStatus": "string",
"finance": {
"email": "string",
"phoneNumber": "string",
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postalCode": "string",
"state": "string"
}
},
"createdAtDateString": "string",
"createdAt": 0
}
}
{
"data": {
"id": "o-organizationId",
"type": "MultiTenant",
"awsAccountId": "965578212345",
"awsRegion": "ap-northeast-1",
"ownerEmail": "ownerEmail@infodeck.io",
"emailDomain": "infodeck.io",
"customerId": "cus_PniZJxxxxxxxxxxC",
"customUrl": "infodeck",
"companyName": "Infodeck",
"companyVat": "VAT-XXXXX",
"companyAddress": "Taipei City",
"iotEndpoint": "a3m4oxxxxxxxxxx-ats.iot.ap-northeast-1.amazonaws.com",
"timezone": "Asia/Taipei",
"statistics": {
"assetType": 2,
"deck": 3,
"eventRule": 0,
"eventSchedule": 0,
"integrationService": 1,
"location": 2,
"team": 0,
"thing": 0,
"user": 2,
"workOrder": 0,
"workRequest": 0
},
"subscriptionPlan": "price_1OyTQxxxxxxxxxxE",
"subscriptionStatus": "active",
"finance": {
"email": "dev+stripetest@infodeck.io",
"phoneNumber": "+886912345678",
"address": {
"city": "Taipei",
"country": "TW",
"line1": "6F, No. 287, Section 3, Nanjing East Road",
"line2": "Songshan District",
"postalCode": "10595",
"state": "Taiwan"
}
},
"createdAtDateString": "2024-01-01T00:00:00.000Z",
"createdAt": 1704067200000
}
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Unauthenticated",
"message": "Authentication is required and has failed or has not yet been provided."
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Forbidden",
"message": "Access to the requested resource is forbidden."
}
The resource hasn't found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The resource hasn't found.
message stringrequired
The resource hasn't found message.
{
"error": "string",
"message": "string"
}
{
"error": "ResourceNotFound",
"message": "The requested resource could not be found."
}
The input data has invalid.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The input data has invalid.
message stringrequired
The input data has invalid message.
{
"error": "string",
"message": "string"
}
{
"error": "ValidationError",
"message": "Input data validation failed."
}
Loading...