Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.58 KB

cards.md

File metadata and controls

57 lines (37 loc) · 1.58 KB

Repo / Cards API

Back to the "Repos API" | Back to the navigation

This api is currently only available to developers in Early Access. To access the API during the Early Access period, you must provide a custom media type in the Accept header.

Both repositories and organisations have projects. The api is only different for getting all project or retrieving a single project. All the example use the repository projects column card api but this also works form the organization api ($client->api('org_projects')->columns()->cards())

$client->api('repo')->projects()->columns()->cards()->configure();

List all cards of a column

$cards = $client->api('repo')->projects()->columns()->cards()->all($columnId);

List one card

$card = $client->api('repo')->projects()->columns()->cards()->show($cardId);

Create a card

Requires authentication.

$card = $client->api('repo')->projects()->columns()->cards()->create($columnId, array('content_type' => 'Issue', 'content_id' => '452'));

Edit a card

Requires authentication.

$card = $client->api('repo')->project()->columns()->cards()->update($cardId, array('note' => 'card note'));

Remove a card

Requires authentication.

$card = $client->api('repo')->projects()->columns()->cards()->deleteCard($cardId);

Move a card

Requires authentication.

$card = $client->api('repo')->projects()->columns()->cards()->move($cardId, array('position' => 'top));