PUT
/
v2
/
orgs
curl --request PUT \
  --url https://eu-vg-edge.moeaymandev.workers.dev/v2/orgs \
  --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 created successfully"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Organization to create
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 created succesfully
success
boolean
message
string