Groups

Catalog


POST Authorize Create group conversation

Request path:

https://staging.server.kahla.app/Groups/CreateGroupConversation

Request content type:

application/x-www-form-urlencoded

Form content example:

GroupName=yourGroupName&JoinPassword=yourJoinPassword 

Request form:

Name Required Type
GroupName Required Text
JoinPassword Not required Text

Possible Response:

{
  "value": 0,
  "code": 0,
  "message": "an example string."
}

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

GET Authorize Group summary

Request path:

https://staging.server.kahla.app/Groups/GroupSummaryTry

Request example:

https://staging.server.kahla.app/Groups/GroupSummary?id=0

Request arguments:

Name Required Type
id Required Number

Possible Response:

{
  "value": {
    "imagePath": "an example string.",
    "name": "an example string.",
    "hasPassword": true,
    "ownerId": "an example string.",
    "id": 0,
    "hasTimer": true,
    "conversationCreateTime": "2019-08-25T21:00:44.7222668Z"
  },
  "code": 0,
  "message": "an example string."
}

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize Join group

Request path:

https://staging.server.kahla.app/Groups/JoinGroup

Request content type:

application/x-www-form-urlencoded

Form content example:

groupName=yourgroupName&joinPassword=yourjoinPassword 

Request form:

Name Required Type
groupName Required Text
joinPassword Not required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize Transfer group owner

Request path:

https://staging.server.kahla.app/Groups/TransferGroupOwner

Request content type:

application/x-www-form-urlencoded

Form content example:

groupName=yourgroupName&targetUserId=yourtargetUserId 

Request form:

Name Required Type
groupName Required Text
targetUserId Required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize Kick member

Request path:

https://staging.server.kahla.app/Groups/KickMember

Request content type:

application/x-www-form-urlencoded

Form content example:

groupName=yourgroupName&targetUserId=yourtargetUserId 

Request form:

Name Required Type
groupName Required Text
targetUserId Required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize Dissolve group

Request path:

https://staging.server.kahla.app/Groups/DissolveGroup

Request content type:

application/x-www-form-urlencoded

Form content example:

groupName=yourgroupName 

Request form:

Name Required Type
groupName Required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize Leave group

Request path:

https://staging.server.kahla.app/Groups/LeaveGroup

Request content type:

application/x-www-form-urlencoded

Form content example:

groupName=yourgroupName 

Request form:

Name Required Type
groupName Required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize Set group muted

Request path:

https://staging.server.kahla.app/Groups/SetGroupMuted

Request content type:

application/x-www-form-urlencoded

Form content example:

groupName=yourgroupName&setMuted=false 

Request form:

Name Required Type
groupName Required Text
setMuted Required Boolean

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize Update group info

Request path:

https://staging.server.kahla.app/Groups/UpdateGroupInfo

Request content type:

application/x-www-form-urlencoded

Form content example:

GroupName=yourGroupName&NewName=yourNewName&AvatarPath=yourAvatarPath 

Request form:

Name Required Type
GroupName Required Text
NewName Not required Text
AvatarPath Not required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize Update group password

Request path:

https://staging.server.kahla.app/Groups/UpdateGroupPassword

Request content type:

application/x-www-form-urlencoded

Form content example:

GroupName=yourGroupName&NewJoinPassword=yourNewJoinPassword 

Request form:

Name Required Type
GroupName Required Text
NewJoinPassword Not required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}