POST
/
v2
/
orgs
/
{org_id}
curl --request POST \
  --url https://eu-vg-edge.moeaymandev.workers.dev/v2/orgs/{org_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "preferredLanguage": "<string>",
  "squarePhotoURL": "<string>",
  "widgetIDs": [
    "<string>"
  ],
  "adminIDs": [
    "<string>"
  ],
  "canSelfEdit": true,
  "disallowAnyTags": true,
  "dashboardLayout": "vertical",
  "lastModified": 123
}'
{
  "success": true,
  "message": "Organization updated successfully"
}

Authorizations

Authorization
string
header
required

Workspace secret API key, found in the workspace settings page (top left).

Path Parameters

org_id
string
required

The ID of the organization to update

Body

application/json
New organization data
name
string
required

The name of the organization client.

preferredLanguage
string

Preferred language for the client ISO6391 code (fr for french, no for norwegian).

squarePhotoURL
string

URL to the square photo of the organization client.

widgetIDs
string[]

List of agent IDs associated with the organization client.

adminIDs
string[]

List of admin IDs associated with the organization client.

canSelfEdit
boolean

Indicates if the organization clients can self-edit.

disallowAnyTags
boolean

Indicates if any tags are disallowed.

dashboardLayout
enum<string>

Layout of the dashboard.

Available options:
vertical,
horizontal
lastModified
number

Timestamp indicating when the organization client was last modified.

Response

200
application/json
Organization updated succesfully
success
boolean
message
string