PATCH: Edit a Folder

https://api.bitsighttech.com/ratings/v1/folders/folder_guid

Edit a folder. Determine how long companies will be in the folder (expiration), edit the folder description, folder name, and sharing options.

Parameters

* Required.

folder_guid

* Required.

[Path] Identify the folder to edit.

Value: [String] Folder unique identifier [folder_guid]. See GET: Folder Details.

name

[Body] Assign a new name for the folder.

Value: [String] Folder name.

content_expiry_days

[Body] Set how long companies will remain in the folder before removal.

Value: [Integer] The number of days.

description

[Body] Set a new description for the folder.

Value: [String] Folder description.

shared_options

[Body] Set folder sharing options.

Value: [Object]

is_shared

[Body] Share the folder with a user.

Value: [Boolean]

shared_with_all_users

[Body] Share the folder with all other users.

Value: [Boolean]

shared_with

[Body] If sharing with a user (is_shared=true), identify the user to share the folder with.

Value: [Array]

email

[Body] Provide the user's email address.

Value: [String] Email address.

can_edit_folder_properties

[Body] Determine if this user is permitted to edit the folder.

Value: [Boolean]

can_edit_folder_contents

[Body] Determine if this user is permitted to edit companies in the folder.

Value: [Boolean]

group_can_edit_contents

[Body] Determine if all users in your group can edit companies in the folder.

Value: [Boolean]

group_can_edit_properties

[Body] Determine if all users in your group can edit the folder.

Value: [Boolean]

Example Request

Place the URL within single quotes to avoid any errors.

curl 'https://api.bitsighttech.com/ratings/v1/folders/fcc8b8c4-4fa3-4735-ac14-405ac7855d70' -X PATCH -H 'Content-Type: application/json' --data-binary '{"name":"folder_name"}' --compressed -u api_token:

The server will return all the details of the folder updated with the ones that you patched.

Status Codes

See common errors and status codes.

200 – Okay
Everything worked as expected.
401 – Unauthorized
No valid API token was provided.
404 – Not Found
The specified resource could not be found.
  • September 17, 2021: Updated request schema; Added status codes.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.