/** * @see https://developers.podio.com/doc/organizations/update-organization-22386 */ public static function update($org_id, $attributes = array()) { return Podio::put("/org/{$org_id}", $attributes); }
/** * @see https://developers.podio.com/doc/space-members/update-space-memberships-22398 */ public static function update($space_id, $user_ids, $attributes = array()) { return Podio::put("/space/{$space_id}/member/{$user_ids}", $attributes); }
/** * @see https://developers.podio.com/doc/comments/update-a-comment-22346 */ public static function update($comment_id, $attributes = array()) { return Podio::put("/comment/{$comment_id}", $attributes); }
/** * @see https://developers.podio.com/doc/tasks/update-task-10583674 */ public static function update($task_id, $attributes = array(), $options = array()) { $url = Podio::url_with_options("/task/{$task_id}", $options); return self::member(Podio::put($url, $attributes)); }
/** * @see https://developers.podio.com/doc/spaces/update-space-22391 */ public static function update($space_id, $attributes = array()) { return Podio::put("/space/{$space_id}", $attributes); }
/** * @see https://developers.podio.com/doc/widgets/update-widget-order-22495 */ public static function update_order($ref_type, $ref_id, $attributes = array()) { return Podio::put("/widget/{$ref_type}/{$ref_id}/order", $attributes); }
/** * @see https://developers.podio.com/doc/items/update-item-field-values-22367 */ public static function update($item_id, $field_id, $attributes = array(), $options = array()) { $url = Podio::url_with_options("/item/{$item_id}/value/{$field_id}", $options); return Podio::put($url, $attributes)->json_body(); }
/** * @see https://developers.podio.com/doc/recurrence/create-or-update-recurrence-3349957 */ public static function update($ref_type, $ref_id, $attributes = array()) { return Podio::put("/recurrence/{$ref_type}/{$ref_id}", $attributes); }
/** * @see https://developers.podio.com/doc/tasks/update-task-labels-151769 */ public static function update($label_id, $attributes = array()) { return Podio::put("/task/label/{$label_id}", $attributes); }
/** * @see https://developers.podio.com/doc/users/update-profile-22402 */ public static function update_profile($attributes) { return Podio::put("/user/profile/", $attributes); }
/** * @see https://developers.podio.com/doc/integrations/update-integration-86843 */ public static function update($app_id, $attributes = array()) { return Podio::put("/integration/{$app_id}", $attributes); }
/** * @see https://developers.podio.com/doc/views/update-last-view-5988251 */ public static function update_last($app_id, $attributes = array()) { return Podio::put("/view/app/{$app_id}/last", $attributes); }
/** * @see https://developers.podio.com/doc/tasks/update-task-reference-170733 */ public static function update_reference($task_id, $attributes = array()) { return Podio::put("/task/{$task_id}/ref", $attributes)->body; }
/** * @see https://developers.podio.com/doc/tags/get-objects-on-organization-with-tag-48478 */ public static function get_for_org($org_id, $attributes = array()) { return self::listing(Podio::put("/tag/org/{$org_id}/search/", $attributes)); }
/** * @see https://developers.podio.com/doc/contacts/update-contact-field-60558 */ public static function update_field($profile_id, $key, $attributes = array()) { return Podio::put("/contact/{$profile_id}/{$key}", $attributes); }
/** * @see https://developers.podio.com/doc/tasks/update-task-10583674 */ public static function update($task_id, $attributes = array()) { return self::member(Podio::put("/task/{$task_id}", $attributes)); }
/** * @see https://developers.podio.com/doc/forms/update-form-53808 */ public static function update($form_id, $attributes = array()) { return Podio::put("/form/{$form_id}", $attributes); }
/** * @see https://developers.podio.com/doc/applications/update-an-app-field-22356 */ public static function update($app_id, $field_id, $attributes = array()) { return Podio::put("/app/{$app_id}/field/{$field_id}", $attributes); }
/** * @see https://developers.podio.com/doc/tasks/update-task-private-22434 */ public function update_private($private_flag, $options = array()) { $url = Podio::url_with_options("/task/{$this->id}/private", $options); return Podio::put($url, array('private' => $private_flag))->body; }
/** * Activate app in space. Only applicable to Platform */ public static function activate_for_space($app_id, $space_id, $attributes = array()) { return Podio::put("/app/{$app_id}/activate/{$space_id}", $attributes); }
/** * @see https://developers.podio.com/doc/items/set-participation-7156154 */ public static function participation($item_id, $attributes = array()) { return Podio::put("/item/{$item_id}/participation", $attributes)->json_body(); }
/** * @see https://developers.podio.com/doc/applications/update-app-order-22463 */ public static function update_org($space_id, $attributes = array()) { return Podio::put("/app/space/{$space_id}/order", $attributes); }