Create Organization
POSThttps://app.infodeck.io/api/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
Responses
- 200
- 401
- 403
- 404
- 422
- application/json
- Schema
- Example (from schema)
- Example
Schema
data objectrequired
{
"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."
}
Authorization: http
name: usertype: httpscheme: bearerbearerFormat: JWTdescription: Get your API token via POST /authentications/tokens
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://app.infodeck.io/api/organizations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"companyName": "string",
"companyAddress": "string",
"companyVat": "string",
"customUrl": "string",
"timezone": "string",
"finance": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postalCode": "string",
"state": "string"
}
}
}'
ResponseClear