public function edit($pindId, $description = '', $link = '', $boardId = null, $title = '', $sectionId = null)
    {
        $requestOptions = ['id' => $pindId];

        if (!empty($description)) {
            $requestOptions['description'] = $description;
        }

        if (!empty($link)) {
            $requestOptions['link'] = stripslashes($link);
        }

        if ($boardId !== null) {
            $requestOptions['board_id'] = $boardId;
        }


        if (!empty($title)) {
            $requestOptions['title'] = $title;
        }

        if ($sectionId !== null) {
            $requestOptions['board_section_id'] = $sectionId;
        }

        return $this->post(UrlBuilder::RESOURCE_UPDATE_PIN, $requestOptions);
    }
public function edit($pindId, $description = '', $link = '', $boardId = null, $title = '', $sectionId = null)
    {
        $requestOptions = ['id' => $pindId];

        if (!empty($description)) {
            $requestOptions['description'] = $description;
        }

        if (!empty($link)) {
            $requestOptions['link'] = stripslashes($link);
        }

        if ($boardId !== null) {
            $requestOptions['board_id'] = $boardId;
        }


        if (!empty($title)) {
            $requestOptions['title'] = $title;
        }

        if ($sectionId !== null) {
            $requestOptions['board_section_id'] = $sectionId;
        }

        return $this->post(UrlBuilder::RESOURCE_UPDATE_PIN, $requestOptions);
    }
public function edit ( $ pindId , $ description = '' , $ link = '' , $ boardId = null , $ title = '' , $ sectionId = null ) { $ requestOptions = [ 'id' => $ pindId ] ; if ( ! empty ( $ description ) ) { $ requestOptions [ 'description' ] = $ description ; } if ( ! empty ( $ link ) ) { $ requestOptions [ 'link' ] = stripslashes ( $ link ) ; } if ( $ boardId !== null ) { $ requestOptions [ 'board_id' ] = $ boardId ; } if ( ! empty ( $ title ) ) { $ requestOptions [ 'title' ] = $ title ; } if ( $ sectionId !== null ) { $ requestOptions [ 'board_section_id' ] = $ sectionId ; } return $ this -> post ( UrlBuilder :: RESOURCE_UPDATE_PIN , $ requestOptions ) ; }
Edit pin by ID. You can move pin to a new board by setting this board id.

@param int $pindId
@param string $description
@param string $link
@param int|null $boardId
@param string $title
@param int|null $sectionId
@return bool
Edit pin by ID . You can move pin to a new board by setting this board id .