Update Organization
PUT/organizations/:organizationId
Update Organization
Request
Path Parameters
The ID of organization.
- application/json
Body
required
The company name of organization.
The company VAT of organization.
The URL of organization.
The address of organization.
The currency code (ISO 4217) for labor cost calculations. Supported: USD, CAD, MXN, BRL, ARS, EUR, GBP, CHF, SEK, NOK, PLN, SGD, MYR, AUD, NZD, JPY, CNY, HKD, INR, KRW, AED, ZAR.
finance object
Financial information of the organization (optional).
address object
Responses
- 200
- 401
- 403
- 404
- 422
- application/json
- Schema
- Example (from schema)
- Example
Schema
data objectrequired
Data of the organization.
statistics objectrequired
finance objectrequired
address 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": {},
"subscriptionPlan": "string",
"subscriptionStatus": "string",
"finance": {
"email": "string",
"phoneNumber": "string",
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postalCode": "string",
"state": "string"
}
},
"updatedAtDateString": "string",
"updatedAt": 0
}
}
{
"data": {
"id": "o-organizationId",
"type": "MultiTenant",
"awsAccountId": "965578212345",
"awsRegion": "ap-northeast-1",
"ownerEmail": "ownerEmail@infodeck.io",
"emailDomain": "infodeck.io",
"customerId": "acc_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+paymenttest@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"
}
},
"updatedAtDateString": "2024-01-31T00:00:00.000Z",
"updatedAt": 1706659200000
}
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
The request has not permission.
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
The request has not permission.
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
The resource hasn't found.
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
The input data has invalid.
The input data has invalid message.
{
"error": "string",
"message": "string"
}
{
"error": "ValidationError",
"message": "Input data validation failed."
}