Skip to main content
Version: Next 🚧

Channels APIs

List channels​

List channels by given scheme ID.

GET /api/schemes/:id/channels

Parameters​

AttributeTypeRequiredDescription
idIntegertrueScheme ID

Return body​

[
{
"slug": "PLHUv",
"name": "Android",
"device_type": "android",
"bundle_id": "*",
"git_url": null,
"has_password": false,
"key": "0f1d47d61f165643e5391e1b5df0ef92"
},
{
"slug": "nnP1s",
"name": "iOS",
"device_type": "ios",
"bundle_id": "*",
"git_url": null,
"has_password": true,
"key": "82acfdb50f8490f70f5e01a5a30ea6e0"
}
]

Create a channel​

Create a channel by given scheme ID.

POST /api/schemes/:id/channels

Parameters​

info

Authentication required.

AttributeTypeRequiredDescription
idIntegertrueScheme ID
nameStringtrueThe name of Channel
device_typeStringtrueavaiable values: ios, android, macos, linux and windows
slugStringfalseThe slug of Channel, random it if not given
bundle_idStringfalsebundle_id for iOS, package name for Android, * is wildcard
git_urlStringfalseThe Git repository URL
passwordStringfalsevisit password

Return body​

  • Return 422 if name is missing or empty
  • Return 201 and response body if successful
{
"slug": "PLHUv",
"name": "Android",
"device_type": "android",
"bundle_id": "*",
"git_url": null,
"has_password": false,
"key": "0f1d47d61f165643e5391e1b5df0ef92"
}

Get a channel​

Get channel by given channel ID.

GET /api/channels/:id

Parameters​

AttributeTypeRequiredDescription
idIntegertrueID

Return body​

{
"slug": "PLHUv",
"name": "Android",
"device_type": "android",
"bundle_id": "*",
"git_url": null,
"has_password": false,
"key": "0f1d47d61f165643e5391e1b5df0ef92"
}

Update a channel​

Update channel metadata by given ID.

PUT /api/channels/:id

Parameters​

info

Authentication required.

AttributeTypeRequiredDescription
idIntegertrueID
nameStringtrueThe name of Channel
device_typeStringtrueavaiable values: ios, android, macos, linux and windows
slugStringfalseThe slug of Channel, random it if not given
bundle_idStringfalsebundle_id for iOS, package name for Android, * is wildcard
git_urlStringfalseThe Git repository URL
passwordStringfalsevisit password

Return body​

  • Return 404 if channel not existed.
  • Return 200 and response body if successful
{
"slug": "zealot",
"name": "Android",
"device_type": "android",
"bundle_id": "com.ews.im",
"git_url": "https://github.com/tryzealot/zealot",
"has_password": true,
"key": "0f1d47d61f165643e5391e1b5df0ef92"
}

Destroy a channel​

Destroy an channel by given ID, this will also destroy all related releases.

DELETE /api/channels/:id

Parameters​

info

Authentication required.

AttributeTypeRequiredDescription
idIntegertrueID

Return body​

  • Return 404 if channel not existed.
  • Return 200 if success.