Edit Group API

This API is designed to update existing groups on the Alohaa platform and facilitates modifications to group details such as name, description, members, and the group's unique identification.

Endpoint Description

POST https://priority-route.alohaa.ai/v1/external/group

Parameters

Request Headers

FieldValueDescriptionMandatory

Content-Type

application/json

Specifies the content type of the request.

Yes

x-metro-api-key

*************************

API key for authentication purposes.

Yes

Request Body

FieldData TypeDescriptionMandatory

name

String

The name of the group to be created.

Yes

description

String

A brief description of the group.

Yes

member

Array

An array of member phone numbers.

Yes

group_id

String

The unique identifier of the group to edit.

Yes

Sample Request

{
  "x-metro-api-key": "****************"
}

Responses

Success Response

{
  "success": true,
  "response": {
    "group_id": "61bc4453c59e4b22412c3d91"
  }
}

Failure Response

{
  "success": false,
  "error": {
    "code": 1099,
    "reason": "Invalid schema or Missing Data sent"
  }
}

Error Codes

CodeDescription

1006

Agent does not exist

1013

Organisation does not exist

1099

Invalid schema or Missing Data sent

Last updated