Update an organization

Updates the specified organization by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

PATCH/v3/organizations/{id}
JWT
organization:write

Parameters

NameTypeInDescription
id*stringpathUnique identifier for the organization.

Request Body Schema

PropertyTypeDescriptionConstraints
namestringName of the organization.min: 1, max: 256
emailstringNotification email of the organization.min: 1, max: 256, format: email
descriptionstringDescription for the organization.min: 0, max: 256
allowedUsersintegerMax number of users the organization is allowed to create. Set to -1 to allow unlimited users.min: -1, max: 2147483647, format: int32
addressobject
addressLine1stringAddress line1.min: 0, max: 256
addressLine2stringAddress line2.min: 0, max: 256
citystringAddress city.min: 0, max: 256
statestringAddress state.min: 0, max: 256
countrystringAddress country.min: 0, max: 256
postalCodestringAddress postal code.min: 0, max: 256
resellerIdstringUnique identifier for the reseller.min: 0, max: 256

Request Example

{
  "name": "string",
  "email": "user@example.com",
  "description": "string",
  "allowedUsers": -1,
  "address": {
    "addressLine1": "string",
    "addressLine2": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "postalCode": "string"
  },
  "resellerId": "string"
}
Triggers webhook: organization.updated
POST <your-webhook-url>
{
  "event": "organization.updated",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "email": "string",
    "description": "string",
    "allowedUsers": 0,
    "address": {
      "addressLine1": "string",
      "addressLine2": "string",
      "city": "string",
      "state": "string",
      "country": "string",
      "postalCode": "string"
    },
    "resellerId": "string",
    "reseller": {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "name": "string",
      "email": "string",
      "description": "string",
      "allowedUsers": 0,
      "allowedOrganizations": 0
    }
  },
  "triggeredAt": "string"
}

Responses

200 OK
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "email": "string",
  "description": "string",
  "allowedUsers": 0,
  "address": {
    "addressLine1": "string",
    "addressLine2": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "postalCode": "string"
  },
  "resellerId": "string",
  "reseller": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "email": "string",
    "description": "string",
    "allowedUsers": 0,
    "allowedOrganizations": 0
  }
}