User / User Group Scopes

User / User Group Scopes

Update User and User Group Scopes for a Dataset

URL

POST https://tools.deepen.ai/api/v2/datasets/{datasetId}/user_scopes

Request

Path parameters

Parameter name

Parameter type

Description

datasetId

string

Dataset id of the dataset

Request body

Property name

Property type

Description

user_scopes

array

Array of DatasetUserScopeResource

user_group_scopes

array

Array of DatasetUserGroupScopeResource

Example body

{ "user_scopes": [{ "email" : "[email protected]", "scopes" : ["scope1"]}], "user_group_scopes": [{ "user_group_id" : "group_id", "scopes" : ["scope1"]}], }

Response

Returns an empty response on successful completion.

Update Profile Image For User

URL

POST https://tools.deepen.ai/api/v2/profile_image

Request

Request body

Property name

Property type

Description

file_size

Int

file size of profile Image

file_type

string

file type of profile Image

file_origin

string

file origin of profile Image

Example body

{ "file_size": 18611529.0, "file_type": "application/zip",

"file_origin": "localhost" }

Response

Returns an empty response object with profile image id, resumable upload url and signed form data successful completion.

{

'profile_image_id': profile_image_id,

'resumable_upload_url': resumable_upload_url,

'signed_form_data': signed_form_data,

}

URL

GET https://tools.deepen.ai/api/v2/profile_image

Request

Response

Returns an empty response object with profile image url data successful completion.

{

'profile_image_url': signed_url

}