---
updatedAt: 2025-09-10T20:58:46.000Z
agentTools:
  projectIndex: https://shipcars.readme.io/llms.txt
---

# Update a company details

This method updates a company details.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "User Management",
    "description": "Ship.Cars User Management",
    "contact": {
      "url": "https://ship.cars",
      "email": "support@ship.cars"
    },
    "version": "1.0.0"
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "oauth2",
        "flows": {
          "password": {
            "tokenUrl": "https://auth.ship.cars/auth/realms/master/protocol/openid-connect/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://ship.cars/api"
    }
  ],
  "paths": {
    "/usermanagement/v2/company": {
      "put": {
        "tags": [
          "Company API"
        ],
        "summary": "Update a company details",
        "description": "This method updates a company details.",
        "operationId": "updateCompany",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "name"
                ],
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "example": "C-KHDBCYFIUVCBLBVNIXDAVTS6UU"
                  },
                  "active": {
                    "type": "boolean",
                    "description": "Whether the company is active or not",
                    "example": true
                  },
                  "name": {
                    "pattern": "^{0}|(?=.*\\S)[\\p{L}\\p{M}\\p{N}\\p{P}\\p{S}\\p{Z}\t]{1,100}$",
                    "type": "string",
                    "example": "Tycoon LLC"
                  },
                  "companyType": {
                    "type": "string",
                    "example": "SHIPPER",
                    "enum": [
                      "SHIPPER",
                      "CARRIER",
                      "API_INTEGRATOR"
                    ]
                  },
                  "companySubtype": {
                    "type": "string",
                    "example": "BROKER",
                    "enum": [
                      "DEALER",
                      "AUCTION",
                      "BROKER",
                      "CARRIER",
                      "PRIVATE"
                    ]
                  },
                  "usDotNumber": {
                    "pattern": "^{0}|[1-9]\\d{0,49}$",
                    "type": "string",
                    "description": "US DOT",
                    "example": "1234567"
                  },
                  "mcNumber": {
                    "pattern": "^{0}|(?=.*\\S)[\\p{L}\\p{M}\\p{N}\\p{P}\\p{S}\\p{Z}\t]{1,50}$",
                    "type": "string",
                    "description": "Transportation MC number",
                    "example": "62806"
                  },
                  "street": {
                    "pattern": "^{0}|(?=.*\\S)[\\p{L}\\p{M}\\p{N}\\p{P}\\p{S}\\p{Z}\t]{1,200}$",
                    "type": "string",
                    "description": "Street",
                    "example": "161 W Cherry St"
                  },
                  "city": {
                    "pattern": "^{0}|(?=.*\\S)[\\p{L}\\p{M}\\p{N}\\p{P}\\p{S}\\p{Z}\t]{1,100}$",
                    "type": "string",
                    "description": "City",
                    "example": "Albion"
                  },
                  "state": {
                    "pattern": "^{0}|[a-zA-Z]{2}$",
                    "type": "string",
                    "description": "Two-letter abbreviation of the state",
                    "example": "IL",
                    "enum": [
                      "AL",
                      "AK",
                      "AS",
                      "AZ",
                      "AR",
                      "AA",
                      "AE",
                      "AP",
                      "CA",
                      "CO",
                      "CT",
                      "DE",
                      "DC",
                      "FL",
                      "GA",
                      "GU",
                      "HI",
                      "ID",
                      "IL",
                      "IN",
                      "IA",
                      "KS",
                      "KY",
                      "LA",
                      "ME",
                      "MD",
                      "MA",
                      "MI",
                      "MN",
                      "MS",
                      "MO",
                      "MT",
                      "NE",
                      "NV",
                      "NH",
                      "NJ",
                      "NM",
                      "NY",
                      "NC",
                      "ND",
                      "MP",
                      "OH",
                      "OK",
                      "OR",
                      "PA",
                      "PR",
                      "RI",
                      "SC",
                      "SD",
                      "TN",
                      "TX",
                      "UT",
                      "VT",
                      "VI",
                      "VA",
                      "WA",
                      "WV",
                      "WI",
                      "WY"
                    ]
                  },
                  "zipCode": {
                    "pattern": "^{0}|\\d{5}(-\\d{4})?$",
                    "type": "string",
                    "description": "US postal code of the area or district",
                    "example": "62806"
                  },
                  "email": {
                    "type": "string",
                    "example": "email@email.com"
                  },
                  "accountingEmail": {
                    "type": "string",
                    "example": "email@email.com"
                  },
                  "phoneNumber": {
                    "pattern": "^{0}|(\\+?1[ -]?)?\\(?\\d{3}\\)?[ -]?\\d{3}[ -]?\\d{4}$",
                    "type": "string",
                    "description": "Company phone number.",
                    "example": "1234567890"
                  },
                  "termsAndConditions": {
                    "type": "string",
                    "description": "Terms and Conditions",
                    "example": "We do prefer..."
                  },
                  "allowInstantBooking": {
                    "type": "boolean",
                    "example": true
                  },
                  "centralDispatchId": {
                    "pattern": "^{0}|(?=.*\\S)[\\p{L}\\p{M}\\p{N}\\p{P}\\p{S}\\p{Z}\t]{1,50}$",
                    "type": "string",
                    "description": "Central dispatch ID",
                    "example": "CD62806"
                  },
                  "logoUrl": {
                    "type": "string",
                    "description": "URL of the logo",
                    "example": "https://image.com/logo.jpg"
                  },
                  "ownerName": {
                    "type": "string",
                    "example": "John Smith"
                  },
                  "ownerId": {
                    "type": "string",
                    "example": "U-DTCN6AO45FG4DJZZRPCDVPROBY"
                  },
                  "useGpsTracking": {
                    "type": "boolean",
                    "description": "GPS Tracking toggle",
                    "example": true
                  },
                  "paymentDetails": {
                    "type": "object",
                    "properties": {
                      "subscriptionName": {
                        "type": "string",
                        "example": "LoadMate"
                      },
                      "subscriptionStatus": {
                        "type": "string",
                        "example": "ACTIVE",
                        "enum": [
                          "CANCELED",
                          "ACTIVE",
                          "TRIALING",
                          "PAST_DUE",
                          "INCOMPLETE",
                          "INCOMPLETE_EXPIRED"
                        ]
                      },
                      "addons": {
                        "type": "array",
                        "example": "AIDamageInspection, LogyText",
                        "items": {
                          "type": "string",
                          "example": "AIDamageInspection, LogyText"
                        }
                      },
                      "subscriptionPrice": {
                        "type": "integer",
                        "format": "int64",
                        "example": 9000
                      },
                      "subscriptionCurrency": {
                        "type": "string",
                        "example": "usd"
                      },
                      "nextPaymentDueTo": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "trialExpiryDate": {
                        "type": "string",
                        "description": "Trial expiration date.",
                        "format": "date-time",
                        "example": "2022-05-26T08:49:50Z"
                      },
                      "paymentMethodProvided": {
                        "type": "boolean",
                        "description": "Describes whether a payment method is provided",
                        "example": true
                      },
                      "lastPaymentResult": {
                        "type": "string",
                        "example": "SUCCESS",
                        "enum": [
                          "SUCCESS",
                          "FAIL"
                        ]
                      },
                      "subscriptionQuantity": {
                        "type": "integer",
                        "description": "Describes accumulated quantity",
                        "format": "int64",
                        "example": 13
                      },
                      "currentPeriodStart": {
                        "type": "string",
                        "description": "Beginning of current billing period date.",
                        "format": "date-time",
                        "example": "2022-05-26T08:49:50Z"
                      },
                      "currentPeriodEnd": {
                        "type": "string",
                        "description": "End of current billing period date.",
                        "format": "date-time",
                        "example": "2022-05-26T08:49:50Z"
                      },
                      "hasUnpaidInvoices": {
                        "type": "boolean",
                        "description": "Indicates if the customer has any pending invoices"
                      },
                      "cancelAtPeriodEnd": {
                        "type": "boolean",
                        "description": "Indicates if the current plan will cancel at the end of the period"
                      },
                      "currentTier": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Tier II"
                          },
                          "upTo": {
                            "type": "integer",
                            "description": "Up to which quantity is this tier",
                            "format": "int64",
                            "example": 50
                          },
                          "flatAmount": {
                            "type": "integer",
                            "description": "Flat amount in cents",
                            "format": "int64",
                            "example": 13000
                          },
                          "unitAmount": {
                            "type": "integer",
                            "description": "Unit amount in cents",
                            "format": "int64",
                            "example": 1300
                          }
                        }
                      },
                      "nextTier": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Tier II"
                          },
                          "upTo": {
                            "type": "integer",
                            "description": "Up to which quantity is this tier",
                            "format": "int64",
                            "example": 50
                          },
                          "flatAmount": {
                            "type": "integer",
                            "description": "Flat amount in cents",
                            "format": "int64",
                            "example": 13000
                          },
                          "unitAmount": {
                            "type": "integer",
                            "description": "Unit amount in cents",
                            "format": "int64",
                            "example": 1300
                          }
                        }
                      }
                    }
                  },
                  "singleOwnerOperator": {
                    "type": "boolean",
                    "example": true
                  },
                  "createdAt": {
                    "type": "string",
                    "description": "Created at",
                    "format": "date-time",
                    "example": "2023-05-09T08:45:00Z"
                  },
                  "lastModified": {
                    "type": "string",
                    "description": "Last modified",
                    "format": "date-time",
                    "example": "2023-05-09T10:12:00Z"
                  },
                  "parentCompanyId": {
                    "type": "string",
                    "example": "C-KHDBCYFIUVCBLBVNIXDAVTS6UU"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "httpStatus": {
                      "type": "integer",
                      "format": "int32"
                    },
                    "errorCode": {
                      "type": "integer",
                      "format": "int32"
                    },
                    "errorMessage": {
                      "type": "string"
                    },
                    "errorDetails": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "httpStatus": {
                      "type": "integer",
                      "format": "int32"
                    },
                    "errorCode": {
                      "type": "integer",
                      "format": "int32"
                    },
                    "errorMessage": {
                      "type": "string"
                    },
                    "errorDetails": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```