channel

create a channel

Create a channel

post/instances/{id}/client/action/create-channel

Request

  • Base URL: https://waapi.app/api/v1
  • URL: https://waapi.app/api/v1/instances/{id}/client/action/create-channel
  • Auth: HTTP bearer

Path parameters

idinteger required

Instance ID

Request body

namestring required
descriptionstring
pictureUrlstring

Example request

{
  "name": "My Channel Name",
  "description": "My Channel description",
  "pictureUrl": "https://tmp.waapi.app/ce81b23e5ac34a428c79705a08ea9f51:waapi/static/logo.png"
}

Response

Request reached the instance. data.status reports whether the action was carried out; on error data carries message and explanation.

status'success' | 'error'

Whether the request reached the instance. success here does not mean the action was carried out — that is reported by data.status, which is the authoritative one. A malformed input arrives as status: success with data.status: error.

Example response

{
  "status": "success",
  "data": {
    "status": "success"
  },
  "links": {
    "self": "https://waapi.app/api/v1/instances/1/client/action/create-channel"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.