Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Api / Assumptions

Method Description
🔹 create() Create assumption
🔹 delete() Delete assumption
🔹 experiment() Experiment
🔹 list() List assumptions
🔹 update() Update assumption

📚 Assumptions API Reference

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

php -f create.php

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

\Kronup\Model\Assumption

🔺 Back to top


delete()

Delete an assumption from a feature

#️⃣ Execute example in terminal

php -f delete.php

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

🔺 Back to top


experiment()

Update experiment details

#️⃣ Execute example in terminal

php -f experiment.php

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

\Kronup\Model\Assumption

🔺 Back to top


list()

Get a list of assumption models

#️⃣ Execute example in terminal

php -f list.php

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

\Kronup\Model\AssumptionsList

🔺 Back to top


update()

Update assumption details

#️⃣ Execute example in terminal

php -f update.php

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  

Return type

\Kronup\Model\Assumption

🔺 Back to top