Update a project share

put/projects/{projectId}/shares/{shareId}

Update the permissions or details of an existing project share.

Request Samples

1

Response Samples

1{
2 "id": "share-456",
3 "shareType": "readEditShare",
4 "sharedWith": "username2",
5 "sharedWithType": "user",
6 "createdBy": "username1",
7 "modifiedBy": "username1",
8 "creationTimeStamp": "2024-08-28T10:30:00.000Z",
9 "modifiedTimeStamp": "2024-10-23T14:45:00.000Z",
10 "links": [
11 {
12 "method": "GET",
13 "rel": "self",
14 "href": "/mlPipelineAutomation/v6/projects/project-123/shares/share-456",
15 "uri": "/mlPipelineAutomation/v6/projects/project-123/shares/share-456",
16 "type": "application/vnd.sas.analytics.ml.pipeline.automation.project.share+json"
17 },
18 {
19 "method": "GET",
20 "rel": "up",
21 "href": "/mlPipelineAutomation/v6/projects/project-123/shares",
22 "uri": "/mlPipelineAutomation/v6/projects/project-123/shares",
23 "type": "application/vnd.sas.collection+json"
24 },
25 {
26 "method": "GET",
27 "rel": "project",
28 "href": "/mlPipelineAutomation/v6/projects/project-123",
29 "uri": "/mlPipelineAutomation/v6/projects/project-123",
30 "type": "application/vnd.sas.analytics.ml.pipeline.automation.project+json"
31 },
32 {
33 "method": "PUT",
34 "rel": "update",
35 "href": "/mlPipelineAutomation/v6/projects/project-123/shares/share-456",
36 "uri": "/mlPipelineAutomation/v6/projects/project-123/shares/share-456",
37 "type": "application/vnd.sas.analytics.ml.pipeline.automation.project.share+json"
38 },
39 {
40 "method": "DELETE",
41 "rel": "delete",
42 "href": "/mlPipelineAutomation/v6/projects/project-123/shares/share-456",
43 "uri": "/mlPipelineAutomation/v6/projects/project-123/shares/share-456"
44 }
45 ]
46}

Path Parameters

NameTypeRequiredDescription
projectId
string
true

The automation project ID

shareId
string
true

The project share ID

Request Body

Project share information

This object contains information about a project share, including who the project is shared with and what level of access they have.

NameTypeRequiredDescription
id
string
false

The unique identifier for this share

projectId
string
false

The ID of the automation project being shared

shareType
string
true

The type of access granted by the share

Allowed values:
readSharereadEditShare
sharedWith
string
true

The user or group identifier that the project is shared with

sharedWithType
string
true

The type of entity the project is shared with.

  • user: Share with an individual user
  • group: Share with a group of users

Values must be exactly user, USER, group, or GROUP (case-sensitive, lowercase or UPPERCASE only).

Allowed values:
usergroup
createdBy
string
false

The user who created this share

creationTimeStamp
string<date-time>
false

The timestamp when this share was created

modifiedTimeStamp
string<date-time>
false

The timestamp when this share was last modified

links
array [Link]
false

The links that apply to this project share

Responses

StatusMeaningDescription
200OK

The project share was updated successfully.

HeadersSchema
400Bad Request

The request was invalid.

Schema
403Forbidden

User does not have permission to update this share.

Schema
404Not Found

No share with the provided ID was found.

Schema