Skip to content

"Cannot put" for Laravel app #78

@sysq0

Description

@sysq0

Hi there,

I want to update a checklist item with :

$client = new Client();
            $client->authenticate(env('TRELLO_API_KEY'), env('TRELLO_API_TOKEN'), Client::AUTH_URL_CLIENT_ID);

$card = $client->cards()->show($report_category->trello_card_id);
$checklistId = $card['idChecklists'][0];
$checklists = $client->card()->checklists()->all($card['id']);
$checkItemId = $checklists[0]['checkItems'][0]['id'];

$checkItem = $client->card()->checklists()->updateItem($card['id'], $checklistId, $checkItemId,
        [
               'state' => 'complete'
         ]
 );

But I want to execute this, an error appears :
Trello \ Exception \ RuntimeException (404)

Cannot PUT /1/cards/5d4a20142da4a07bbc21b99a/checklists/5d4a2015dff67c16ccac8d64/checkItem/5d4ab33e48e8396343770dc9?key=***&token=

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions