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

Api / Organizations

Method Description
🔹 create() Create organization
🔹 delete() Delete organization
🔹 logo() Update logo
🔹 update() Update organization

📚 Organizations API Reference

Getting started

// Place your API Key 👇 here
$sdk = new \Kronup\Sdk();

// API Call
$sdk->api()->organizations();

create()

Add an organization owned by the current user

#️⃣ Execute example in terminal

php -f create.php

Request

POST /organizations

Type signature

(new \Kronup\Sdk())->api()->organizations()->create(
    \Kronup\Model\PayloadOrganizationCreate $payload_organization_create
): \Kronup\Model\Organization

Parameters

Name Type Description
$payload_organization_create \Kronup\Model\PayloadOrganizationCreate  

Return type

\Kronup\Model\Organization

🔺 Back to top


delete()

Remove organization

#️⃣ Execute example in terminal

php -f delete.php

Request

DELETE /organizations/{orgId}

Type signature

(new \Kronup\Sdk())->api()->organizations()->delete(
    string $org_id
): bool

Parameters

Name Type Description
$org_id string Organization ID

Return type

bool

🔺 Back to top


Update organization logo

#️⃣ Execute example in terminal

php -f logo.php

Request

POST /organizations/{orgId}/logo

Type signature

(new \Kronup\Sdk())->api()->organizations()->logo(
    string $org_id,
    [ \SplFileObject $logo ]
): \Kronup\Model\Organization

Parameters

Name Type Description
$org_id string Organization ID
$logo \SplFileObject \SplFileObject Logo - must be a PNG file, exactly 256x256 pixels, smaller than 200KB

Return type

\Kronup\Model\Organization

🔺 Back to top


update()

Update organization details

#️⃣ Execute example in terminal

php -f update.php

Request

POST /organizations/{orgId}

Type signature

(new \Kronup\Sdk())->api()->organizations()->update(
    string $org_id,
    \Kronup\Model\PayloadOrganizationUpdate $payload_organization_update
): \Kronup\Model\Organization

Parameters

Name Type Description
$org_id string Organization ID
$payload_organization_update \Kronup\Model\PayloadOrganizationUpdate  

Return type

\Kronup\Model\Organization

🔺 Back to top