Project share information
Create a new share for an automation project
Create a new share to grant access to an automation project for a specified user or group.
Note: Share creation is processed asynchronously. The response returns a 202 Accepted status with the share details (shareType, sharedWith, sharedWithType) and a link to poll for the fully synchronized share with its ID. Clients should use the "getShares" link to retrieve the complete share information after creation.
1{2 "shareType": "readShare",3 "sharedWith": "username2",4 "sharedWithType": "user",5 "links": [6 {7 "method": "GET",8 "rel": "getShares",9 "href": "/mlPipelineAutomation/projects/project-123/shares",10 "uri": "/mlPipelineAutomation/projects/project-123/shares",11 "type": "application/vnd.sas.collection",12 "itemType": "application/vnd.sas.analytics.ml.pipeline.automation.project.share"13 }14 ]15}
This object contains information about a project share, including who the project is shared with and what level of access they have.
| Name | Type | Required | Description |
|---|---|---|---|
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.
Values must be exactly 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 |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 202 | Accepted | The project share creation has been accepted and is being processed asynchronously. The response contains the share request details and a link to poll for the synchronized share. | Schema | |
| 400 | Bad Request | The request was invalid. | Schema | |
| 403 | Forbidden | User does not have permission to share this project. | Schema | |
| 404 | Not Found | No project with the provided ID was found. | Schema |