Skip to main content
PUT
/
organisations
/
{orgId}
Update organisation
curl --request PUT \
  --url https://api.meetsquad.ai/organisations/{orgId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Acme Corporation",
  "homepageUrl": "https://acme.example.com",
  "logoUrl": "https://acme.example.com/logo.png",
  "accountType": "HOBBY",
  "billingCycleStartDate": "2025-03-26T22:35:46Z",
  "billingCycleFlexCreditAllowance": 100000,
  "status": "ACTIVE"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Acme Corporation",
    "createdAt": "2025-03-26T22:35:46Z",
    "accountType": "HOBBY",
    "billingCycleStartDate": "2025-03-26T22:35:46Z",
    "billingCycleFlexCreditAllowance": 100000,
    "updatedAt": "2025-03-26T22:35:46Z",
    "status": "ACTIVE",
    "unprocessedFeedbackCount": 123,
    "stripeCustomerId": "cus_1234567890",
    "homepageUrl": "https://acme.example.com",
    "logoUrl": "https://acme.example.com/logo.png"
  }
}

Authorizations

Authorization
string
header
required

JWT authentication for organization-scoped endpoints.

Path Parameters

orgId
string
required

Organization ID

Body

application/json

Request schema for updating an organisation

name
string

Name of the organisation

Example:

"Acme Corporation"

homepageUrl
string | null

URL to the organisation's homepage

Example:

"https://acme.example.com"

logoUrl
string | null

URL to the organisation's logo

Example:

"https://acme.example.com/logo.png"

accountType
enum<string>
Available options:
HOBBY,
PROFESSIONAL,
TEAM
billingCycleStartDate
string

The start date of the current billing cycle.

Example:

"2025-03-26T22:35:46Z"

billingCycleFlexCreditAllowance
number

Number of flex credits available at the start of the current billing cycle.

Example:

100000

status
enum<string>
Available options:
ACTIVE,
ARCHIVED

Response

Organisation updated successfully

Response containing a single organisation

data
object
required

Organisation data