Api / Assumptions
Method | Description |
---|---|
🔹 create() | Create assumption |
🔹 delete() | Delete assumption |
🔹 experiment() | Experiment |
🔹 list() | List assumptions |
🔹 update() | Update assumption |
Getting started
// Place your API Key 👇 here
$sdk = new \Kronup\Sdk();
// API Call
$sdk->api()->assumptions();
create()
Add an assumption to feature
#️⃣ Execute example in terminal
Request
POST
/teams/{teamId}/channels/{channelId}/features/{featureId}/assms
Type signature
(new \Kronup\Sdk())->api()->assumptions()->create(
string $team_id,
string $channel_id,
string $feature_id,
\Kronup\Model\PayloadAssmCreate $payload_assm_create
): \Kronup\Model\Assumption
Parameters
Name | Type | Description |
---|---|---|
$team_id | string | Team ID |
$channel_id | string | Channel ID |
$feature_id | string | Feature ID |
$payload_assm_create | \Kronup\Model\PayloadAssmCreate |
Return type
delete()
Delete an assumption from a feature
#️⃣ Execute example in terminal
Request
DELETE
/teams/{teamId}/channels/{channelId}/features/{featureId}/assms/{assmId}
Type signature
(new \Kronup\Sdk())->api()->assumptions()->delete(
string $team_id,
string $channel_id,
string $feature_id,
string $assm_id
): bool
Parameters
Name | Type | Description |
---|---|---|
$team_id | string | Team ID |
$channel_id | string | Channel ID |
$feature_id | string | Feature ID |
$assm_id | string | Assumption ID |
Return type
bool
experiment()
Update experiment details
#️⃣ Execute example in terminal
Request
POST
/teams/{teamId}/channels/{channelId}/features/{featureId}/assms/{assmId}/exp
Type signature
(new \Kronup\Sdk())->api()->assumptions()->experiment(
string $team_id,
string $channel_id,
string $feature_id,
string $assm_id,
\Kronup\Model\PayloadAssmExperiment $payload_assm_experiment
): \Kronup\Model\Assumption
Parameters
Name | Type | Description |
---|---|---|
$team_id | string | Team ID |
$channel_id | string | Channel ID |
$feature_id | string | Feature ID |
$assm_id | string | Assumption ID |
$payload_assm_experiment | \Kronup\Model\PayloadAssmExperiment |
Return type
list()
Get a list of assumption models
#️⃣ Execute example in terminal
Request
GET
/teams/{teamId}/channels/{channelId}/features/{featureId}/assms
Type signature
(new \Kronup\Sdk())->api()->assumptions()->list(
string $team_id,
string $channel_id,
string $feature_id,
[ int $page_number = 1, ]
[ int $page_size = 500 ]
): \Kronup\Model\AssumptionsList
Parameters
Name | Type | Description |
---|---|---|
$team_id | string | Team ID |
$channel_id | string | Channel ID |
$feature_id | string | Feature ID |
$page_number | int | [default to 1] |
$page_size | int | [default to 500] |
Return type
update()
Update assumption details
#️⃣ Execute example in terminal
Request
POST
/teams/{teamId}/channels/{channelId}/features/{featureId}/assms/{assmId}
Type signature
(new \Kronup\Sdk())->api()->assumptions()->update(
string $team_id,
string $channel_id,
string $feature_id,
string $assm_id,
\Kronup\Model\PayloadAssmUpdate $payload_assm_update
): \Kronup\Model\Assumption
Parameters
Name | Type | Description |
---|---|---|
$team_id | string | Team ID |
$channel_id | string | Channel ID |
$feature_id | string | Feature ID |
$assm_id | string | Assumption ID |
$payload_assm_update | \Kronup\Model\PayloadAssmUpdate |