Replace owner-managed session sharing grants
curl --request PUT \
--url https://harness.example.com/session-uploads/{id}/sharing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://harness.example.com/session-uploads/{id}/sharing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://harness.example.com/session-uploads/{id}/sharing"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Sessions
Replace owner-managed session sharing grants
Idempotently sets private, workspace-wide, or selected-active-member access. Only the owner may call this endpoint.
PUT
/
session-uploads
/
{id}
/
sharing
Replace owner-managed session sharing grants
curl --request PUT \
--url https://harness.example.com/session-uploads/{id}/sharing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://harness.example.com/session-uploads/{id}/sharing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://harness.example.com/session-uploads/{id}/sharing"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Authorizations
OAuth 2.0 access token obtained through RFC 8628 at /api/auth/device/code and /api/auth/oauth2/token. The API enforces governance:read, session:write, and client-status:write as appropriate.
Path Parameters
Body
application/json
Response
Sharing grants replaced
