Download OpenAPI specification:Download
, Provides REST APIs for managing and obtaining the necessary credentials to access Synapse. ,
, ,, Authentication to Synapse services requires an access token passed in the HTTP Authorization header, as per the ,,HTTP bearer authorization,, standard. The access token incorporates a set of 'scopes' and the documentation for each service requiring authorization lists the scopes which the access token must include in order to use that service. ,
, ,, Synapse currently supports four modes of obtaining an access token: ,
, ,, The username and password are exchanged for an access token using ,,POST /login2,, service. This method should only be used by Synapse itself. No other application should prompt a user for their user name and password. ,
, ,, Synapse allows authentication via a white listed OAuth 2.0 provider. Currently only Google is supported. The final step is ,,POST /oauth2/session2,, which returns an access token which is included as a Bearer token in the Authorization header of subsequent requests as described above. Only Synapse itself may use this service, as redirection back from the OAuth2 provider is only allowed to the Synapse web portal. ,
, ,, A registered OAuth 2.0 client can use the ,,OAuth 2.0 services,, to authenticate, the final step of which is a request to the token endpoint: ,,POST /oauth2/token,, The returned access token is included as a Bearer token in the Authorization header of subsequent requests as described above. ,
, ,, A user may freely generate up to 100 Personal access tokens (PATs) with scoped access using ,,POST /personalAccessToken,,. Unlike OAuth access tokens, ,
, The returned personal access token is included as a Bearer token in the Authorization header of subsequent requests as described above. ,
username | string |
password | string |
authenticationReceipt | string |
{- "username": "string",
- "password": "string",
- "authenticationReceipt": "string"
}
{- "sessionToken": "string",
- "accessToken": "string",
- "acceptsTermsOfUse": true,
- "authenticationReceipt": "string"
}
{- "authenticatedOn": "string"
}
newPassword | string |
concreteType | string |
object (org.sagebionetworks.repo.model.auth.PasswordResetSignedToken) Signed token containing the the information necessary to reset the password for a user. |
{- "newPassword": "string",
- "concreteType": "string",
- "passwordChangeToken": {
- "concreteType": "string",
- "hmac": "string",
- "version": 0,
- "expiresOn": "string",
- "createdOn": "string",
- "userId": "string",
- "validity": "string"
}
}
{- "secretKey": "string"
}
provider | string |
redirectUrl | string |
state | string |
{- "provider": "string",
- "redirectUrl": "string",
- "state": "string"
}
{- "authorizationUrl": "string"
}
provider | string |
authenticationCode | string |
redirectUrl | string |
{- "provider": "string",
- "authenticationCode": "string",
- "redirectUrl": "string"
}
{- "sessionToken": "string",
- "accessToken": "string",
- "acceptsTermsOfUse": true,
- "authenticationReceipt": "string"
}
provider | string |
authenticationCode | string |
redirectUrl | string |
{- "provider": "string",
- "authenticationCode": "string",
- "redirectUrl": "string"
}
{- "aliasId": 0,
- "etag": "string",
- "principalId": 0,
- "alias": "string",
- "type": "string"
}
provider | string |
authenticationCode | string |
redirectUrl | string |
userName | string |
{- "provider": "string",
- "authenticationCode": "string",
- "redirectUrl": "string",
- "userName": "string"
}
{- "sessionToken": "string",
- "accessToken": "string",
- "acceptsTermsOfUse": true,
- "authenticationReceipt": "string"
}
Synapse-Authorization | string |
scope | Array of strings The scopes that have been granted to this token |
object The OIDC claims that can be accessed using this token. | |
name | string |
{- "scope": [
- "string"
], - "userInfoClaims": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "name": "string"
}
{- "token": "string"
}
{- "results": [
- {
- "id": "string",
- "userId": "string",
- "scopes": [
- "string"
], - "userInfoClaims": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "name": "string",
- "createdOn": "string",
- "lastUsed": "string",
- "state": "string"
}
], - "nextPageToken": "string"
}
id required | number The unique ID of the token, which is the unique ID (the "jti" claim) contained in the JWT |
{- "id": "string",
- "userId": "string",
- "scopes": [
- "string"
], - "userInfoClaims": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "name": "string",
- "createdOn": "string",
- "lastUsed": "string",
- "state": "string"
}
The OpenID Connect (OIDC) services implement OAuth 2.0 with the OpenID identity extensions.
{- "issuer": "string",
- "authorization_endpoint": "string",
- "token_endpoint": "string",
- "revocation_endpoint": "string",
- "userinfo_endpoint": "string",
- "jwks_uri": "string",
- "registration_endpoint": "string",
- "scopes_supported": [
- "string"
], - "response_types_supported": [
- "string"
], - "grant_types_supported": [
- "string"
], - "subject_types_supported": [
- "string"
], - "id_token_signing_alg_values_supported": [
- "string"
], - "userinfo_signing_alg_values_supported": [
- "string"
], - "request_object_signing_alg_values_supported": [
- "string"
], - "claims_supported": [
- "string"
], - "service_documentation": "string",
- "claims_parameter_supported": true,
- "token_endpoint_auth_methods_supported": [
- "string"
]
}
client_id | string |
client_name | string |
redirect_uris | Array of strings Array of Redirection URI values used by the Client. One of these registered Redirection URI values MUST exactly match the redirect_uri parameter value used in each Authorization Request. If the 'sector_identifier_uri' is provided then the URIs in this list must be in the list of URIs in the JSON document referenced by the sector_identifier_uri. |
verified | boolean |
client_uri | string |
policy_uri | string |
tos_uri | string |
sector_identifier_uri | string |
sector_identifier | string |
userinfo_signed_response_alg | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
etag | string |
{- "client_id": "string",
- "client_name": "string",
- "redirect_uris": [
- "string"
], - "verified": true,
- "client_uri": "string",
- "policy_uri": "string",
- "tos_uri": "string",
- "sector_identifier_uri": "string",
- "sector_identifier": "string",
- "userinfo_signed_response_alg": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "etag": "string"
}
{- "client_id": "string",
- "client_name": "string",
- "redirect_uris": [
- "string"
], - "verified": true,
- "client_uri": "string",
- "policy_uri": "string",
- "tos_uri": "string",
- "sector_identifier_uri": "string",
- "sector_identifier": "string",
- "userinfo_signed_response_alg": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "etag": "string"
}
nextPageToken | string returned along with a page of results, this is passed to the server to retrieve the next page. |
{- "results": [
- {
- "client_id": "string",
- "client_name": "string",
- "redirect_uris": [
- "string"
], - "verified": true,
- "client_uri": "string",
- "policy_uri": "string",
- "tos_uri": "string",
- "sector_identifier_uri": "string",
- "sector_identifier": "string",
- "userinfo_signed_response_alg": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "etag": "string"
}
], - "nextPageToken": "string"
}
id required | string the ID of the client to retrieve |
{- "client_id": "string",
- "client_name": "string",
- "redirect_uris": [
- "string"
], - "verified": true,
- "client_uri": "string",
- "policy_uri": "string",
- "tos_uri": "string",
- "sector_identifier_uri": "string",
- "sector_identifier": "string",
- "userinfo_signed_response_alg": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "etag": "string"
}
id required | string |
client_id | string |
client_name | string |
redirect_uris | Array of strings Array of Redirection URI values used by the Client. One of these registered Redirection URI values MUST exactly match the redirect_uri parameter value used in each Authorization Request. If the 'sector_identifier_uri' is provided then the URIs in this list must be in the list of URIs in the JSON document referenced by the sector_identifier_uri. |
verified | boolean |
client_uri | string |
policy_uri | string |
tos_uri | string |
sector_identifier_uri | string |
sector_identifier | string |
userinfo_signed_response_alg | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
etag | string |
{- "client_id": "string",
- "client_name": "string",
- "redirect_uris": [
- "string"
], - "verified": true,
- "client_uri": "string",
- "policy_uri": "string",
- "tos_uri": "string",
- "sector_identifier_uri": "string",
- "sector_identifier": "string",
- "userinfo_signed_response_alg": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "etag": "string"
}
{- "client_id": "string",
- "client_name": "string",
- "redirect_uris": [
- "string"
], - "verified": true,
- "client_uri": "string",
- "policy_uri": "string",
- "tos_uri": "string",
- "sector_identifier_uri": "string",
- "sector_identifier": "string",
- "userinfo_signed_response_alg": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "etag": "string"
}
id required | string |
client_id | string |
client_name | string |
redirect_uris | Array of strings Array of Redirection URI values used by the Client. One of these registered Redirection URI values MUST exactly match the redirect_uri parameter value used in each Authorization Request. If the 'sector_identifier_uri' is provided then the URIs in this list must be in the list of URIs in the JSON document referenced by the sector_identifier_uri. |
verified | boolean |
client_uri | string |
policy_uri | string |
tos_uri | string |
sector_identifier_uri | string |
sector_identifier | string |
userinfo_signed_response_alg | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
etag | string |
{- "client_id": "string",
- "client_name": "string",
- "redirect_uris": [
- "string"
], - "verified": true,
- "client_uri": "string",
- "policy_uri": "string",
- "tos_uri": "string",
- "sector_identifier_uri": "string",
- "sector_identifier": "string",
- "userinfo_signed_response_alg": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "etag": "string"
}
{- "reverificationRequired": true
}
clientId | string |
scope | string |
object (org.sagebionetworks.repo.model.oauth.OIDCClaimsRequest) Stores OIDC claims and details in accordance with OIDC Core 1.0 Claims Request. The keys used in these maps are OIDCClaimNames | |
responseType | string |
redirectUri | string |
nonce | string |
userId | string |
authenticatedAt | string |
authorizedAt | string |
{- "clientId": "string",
- "scope": "string",
- "claims": {
- "userinfo": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "id_token": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}
}, - "responseType": "string",
- "redirectUri": "string",
- "nonce": "string",
- "userId": "string",
- "authenticatedAt": "string",
- "authorizedAt": "string"
}
{- "clientId": "string",
- "redirect_uri": "string",
- "scope": [
- "string"
]
}
clientId | string |
scope | string |
object (org.sagebionetworks.repo.model.oauth.OIDCClaimsRequest) Stores OIDC claims and details in accordance with OIDC Core 1.0 Claims Request. The keys used in these maps are OIDCClaimNames | |
responseType | string |
redirectUri | string |
nonce | string |
userId | string |
authenticatedAt | string |
authorizedAt | string |
{- "clientId": "string",
- "scope": "string",
- "claims": {
- "userinfo": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "id_token": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}
}, - "responseType": "string",
- "redirectUri": "string",
- "nonce": "string",
- "userId": "string",
- "authenticatedAt": "string",
- "authorizedAt": "string"
}
{- "granted": true
}
clientId | string |
scope | string |
object (org.sagebionetworks.repo.model.oauth.OIDCClaimsRequest) Stores OIDC claims and details in accordance with OIDC Core 1.0 Claims Request. The keys used in these maps are OIDCClaimNames | |
responseType | string |
redirectUri | string |
nonce | string |
userId | string |
authenticatedAt | string |
authorizedAt | string |
{- "clientId": "string",
- "scope": "string",
- "claims": {
- "userinfo": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "id_token": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}
}, - "responseType": "string",
- "redirectUri": "string",
- "nonce": "string",
- "userId": "string",
- "authenticatedAt": "string",
- "authorizedAt": "string"
}
{- "access_code": "string"
}
grant_type required | string (org.sagebionetworks.repo.model.oauth.OAuthGrantType) Enum: "authorization_code" "refresh_token" authorization_code or refresh_token |
code | string required if grant_type is authorization_code |
redirect_uri | string |
refresh_token | string required if grant_type is refresh_token |
scope | string only provided if grant_type is refresh_token |
verifiedOauthClientId required | string |
{- "access_token": "string",
- "refresh_token": "string",
- "id_token": "string",
- "token_type": "string",
- "expires_in": 0
}
nextPageToken | string |
{- "results": [
- {
- "client": {
- "client_id": "string",
- "client_name": "string",
- "redirect_uris": [
- "string"
], - "verified": true,
- "client_uri": "string",
- "policy_uri": "string",
- "tos_uri": "string",
- "sector_identifier_uri": "string",
- "sector_identifier": "string",
- "userinfo_signed_response_alg": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "etag": "string"
}, - "authorizedOn": "string",
- "lastUsed": "string"
}
], - "nextPageToken": "string"
}
clientId required | string |
nextPageToken | string |
{- "results": [
- {
- "tokenId": "string",
- "clientId": "string",
- "principalId": "string",
- "name": "string",
- "scopes": [
- "string"
], - "claims": {
- "userinfo": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "id_token": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}
}, - "authorizedOn": "string",
- "lastUsed": "string",
- "modifiedOn": "string",
- "etag": "string"
}
], - "nextPageToken": "string"
}
tokenId required | string |
{- "tokenId": "string",
- "clientId": "string",
- "principalId": "string",
- "name": "string",
- "scopes": [
- "string"
], - "claims": {
- "userinfo": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "id_token": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}
}, - "authorizedOn": "string",
- "lastUsed": "string",
- "modifiedOn": "string",
- "etag": "string"
}
tokenId required | string |
tokenId | string |
clientId | string |
principalId | string |
name | string |
scopes | Array of strings An array containing each scope that this refresh token grants access to. |
object (org.sagebionetworks.repo.model.oauth.OIDCClaimsRequest) Stores OIDC claims and details in accordance with OIDC Core 1.0 Claims Request. The keys used in these maps are OIDCClaimNames | |
authorizedOn | string |
lastUsed | string |
modifiedOn | string |
etag | string |
{- "tokenId": "string",
- "clientId": "string",
- "principalId": "string",
- "name": "string",
- "scopes": [
- "string"
], - "claims": {
- "userinfo": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "id_token": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}
}, - "authorizedOn": "string",
- "lastUsed": "string",
- "modifiedOn": "string",
- "etag": "string"
}
{- "tokenId": "string",
- "clientId": "string",
- "principalId": "string",
- "name": "string",
- "scopes": [
- "string"
], - "claims": {
- "userinfo": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "id_token": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}
}, - "authorizedOn": "string",
- "lastUsed": "string",
- "modifiedOn": "string",
- "etag": "string"
}
tokenId required | string |
verifiedOauthClientId required | string |
{- "tokenId": "string",
- "clientId": "string",
- "principalId": "string",
- "name": "string",
- "scopes": [
- "string"
], - "claims": {
- "userinfo": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}, - "id_token": {
- "property1": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}, - "property2": {
- "essential": true,
- "value": "string",
- "values": [
- "string"
]
}
}
}, - "authorizedOn": "string",
- "lastUsed": "string",
- "modifiedOn": "string",
- "etag": "string"
}
, APIs to manage two factor authentication (2FA) in Synapse. ,<,/p ,
, Synapse currently supports using authenticator applications that can generate a ,,TOTP,, that is used as a second factor. ,
, ,, To enable 2FA two requests are involved:
,
,
, In order to login through 2FA an additional request needs to be performed after the user attempts to authenticate (e.g. through the ,,POST /login2,, API). If the user has 2FA enabled, they will receive a 401 and the body of the response will contain a twoFaToken that can be used in the ,,POST /2fa/token,, API to obtain an access token. ,
,,
, The user can additionally generate a set of recovery codes using the ,,POST /2fa/recoveryCodes,, API. The codes are one time use and can be used in place of a TOTP code when performing 2FA authentication. The body of the ,,POST /2fa/token,, request should specify as otpType RECOVERY_CODE and the value of the otpCode should match one of the generated codes. ,
{- "secretId": "string",
- "secret": "string",
- "alg": "string",
- "digits": 0,
- "period": 0
}
{- "status": "string"
}
userId | integer <int32> |
twoFaToken | string |
otpCode | string |
otpType | string |
{- "userId": 0,
- "twoFaToken": "string",
- "otpCode": "string",
- "otpType": "string"
}
{- "sessionToken": "string",
- "accessToken": "string",
- "acceptsTermsOfUse": true,
- "authenticationReceipt": "string"
}
{- "codes": [
- "string"
]
}
, The ,, Data Repository Service,, API provides access to data objects in single, standard way regardless of where they are stored and how they are managed. The data objects for which information can be fetched are ,,FileEntity,, and ,,Dataset,,.The data object that is downloaded is a file. ,
, ,, The supported end points for DRS are: ,
, Use the ,, GET /service-info ,, API to get information about GA4GH-compliant web services, including DRS services, to be aggregated into registries and made available via a standard API. ,
, Use the ,, GET /objects/{object_id} ,, API to get information about individual DRS objects. ,{- "id": "string",
- "name": "string",
- "type": {
- "group": "string",
- "artifact": "string",
- "version": "string"
}, - "description": "string",
- "organization": {
- "name": "string",
- "url": "string"
}, - "contactUrl": "string",
- "documentationUrl": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "environment": "string",
- "version": "string"
}
object_id required | string |
expand required | boolean |
{- "id": "string",
- "name": "string",
- "self_uri": "string",
- "size": 0,
- "created_time": "string",
- "updated_time": "string",
- "version": "string",
- "mime_type": "string",
- "checksums": [
- {
- "checksum": "string",
- "type": "string"
}
], - "contents": [
- {
- "name": "string",
- "id": "string",
- "drs_uri": "string"
}
], - "access_methods": [
- {
- "type": "string",
- "access_id": "string"
}
], - "description": "string"
}
, A FileHandle is an abstraction for a reference to a file in Synapse. For details on the various types see: ,,FileHandle,,. ,
, ,, ,,Multi-part File Upload API,, ,
, ,, In order to ensure file upload is robust, all files must be uploaded to Synapse in 'parts'. This means clients are expected to divide each file into 'parts' and upload each part separately. Since Synapse tracks the state of all multi-part uploads, upload failure can be recovered simply by uploading all parts that Synapse reports as missing. ,
, ,, ,,Note: For multi-part upload 1 MB is defined as 1024*1024 bytes ,, ,
, ,, The first task in multi-part upload is choosing a part size. The minimum part size is 5 MB (1024*1024*5) and the maximum part size is 5 GB (1024*1024*1024*5). Therefore, any file with a size less than or equal to 5 MB will have a single part and a partSize=5242880. The maximum number of parts for a single file 10,000 parts. The following should be used to choose a part size: ,
, ,, partSize = max(5242880, (fileSize/10000)) ,
, ,, Once a partSize is chosen, a multi-part upload can be started using the following: ,,POST /file/multipart,, which will return an ,,MultipartUploadStatus,,. The client is expected to use MultipartUploadStatus to drive the upload. The client will need to upload each missing part (parts with '0' in the partsState) as follows: ,
, ,, ,
, Once all parts have been successfully added to the multi-part upload, the upload can be completed using: ,,PUT /file/multipart/{uploadId}/complete,, to produce a new ,,FileHandle,, If the upload fails for any reason, the client should start over ( ,,POST /file/multipart,,) and continue by uploading any parts that are reported as missing. ,
, ,, ,,Multi-part File Copy API,, ,
, ,, The multipart API supports a robust copy of existing files to other locations (e.g. in case of a data migration) without the need to download and re-upload the file. This is currently supported only from and to S3 storage locations that reside in the same region. In order to initiate a multipart copy, a ,,POST /file/multipart,, request can be sent using as the body of the request a ,,MultipartUploadCopyRequest,,. ,
, ,, The part size allows to parallelize the copy in multiple sub-parts, the same limits of the upload applies to the copy (e.g. it is possible to copy a file in a single part up to 5 GB). When initiating a copy we recommend to choose the part size as follows: ,
, ,, partSize = max(104857600, (fileSize/10000)) ,
, ,, Once the multipart copy is initiated the process is the same as the multipart upload: ,
, ,, ,
, Note about the copy integrity: The resulting file handle will have the same content MD5 of the source file handle, but synapse does not try to re-compute or verify this value. Instead, the integrity check is performed by the cloud provider (currently only S3) during the copy request for the part (the request sent to the pre-signed URL). Each copy pre-signed URL is signed with a special header that makes sure that the source file didn't change during the copy, if this is the case the PUT request to the pre-signed URL will fail and a new copy should be re-started. ,
, ,, ,,Associating FileHandles with Synapse objects,, ,
, ,, FileHandles can be associated with various type of objects such as a ,,FileEntity,, and ,,WikiPage,,. The full list of association types can be found in the ,,FileHandleAssociateType,, enumeration. ,
, Note that a file handle MUST always be associated with an object, if a file handle is not associated with an objects for more than 30 days Synapse will mark it as ,,UNLINKED,, and eventually archive or delete it from the system. ,
, ,, For more information see the following: ,
, ,,resource, | , ,,limit, | , ,,notes, | , ,
---|---|---|
,Minimum file size, | , ,,0 bytes, | , ,, | , ,
,Maximum file size, | , ,,5 TB (5,497,558,100,000 bytes), | , ,, | , ,
,Maximum number of parts, | , ,,10,000, | , ,, | , ,,Minimum file part size, | , ,,5 MB (5,242,880 bytes), | , ,,The recommended part size for an upload is max(5242880, (fileSize/10000)). For a copy max(104857600, (fileSize/10000))., | , ,, ,
,Maximum file part size, | , ,,5 GB (5,368,709,120 bytes), | , ,, | , ,
Array of objects (org.sagebionetworks.repo.model.file.FileHandleAssociation) Defines the files to get. | |
includePreSignedURLs | boolean |
includeFileHandles | boolean |
includePreviewPreSignedURLs | boolean |
{- "requestedFiles": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
], - "includePreSignedURLs": true,
- "includeFileHandles": true,
- "includePreviewPreSignedURLs": true
}
{- "requestedFiles": [
- {
- "fileHandleId": "string",
- "fileHandle": {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}, - "preSignedURL": "string",
- "previewPreSignedURL": "string",
- "failureCode": "string"
}
]
}
handleIdToCopyFrom required | string the file handle it from which to duplicate the data |
id | string |
etag | string |
createdBy | string |
createdOn | string |
modifiedOn | string |
concreteType | string |
contentType | string |
contentMd5 | string |
fileName | string |
storageLocationId | integer <int32> |
contentSize | integer <int32> |
status | string |
bucketName | string |
key | string |
previewId | string |
isPreview | boolean |
{- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "bucketName": "string",
- "key": "string",
- "previewId": "string",
- "isPreview": true
}
{- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "bucketName": "string",
- "key": "string",
- "previewId": "string",
- "isPreview": true
}
handleId required | string The ID of the FileHandle to fetch. |
{- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
id | string |
etag | string |
createdBy | string |
createdOn | string |
modifiedOn | string |
concreteType | string |
contentType | string |
contentMd5 | string |
fileName | string |
storageLocationId | integer <int32> |
contentSize | integer <int32> |
status | string |
endpointUrl | string |
bucket | string |
fileKey | string |
{- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
{- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
id | string |
etag | string |
createdBy | string |
createdOn | string |
modifiedOn | string |
concreteType | string |
contentType | string |
contentMd5 | string |
fileName | string |
storageLocationId | integer <int32> |
contentSize | integer <int32> |
status | string |
bucketName | string |
key | string |
previewId | string |
isPreview | boolean |
{- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "bucketName": "string",
- "key": "string",
- "previewId": "string",
- "isPreview": true
}
{- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "bucketName": "string",
- "key": "string",
- "previewId": "string",
- "isPreview": true
}
id | string |
etag | string |
createdBy | string |
createdOn | string |
modifiedOn | string |
concreteType | string |
contentType | string |
contentMd5 | string |
fileName | string |
storageLocationId | integer <int32> |
contentSize | integer <int32> |
status | string |
bucketName | string |
key | string |
previewId | string |
isPreview | boolean |
{- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "bucketName": "string",
- "key": "string",
- "previewId": "string",
- "isPreview": true
}
{- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "bucketName": "string",
- "key": "string",
- "previewId": "string",
- "isPreview": true
}
id required | string |
storageLocationId required | number |
{- "concreteType": "string",
- "storageLocationId": 0,
- "uploadType": "string",
- "banner": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "keyPrefixUUID": "string"
}
id required | string |
{- "concreteType": "string",
- "storageLocationId": 0,
- "uploadType": "string",
- "banner": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "keyPrefixUUID": "string"
}
concreteType | string |
Array of objects (org.sagebionetworks.repo.model.file.FileHandleAssociation) The files to be included in the download. | |
zipFileName | string |
zipFileFormat | string |
{- "concreteType": "string",
- "requestedFiles": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
], - "zipFileName": "string",
- "zipFileFormat": "string"
}
{- "token": "string"
}
asyncToken required | string |
{- "concreteType": "string",
- "resultZipFileHandleId": "string",
- "fileSummary": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string",
- "zipEntryName": "string",
- "status": "string",
- "failureMessage": "string",
- "failureCode": "string"
}
], - "userId": "string"
}
id required | string the ID of the file handle to be downloaded |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
fileAssociateType required | string (org.sagebionetworks.repo.model.file.FileHandleAssociateType) Enum: "FileEntity" "TableEntity" "WikiAttachment" "WikiMarkdown" "UserProfileAttachment" "MessageAttachment" "TeamAttachment" "SubmissionAttachment" "VerificationSubmission" "AccessRequirementAttachment" "DataAccessRequestAttachment" "DataAccessSubmissionAttachment" "FormData" the type of object with which the file is associated |
fileAssociateId required | string the ID fo the object with which the file is associated |
forceRestart | boolean Optional parameter. When 'forceRestart=true' is included, any upload state for the given file will be cleared and a new upload will be started. |
concreteType | string |
partSizeBytes | integer <int32> |
fileName | string |
storageLocationId | integer <int32> |
generatePreview | boolean |
object (org.sagebionetworks.repo.model.file.FileHandleAssociation) Describes an association of a FileHandle with another object. |
{- "concreteType": "string",
- "partSizeBytes": 0,
- "fileName": "string",
- "storageLocationId": 0,
- "generatePreview": true,
- "sourceFileHandleAssociation": {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
}
{- "uploadId": "string",
- "startedBy": "string",
- "startedOn": "string",
- "updatedOn": "string",
- "partsState": "string",
- "state": "string",
- "resultFileHandleId": "string"
}
uploadId required | string The unique identifier of the file upload. |
uploadId | string |
partNumbers | Array of integers <int32> The part numbers to get pre-signed URLs for. |
contentType | string |
{- "uploadId": "string",
- "partNumbers": [
- 0
], - "contentType": "string"
}
{- "partPresignedUrls": [
- {
- "partNumber": 0,
- "uploadPresignedUrl": "string",
- "signedHeaders": {
- "property1": "string",
- "property2": "string"
}
}
]
}
uploadId required | string The unique identifier of the file upload. |
partNumber required | integer The part number to add. Must be a number between 1 and 10,000. |
partMD5Hex required | string The MD5 of the uploaded part represented as a hexadecimal string. If the provided MD5 does not match the MD5 of the uploaded part, the add will fail. |
{- "uploadId": "string",
- "partNumber": 0,
- "addPartState": "string",
- "errorMessage": "string"
}
uploadId required | string The unique identifier of the file upload. |
{- "uploadId": "string",
- "startedBy": "string",
- "startedOn": "string",
- "updatedOn": "string",
- "partsState": "string",
- "state": "string",
- "resultFileHandleId": "string"
}
Array of objects (org.sagebionetworks.repo.model.file.FileHandleCopyRequest) Defines the copy requests. |
{- "copyRequests": [
- {
- "originalFile": {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}, - "newFileName": "string",
- "newContentType": "string"
}
]
}
{- "copyResults": [
- {
- "newFileHandle": {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}, - "originalFileHandleId": "string",
- "failureCode": "string"
}
]
}
concreteType | string |
folderId | string |
object (org.sagebionetworks.repo.model.table.Query) |
{- "concreteType": "string",
- "folderId": "string",
- "query": {
- "sql": "string",
- "additionalFilters": [
- {
- "concreteType": "string",
- "isDefiningCondition": true,
- "columnName": "string",
- "function": "string",
- "values": [
- "string"
]
}
], - "selectedFacets": [
- {
- "concreteType": "string",
- "columnName": "string",
- "jsonPath": "string",
- "facetValues": [
- "string"
]
}
], - "includeEntityEtag": true,
- "selectFileColumn": 0,
- "offset": 0,
- "limit": 0,
- "sort": [
- {
- "column": "string",
- "direction": "string"
}
]
}
}
{- "token": "string"
}
asyncToken required | string |
{- "concreteType": "string",
- "downloadList": {
- "ownerId": "string",
- "updatedOn": "string",
- "etag": "string",
- "filesToDownload": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
]
}
}
Array of objects (org.sagebionetworks.repo.model.file.FileHandleAssociation) |
{- "list": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
]
}
{- "ownerId": "string",
- "updatedOn": "string",
- "etag": "string",
- "filesToDownload": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
]
}
Array of objects (org.sagebionetworks.repo.model.file.FileHandleAssociation) |
{- "list": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
]
}
{- "ownerId": "string",
- "updatedOn": "string",
- "etag": "string",
- "filesToDownload": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
]
}
{- "ownerId": "string",
- "updatedOn": "string",
- "etag": "string",
- "filesToDownload": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
]
}
zipFileName required | string The name to given to the resulting zip file. |
{- "files": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
], - "orderId": "string",
- "createdBy": "string",
- "createdOn": "string",
- "zipFileName": "string",
- "totalSizeBytes": 0,
- "totalNumberOfFiles": 0
}
orderId required | string The ID of the download order to fetch. |
{- "files": [
- {
- "fileHandleId": "string",
- "associateObjectId": "string",
- "associateObjectType": "string"
}
], - "orderId": "string",
- "createdBy": "string",
- "createdOn": "string",
- "zipFileName": "string",
- "totalSizeBytes": 0,
- "totalNumberOfFiles": 0
}
nextPageToken | string |
{- "nextPageToken": "string"
}
{- "page": [
- {
- "orderId": "string",
- "createdBy": "string",
- "createdOn": "string",
- "zipFileName": "string",
- "totalSizeBytes": 0,
- "totalNumberOfFiles": 0
}
], - "nextPageToken": "string"
}
concreteType | string |
fileHandleIds | Array of strings The list of file handle ids to restore. |
{- "concreteType": "string",
- "fileHandleIds": [
- "string"
]
}
{- "token": "string"
}
Services for managing a user's download list. ,
, Files can be added to the user's download list using ,,POST /download/list/add,,. Files can be removed from the user's download by calling either ,,POST /download/list/remove,,, or the entire list can be cleared with: ,,DELETE /download/list,,. ,, In order to query the files on a user's download list, first start an asynchronous job using ,,POST /download/list/query/async/start,, to get an asynchToken. The job results can be monitored using ,,GET /download/list/query/async/get/{asyncToken},,. While the job is still processing the GET call will return a status code of 202 (ACCEPTED). Once the job is complete the GET call will return a status code of 200 with the response body. ,, ,,Download List Service Limits,, ,,resource, | , ,,limit, | , ,,notes, | , ,
---|---|---|
,Maximum number of files on a user's download list, | , ,,100,000 files, | , ,, | , ,
,Maximum batch size for adding/removing files, | , ,,1000 files, | , ,, | , ,
Array of objects (org.sagebionetworks.repo.model.download.DownloadListItem) The batch of files to add to the user's download list. Note: There is a limit of 1000 files per batch. |
{- "batchToAdd": [
- {
- "fileEntityId": "string",
- "versionNumber": 0
}
]
}
{- "numberOfFilesAdded": 0
}
Array of objects (org.sagebionetworks.repo.model.download.DownloadListItem) The batch of files to remove from the user's download list. Note: There is a limit of 1000 files per batch. |
{- "batchToRemove": [
- {
- "fileEntityId": "string",
- "versionNumber": 0
}
]
}
{- "numberOfFilesRemoved": 0
}
concreteType | string |
org.sagebionetworks.repo.model.download.ActionRequiredRequest (object) or org.sagebionetworks.repo.model.download.FilesStatisticsRequest (object) or org.sagebionetworks.repo.model.download.AvailableFilesRequest (object) (org.sagebionetworks.repo.model.download.QueryRequestDetails) Required. Must be one of the implementations of QueryRequestDetails. |
{- "concreteType": "string",
- "requestDetails": {
- "concreteType": "string",
- "nextPageToken": "string"
}
}
{- "token": "string"
}
asyncToken required | string |
{- "concreteType": "string",
- "responseDetails": {
- "concreteType": "string",
- "page": [
- {
- "action": {
- "concreteType": "string",
- "benefactorId": 0
}, - "count": 0
}
], - "nextPageToken": "string"
}
}
concreteType | string |
object (org.sagebionetworks.repo.model.table.Query) | |
parentId | string |
useVersionNumber | boolean |
{- "concreteType": "string",
- "query": {
- "sql": "string",
- "additionalFilters": [
- {
- "concreteType": "string",
- "isDefiningCondition": true,
- "columnName": "string",
- "function": "string",
- "values": [
- "string"
]
}
], - "selectedFacets": [
- {
- "concreteType": "string",
- "columnName": "string",
- "jsonPath": "string",
- "facetValues": [
- "string"
]
}
], - "includeEntityEtag": true,
- "selectFileColumn": 0,
- "offset": 0,
- "limit": 0,
- "sort": [
- {
- "column": "string",
- "direction": "string"
}
]
}, - "parentId": "string",
- "useVersionNumber": true
}
{- "token": "string"
}
concreteType | string |
zipFileName | string |
includeManifest | boolean |
object (org.sagebionetworks.repo.model.table.CsvTableDescriptor) The description of a csv for upload or download. |
{- "concreteType": "string",
- "zipFileName": "string",
- "includeManifest": true,
- "csvTableDescriptor": {
- "separator": "string",
- "quoteCharacter": "string",
- "escapeCharacter": "string",
- "lineEnd": "string",
- "isFirstLineHeader": true
}
}
{- "token": "string"
}
concreteType | string |
object (org.sagebionetworks.repo.model.table.CsvTableDescriptor) The description of a csv for upload or download. |
{- "concreteType": "string",
- "csvTableDescriptor": {
- "separator": "string",
- "quoteCharacter": "string",
- "escapeCharacter": "string",
- "lineEnd": "string",
- "isFirstLineHeader": true
}
}
{- "token": "string"
}
Teams are groups of users. Teams can be granted access permissions to projects, folders and files, and share other resources by adding them to ,,Access Control Lists (ACLs),,. Any authenticated Synapse user may create a Team, for which they become an administrator. Team administrators may: ,
id | string |
name | string |
description | string |
icon | string |
canPublicJoin | boolean |
canRequestMembership | boolean |
etag | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
{- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "canPublicJoin": true,
- "canRequestMembership": true,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "canPublicJoin": true,
- "canRequestMembership": true,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
id | string |
name | string |
description | string |
icon | string |
canPublicJoin | boolean |
canRequestMembership | boolean |
etag | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
{- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "canPublicJoin": true,
- "canRequestMembership": true,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "canPublicJoin": true,
- "canRequestMembership": true,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
fragment | string a prefix of the Team name, or a prefix of any sub-string in the name preceded by a space. |
limit | integer the maximum number of Teams to return (default 10, max limit 50) |
offset | integer the starting index of the returned results (default 0) |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "canPublicJoin": true,
- "canRequestMembership": true,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}
id required | string the principal ID of the user of interest. |
limit | integer the maximum number of Teams to return (default 10) |
offset | integer the starting index of the returned results (default 0) |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "canPublicJoin": true,
- "canRequestMembership": true,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}
id required | string |
nextPageToken | string controls pagination |
sort | string (org.sagebionetworks.repo.model.TeamSortOrder) Value: "TEAM_NAME" the field to sort the team IDs on. Available options ,,TeamSortOrder, |
ascending | boolean the direction of sort: true for ascending, and false for descending |
{- "teamIds": [
- "string"
], - "nextPageToken": "string"
}
{- "list": [
- 0
]
}
{- "list": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "canPublicJoin": true,
- "canRequestMembership": true,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}
id required | string |
principalId required | string |
{- "teamId": "string",
- "member": {
- "ownerId": "string",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "email": "string",
- "displayName": "string",
- "isIndividual": true
}, - "isAdmin": true
}
id required | string the ID of the Team to which the user is to be added. |
principalId required | string the ID of the user to be added to the Team. |
teamEndpoint | string the portal prefix for the Team URL. The team ID is appended to create the complete URL. |
notificationUnsubscribeEndpoint | string the portal prefix for one-click email unsubscription. |
{- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "canPublicJoin": true,
- "canRequestMembership": true,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
teamEndpoint | string |
notificationUnsubscribeEndpoint | string |
concreteType | string |
hmac | string |
version | integer <int32> |
expiresOn | string |
createdOn | string |
userId | string |
teamId | string |
memberId | string |
{- "concreteType": "string",
- "hmac": "string",
- "version": 0,
- "expiresOn": "string",
- "createdOn": "string",
- "userId": "string",
- "teamId": "string",
- "memberId": "string"
}
{- "message": "string"
}
id required | string the Team ID |
principalId required | string the user ID |
{- "teamId": "string",
- "userId": "string",
- "isMember": true,
- "hasOpenInvitation": true,
- "hasOpenRequest": true,
- "canJoin": true,
- "membershipApprovalRequired": true,
- "hasUnmetAccessRequirement": true,
- "canSendEmail": true
}
id required | string the id of the Team of interest |
fragment | string a prefix of the user's first or last name or email address (optional) |
memberType | string (org.sagebionetworks.repo.model.TeamMemberTypeFilterOptions) Enum: "ADMIN" "MEMBER" "ALL" the type of team user to retrieve (optional; default "ALL") |
limit | integer the maximum number of members to return (default 10, max limit 50) |
offset | integer the starting index of the returned results (default 0) |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "teamId": "string",
- "member": {
- "ownerId": "string",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "email": "string",
- "displayName": "string",
- "isIndividual": true
}, - "isAdmin": true
}
]
}
id required | number |
list | Array of integers <int32> |
{- "list": [
- 0
]
}
{- "list": [
- {
- "teamId": "string",
- "member": {
- "ownerId": "string",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "email": "string",
- "displayName": "string",
- "isIndividual": true
}, - "isAdmin": true
}
]
}
id required | number user's ID |
list | Array of integers <int32> |
{- "list": [
- 0
]
}
{- "list": [
- {
- "teamId": "string",
- "member": {
- "ownerId": "string",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "email": "string",
- "displayName": "string",
- "isIndividual": true
}, - "isAdmin": true
}
]
}
id required | string the ID of the Team of interest |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
id | string |
createdBy | string |
creationDate | string |
modifiedBy | string |
modifiedOn | string |
etag | string |
Array of objects (org.sagebionetworks.repo.model.ResourceAccess) The list of principals who can access the data with the allowed types of access for each. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
concreteType | string |
objectId | string |
fileDownloads | boolean |
fileUploads | boolean |
{- "concreteType": "string",
- "objectId": "string",
- "fileDownloads": true,
- "fileUploads": true
}
{- "objectId": "string",
- "concreteType": "string",
- "fileDownloads": {
- "lastUpdatedOn": "string",
- "months": [
- {
- "rangeStart": "string",
- "rangeEnd": "string",
- "filesCount": 0,
- "usersCount": 0
}
]
}, - "fileUploads": {
- "lastUpdatedOn": "string",
- "months": [
- {
- "rangeStart": "string",
- "rangeEnd": "string",
- "filesCount": 0,
- "usersCount": 0
}
]
}
}
Provides REST APIs for generating Storage Reports. These may only be used by the Synapse Report Team.
concreteType | string |
reportType | string |
{- "concreteType": "string",
- "reportType": "string"
}
{- "token": "string"
}
, The Entity Bundle Services provide bundled access to Entities and their related data components. An EntityBundle can be used to create, fetch, or update an Entity and associated objects with a single web service request. ,
id required | string
|
includeEntity | boolean |
includeAnnotations | boolean |
includePermissions | boolean |
includeEntityPath | boolean |
includeHasChildren | boolean |
includeAccessControlList | boolean |
includeFileHandles | boolean |
includeTableBundle | boolean |
includeRootWikiId | boolean |
includeBenefactorACL | boolean |
includeDOIAssociation | boolean |
includeFileName | boolean |
includeThreadCount | boolean |
includeRestrictionInformation | boolean |
{- "includeEntity": true,
- "includeAnnotations": true,
- "includePermissions": true,
- "includeEntityPath": true,
- "includeHasChildren": true,
- "includeAccessControlList": true,
- "includeFileHandles": true,
- "includeTableBundle": true,
- "includeRootWikiId": true,
- "includeBenefactorACL": true,
- "includeDOIAssociation": true,
- "includeFileName": true,
- "includeThreadCount": true,
- "includeRestrictionInformation": true
}
{- "entity": {
- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}, - "entityType": "string",
- "annotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "permissions": {
- "canView": true,
- "canEdit": true,
- "canMove": true,
- "canAddChild": true,
- "canCertifiedUserEdit": true,
- "canCertifiedUserAddChild": true,
- "isCertifiedUser": true,
- "canChangePermissions": true,
- "canChangeSettings": true,
- "canDelete": true,
- "canDownload": true,
- "canUpload": true,
- "canEnableInheritance": true,
- "ownerPrincipalId": 0,
- "canPublicRead": true,
- "canModerate": true,
- "isCertificationRequired": true,
- "isEntityOpenData": true
}, - "path": {
- "path": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}, - "hasChildren": true,
- "accessControlList": {
- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}, - "fileHandles": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
], - "tableBundle": {
- "columnModels": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
], - "maxRowsPerPage": 0
}, - "rootWikiId": "string",
- "benefactorAcl": {
- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}, - "doiAssociation": {
- "associationId": "string",
- "etag": "string",
- "doiUri": "string",
- "doiUrl": "string",
- "objectId": "string",
- "objectType": "string",
- "objectVersion": 0,
- "associatedBy": "string",
- "associatedOn": "string",
- "updatedBy": "string",
- "updatedOn": "string"
}, - "fileName": "string",
- "threadCount": 0,
- "restrictionInformation": {
- "restrictionLevel": "string",
- "hasUnmetAccessRequirement": true
}
}
id required | string |
generatedBy | string |
org.sagebionetworks.repo.model.docker.DockerRepository (object) or org.sagebionetworks.repo.model.table.DatasetCollection (object) or org.sagebionetworks.repo.model.table.EntityView (object) or org.sagebionetworks.repo.model.table.VirtualTable (object) or org.sagebionetworks.repo.model.Link (object) or org.sagebionetworks.repo.model.Preview (object) or org.sagebionetworks.repo.model.FileEntity (object) or org.sagebionetworks.repo.model.table.TableEntity (object) or org.sagebionetworks.repo.model.Folder (object) or org.sagebionetworks.repo.model.table.SubmissionView (object) or org.sagebionetworks.repo.model.table.MaterializedView (object) or org.sagebionetworks.repo.model.Project (object) or org.sagebionetworks.repo.model.table.Dataset (object) or org.sagebionetworks.repo.model.ExampleEntity (object) (org.sagebionetworks.repo.model.Entity) This is the base interface that all Entities implement. | |
object (org.sagebionetworks.repo.model.annotation.v2.Annotations) Annotations are additional key-value pair metadata that are associated with an object. | |
object (org.sagebionetworks.repo.model.AccessControlList) Contains list of principals who can access the data with the allowed types of access for each. |
{- "entity": {
- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}, - "annotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "accessControlList": {
- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
}
{- "entity": {
- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}, - "entityType": "string",
- "annotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "permissions": {
- "canView": true,
- "canEdit": true,
- "canMove": true,
- "canAddChild": true,
- "canCertifiedUserEdit": true,
- "canCertifiedUserAddChild": true,
- "isCertifiedUser": true,
- "canChangePermissions": true,
- "canChangeSettings": true,
- "canDelete": true,
- "canDownload": true,
- "canUpload": true,
- "canEnableInheritance": true,
- "ownerPrincipalId": 0,
- "canPublicRead": true,
- "canModerate": true,
- "isCertificationRequired": true,
- "isEntityOpenData": true
}, - "path": {
- "path": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}, - "hasChildren": true,
- "accessControlList": {
- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}, - "fileHandles": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
], - "tableBundle": {
- "columnModels": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
], - "maxRowsPerPage": 0
}, - "rootWikiId": "string",
- "benefactorAcl": {
- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}, - "doiAssociation": {
- "associationId": "string",
- "etag": "string",
- "doiUri": "string",
- "doiUrl": "string",
- "objectId": "string",
- "objectType": "string",
- "objectVersion": 0,
- "associatedBy": "string",
- "associatedOn": "string",
- "updatedBy": "string",
- "updatedOn": "string"
}, - "fileName": "string",
- "threadCount": 0,
- "restrictionInformation": {
- "restrictionLevel": "string",
- "hasUnmetAccessRequirement": true
}
}
id required | string
|
versionNumber required | number
|
includeEntity | boolean |
includeAnnotations | boolean |
includePermissions | boolean |
includeEntityPath | boolean |
includeHasChildren | boolean |
includeAccessControlList | boolean |
includeFileHandles | boolean |
includeTableBundle | boolean |
includeRootWikiId | boolean |
includeBenefactorACL | boolean |
includeDOIAssociation | boolean |
includeFileName | boolean |
includeThreadCount | boolean |
includeRestrictionInformation | boolean |
{- "includeEntity": true,
- "includeAnnotations": true,
- "includePermissions": true,
- "includeEntityPath": true,
- "includeHasChildren": true,
- "includeAccessControlList": true,
- "includeFileHandles": true,
- "includeTableBundle": true,
- "includeRootWikiId": true,
- "includeBenefactorACL": true,
- "includeDOIAssociation": true,
- "includeFileName": true,
- "includeThreadCount": true,
- "includeRestrictionInformation": true
}
{- "entity": {
- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}, - "entityType": "string",
- "annotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "permissions": {
- "canView": true,
- "canEdit": true,
- "canMove": true,
- "canAddChild": true,
- "canCertifiedUserEdit": true,
- "canCertifiedUserAddChild": true,
- "isCertifiedUser": true,
- "canChangePermissions": true,
- "canChangeSettings": true,
- "canDelete": true,
- "canDownload": true,
- "canUpload": true,
- "canEnableInheritance": true,
- "ownerPrincipalId": 0,
- "canPublicRead": true,
- "canModerate": true,
- "isCertificationRequired": true,
- "isEntityOpenData": true
}, - "path": {
- "path": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}, - "hasChildren": true,
- "accessControlList": {
- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}, - "fileHandles": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
], - "tableBundle": {
- "columnModels": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
], - "maxRowsPerPage": 0
}, - "rootWikiId": "string",
- "benefactorAcl": {
- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}, - "doiAssociation": {
- "associationId": "string",
- "etag": "string",
- "doiUri": "string",
- "doiUrl": "string",
- "objectId": "string",
- "objectType": "string",
- "objectVersion": 0,
- "associatedBy": "string",
- "associatedOn": "string",
- "updatedBy": "string",
- "updatedOn": "string"
}, - "fileName": "string",
- "threadCount": 0,
- "restrictionInformation": {
- "restrictionLevel": "string",
- "hasUnmetAccessRequirement": true
}
}
generatedBy | string |
org.sagebionetworks.repo.model.docker.DockerRepository (object) or org.sagebionetworks.repo.model.table.DatasetCollection (object) or org.sagebionetworks.repo.model.table.EntityView (object) or org.sagebionetworks.repo.model.table.VirtualTable (object) or org.sagebionetworks.repo.model.Link (object) or org.sagebionetworks.repo.model.Preview (object) or org.sagebionetworks.repo.model.FileEntity (object) or org.sagebionetworks.repo.model.table.TableEntity (object) or org.sagebionetworks.repo.model.Folder (object) or org.sagebionetworks.repo.model.table.SubmissionView (object) or org.sagebionetworks.repo.model.table.MaterializedView (object) or org.sagebionetworks.repo.model.Project (object) or org.sagebionetworks.repo.model.table.Dataset (object) or org.sagebionetworks.repo.model.ExampleEntity (object) (org.sagebionetworks.repo.model.Entity) This is the base interface that all Entities implement. | |
object (org.sagebionetworks.repo.model.annotation.v2.Annotations) Annotations are additional key-value pair metadata that are associated with an object. | |
object (org.sagebionetworks.repo.model.AccessControlList) Contains list of principals who can access the data with the allowed types of access for each. |
{- "entity": {
- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}, - "annotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "accessControlList": {
- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
}
{- "entity": {
- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}, - "entityType": "string",
- "annotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "permissions": {
- "canView": true,
- "canEdit": true,
- "canMove": true,
- "canAddChild": true,
- "canCertifiedUserEdit": true,
- "canCertifiedUserAddChild": true,
- "isCertifiedUser": true,
- "canChangePermissions": true,
- "canChangeSettings": true,
- "canDelete": true,
- "canDownload": true,
- "canUpload": true,
- "canEnableInheritance": true,
- "ownerPrincipalId": 0,
- "canPublicRead": true,
- "canModerate": true,
- "isCertificationRequired": true,
- "isEntityOpenData": true
}, - "path": {
- "path": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}, - "hasChildren": true,
- "accessControlList": {
- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}, - "fileHandles": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
], - "tableBundle": {
- "columnModels": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
], - "maxRowsPerPage": 0
}, - "rootWikiId": "string",
- "benefactorAcl": {
- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}, - "doiAssociation": {
- "associationId": "string",
- "etag": "string",
- "doiUri": "string",
- "doiUrl": "string",
- "objectId": "string",
- "objectType": "string",
- "objectVersion": 0,
- "associatedBy": "string",
- "associatedOn": "string",
- "updatedBy": "string",
- "updatedOn": "string"
}, - "fileName": "string",
- "threadCount": 0,
- "restrictionInformation": {
- "restrictionLevel": "string",
- "hasUnmetAccessRequirement": true
}
}
To become a Synapse Certified User you must pass a test. The Synapse APIs include a service to provide the test and a service to submit a test result. There are also administrative services to retrieve the history of test submissions.
{- "id": 0,
- "header": "string",
- "questions": [
- {
- "questionIndex": 0,
- "prompt": "string",
- "reference": {
- "wikiPageId": "string",
- "ownerObjectId": "string",
- "ownerObjectType": "string"
}, - "docLink": "string",
- "helpText": "string",
- "concreteType": "string",
- "exclusive": true,
- "answers": [
- {
- "answerIndex": 0,
- "prompt": "string",
- "isCorrect": true
}
]
}
]
}
id | integer <int32> |
quizId | integer <int32> |
createdBy | string |
createdOn | string |
Array of org.sagebionetworks.repo.model.quiz.MultichoiceResponse (object) or org.sagebionetworks.repo.model.quiz.TextFieldResponse (object) (org.sagebionetworks.repo.model.quiz.QuestionResponse) The list of responses to the questions in the Quiz |
{- "id": 0,
- "quizId": 0,
- "createdBy": "string",
- "createdOn": "string",
- "questionResponses": [
- {
- "questionIndex": 0,
- "concreteType": "string",
- "answerIndex": [
- 0
]
}
]
}
{- "userId": "string",
- "quizId": 0,
- "responseId": 0,
- "score": 0,
- "passed": true,
- "passedOn": "string",
- "corrections": [
- {
- "question": {
- "questionIndex": 0,
- "prompt": "string",
- "reference": {
- "wikiPageId": "string",
- "ownerObjectId": "string",
- "ownerObjectType": "string"
}, - "docLink": "string",
- "helpText": "string",
- "concreteType": "string",
- "exclusive": true,
- "answers": [
- {
- "answerIndex": 0,
- "prompt": "string",
- "isCorrect": true
}
]
}, - "response": {
- "questionIndex": 0,
- "concreteType": "string",
- "answerIndex": [
- 0
]
}, - "isCorrect": true
}
]
}
principalId | number If specified, only retrieve the quiz for this user, if it exists. |
limit | integer Limits the size of the page returned. For example, a page size of 10 requires limit = 10. |
offset | integer The index of the pagination offset. For a page size of 10, the first page would be at offset = 0, and the second page would be at offset = 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": 0,
- "quizId": 0,
- "createdBy": "string",
- "createdOn": "string",
- "questionResponses": [
- {
- "questionIndex": 0,
- "concreteType": "string",
- "answerIndex": [
- 0
]
}
]
}
]
}
id required | number |
{- "userId": "string",
- "quizId": 0,
- "responseId": 0,
- "score": 0,
- "passed": true,
- "passedOn": "string",
- "corrections": [
- {
- "question": {
- "questionIndex": 0,
- "prompt": "string",
- "reference": {
- "wikiPageId": "string",
- "ownerObjectId": "string",
- "ownerObjectType": "string"
}, - "docLink": "string",
- "helpText": "string",
- "concreteType": "string",
- "exclusive": true,
- "answers": [
- {
- "answerIndex": 0,
- "prompt": "string",
- "isCorrect": true
}
]
}, - "response": {
- "questionIndex": 0,
- "concreteType": "string",
- "answerIndex": [
- 0
]
}, - "isCorrect": true
}
]
}
id required | number |
limit | integer |
offset | integer |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "userId": "string",
- "quizId": 0,
- "responseId": 0,
- "score": 0,
- "passed": true,
- "passedOn": "string",
- "corrections": [
- {
- "question": {
- "questionIndex": 0,
- "prompt": "string",
- "reference": {
- "wikiPageId": "string",
- "ownerObjectId": "string",
- "ownerObjectType": "string"
}, - "docLink": "string",
- "helpText": "string",
- "concreteType": "string",
- "exclusive": true,
- "answers": [
- {
- "answerIndex": 0,
- "prompt": "string",
- "isCorrect": true
}
]
}, - "response": {
- "questionIndex": 0,
- "concreteType": "string",
- "answerIndex": [
- 0
]
}, - "isCorrect": true
}
]
}
]
}
These services process events from the Docker Registry. They are separated from other Docker Controllers because the authorization is different, i.e. basic authorization using a key/value pair.
These services are not intended to be used by Synapse clients, only by the Docker registry.
Array of objects (org.sagebionetworks.repo.model.docker.DockerRegistryEvent) A list of events that occurred in a docker registry |
{- "events": [
- {
- "id": "string",
- "timestamp": "string",
- "action": "string",
- "target": {
- "mediaType": "string",
- "size": 0,
- "digest": "string",
- "length": 0,
- "repository": "string",
- "tag": "string",
- "url": "string"
}, - "request": {
- "id": "string",
- "addr": "string",
- "host": "string",
- "method": "string",
- "useragent": "string"
}, - "actor": {
- "name": "string"
}, - "source": {
- "addr": "string",
- "instanceID": "string"
}
}
]
}
,While working in Synapse, users may want to subscribe to different topics to receive notifications about changes in those topics.,
, ,,These services provide the APIs for Synapse users to manage their subscriptions.,
, ,objectId | string |
objectType | string |
{- "objectId": "string",
- "objectType": "string"
}
{- "subscriptionId": "string",
- "subscriberId": "string",
- "objectId": "string",
- "objectType": "string",
- "createdOn": "string"
}
objectType required | string (org.sagebionetworks.repo.model.subscription.SubscriptionObjectType) Enum: "FORUM" "THREAD" "DATA_ACCESS_SUBMISSION" "DATA_ACCESS_SUBMISSION_STATUS"
|
{- "subscriptionId": "string",
- "subscriberId": "string",
- "objectId": "string",
- "objectType": "string",
- "createdOn": "string"
}
limit required | number
|
offset required | number
|
objectType required | string (org.sagebionetworks.repo.model.subscription.SubscriptionObjectType) Enum: "FORUM" "THREAD" "DATA_ACCESS_SUBMISSION" "DATA_ACCESS_SUBMISSION_STATUS"
|
sortBy | string (org.sagebionetworks.repo.model.subscription.SortByType) Enum: "SUBSCRIPTION_ID" "SUBSCRIBER_ID" "OBJECT_ID" "OBJECT_TYPE" "CREATED_ON" |
sortDirection | string (org.sagebionetworks.repo.model.subscription.SortDirection) Enum: "ASC" "DESC"
|
{- "results": [
- {
- "subscriptionId": "string",
- "subscriberId": "string",
- "objectId": "string",
- "objectType": "string",
- "createdOn": "string"
}
], - "totalNumberOfResults": 0
}
objectType | string |
idList | Array of strings The list of objectId |
sortByType | string |
sortDirection | string |
{- "objectType": "string",
- "idList": [
- "string"
], - "sortByType": "string",
- "sortDirection": "string"
}
{- "results": [
- {
- "subscriptionId": "string",
- "subscriberId": "string",
- "objectId": "string",
- "objectType": "string",
- "createdOn": "string"
}
], - "totalNumberOfResults": 0
}
id required | string
|
{- "subscriptionId": "string",
- "subscriberId": "string",
- "objectId": "string",
- "objectType": "string",
- "createdOn": "string"
}
nextPageToken | string |
objectId | string |
objectType | string |
{- "objectId": "string",
- "objectType": "string"
}
{- "subscribers": [
- "string"
], - "nextPageToken": "string"
}
, The ,,Activity,, model represents the main record of Provenance in Synapse. It is analygous to the Activity defined in the ,,W3C Specification on Provenance,,. ,
, ,, Used links are stored directly in the Activity model object as an array of ,,Used,, objects. There is a flag in ,,Used,, that marks if it was "executed". ,,Used,, is an interface that is implemented by two objects: ,
, ,, wasGeneratedBy links are stored for each version of each Entity. Thus you update the entity with the activity id that generated it. You can ask the entity service which activity generated it, and conversely you can ask the activity service what entity versions were generatedBy a given activity. ,
, ,, Access to ,,Activity,, objects is dictated by the following rules: ,
,
id | string |
name | string |
description | string |
etag | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
Array of org.sagebionetworks.repo.model.provenance.UsedURL (object) or org.sagebionetworks.repo.model.provenance.UsedEntity (object) (org.sagebionetworks.repo.model.provenance.Used) The entities used by this Activity. |
{- "id": "string",
- "name": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "used": [
- {
- "wasExecuted": true,
- "concreteType": "string",
- "name": "string",
- "url": "string"
}
]
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "used": [
- {
- "wasExecuted": true,
- "concreteType": "string",
- "name": "string",
- "url": "string"
}
]
}
id required | string The ID of the activity to fetch. |
{- "id": "string",
- "name": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "used": [
- {
- "wasExecuted": true,
- "concreteType": "string",
- "name": "string",
- "url": "string"
}
]
}
id required | string The id of the activity to update. |
id | string |
name | string |
description | string |
etag | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
Array of org.sagebionetworks.repo.model.provenance.UsedURL (object) or org.sagebionetworks.repo.model.provenance.UsedEntity (object) (org.sagebionetworks.repo.model.provenance.Used) The entities used by this Activity. |
{- "id": "string",
- "name": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "used": [
- {
- "wasExecuted": true,
- "concreteType": "string",
- "name": "string",
- "url": "string"
}
]
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "used": [
- {
- "wasExecuted": true,
- "concreteType": "string",
- "name": "string",
- "url": "string"
}
]
}
, The Evaluation API is designed to support open-access data analysis and modeling challenges in Synapse. This framework provides tools for administrators to collect and analyze data models from Synapse users created for a specific goal or purpose. ,
,,
, The data model of the Evaluation API is built around around two primary objects: ,
,
, The data model includes additional objects to support scoring of Submissions and convenient data access: ,
The Evaluation API supports data access mechanisms to monitor Evaluation activity for on-demand scoring and leaderboarding.
id | string |
etag | string |
name | string |
description | string |
ownerId | string |
createdOn | string |
contentSource | string |
submissionInstructionsMessage | string |
submissionReceiptMessage | string |
object (org.sagebionetworks.evaluation.model.SubmissionQuota) DEPRECATED: use EvaluationRound APIs instead. No SubmissionQuota will be returned with the Evaluation. Any SubmissionQuotas submitted will be instead be converted into similar EvaluationRounds. |
{- "id": "string",
- "etag": "string",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "createdOn": "string",
- "contentSource": "string",
- "submissionInstructionsMessage": "string",
- "submissionReceiptMessage": "string",
- "quota": {
- "firstRoundStart": "string",
- "roundDurationMillis": 0,
- "numberOfRounds": 0,
- "submissionLimit": 0
}
}
{- "id": "string",
- "etag": "string",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "createdOn": "string",
- "contentSource": "string",
- "submissionInstructionsMessage": "string",
- "submissionReceiptMessage": "string",
- "quota": {
- "firstRoundStart": "string",
- "roundDurationMillis": 0,
- "numberOfRounds": 0,
- "submissionLimit": 0
}
}
accessType | string (org.sagebionetworks.repo.model.ACCESS_TYPE) Enum: "CREATE" "READ" "UPDATE" "DELETE" "CHANGE_PERMISSIONS" "DOWNLOAD" "UPLOAD" "PARTICIPATE" "SUBMIT" "READ_PRIVATE_SUBMISSION" "UPDATE_SUBMISSION" "DELETE_SUBMISSION" "TEAM_MEMBERSHIP_UPDATE" "SEND_MESSAGE" "CHANGE_SETTINGS" "MODERATE" "REVIEW_SUBMISSIONS" The type of access for the user to filter for, optional and defaults to ,,ACCESS_TYPE.READ, |
activeOnly | boolean If 'true' then return only those evaluations with rounds defined and for which the current time is in one of the rounds. |
evaluationIds | string an optional, comma-delimited list of evaluation IDs to which the response is limited |
offset | number The offset index determines where this page will start from. An index of 0 is the first entity. When null it will default to 0. |
limit | number Limits the number of entities that will be fetched for this page. When null it will default to 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "etag": "string",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "createdOn": "string",
- "contentSource": "string",
- "submissionInstructionsMessage": "string",
- "submissionReceiptMessage": "string",
- "quota": {
- "firstRoundStart": "string",
- "roundDurationMillis": 0,
- "numberOfRounds": 0,
- "submissionLimit": 0
}
}
]
}
evalId required | string
|
{- "id": "string",
- "etag": "string",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "createdOn": "string",
- "contentSource": "string",
- "submissionInstructionsMessage": "string",
- "submissionReceiptMessage": "string",
- "quota": {
- "firstRoundStart": "string",
- "roundDurationMillis": 0,
- "numberOfRounds": 0,
- "submissionLimit": 0
}
}
evalId required | string
|
id | string |
etag | string |
name | string |
description | string |
ownerId | string |
createdOn | string |
contentSource | string |
submissionInstructionsMessage | string |
submissionReceiptMessage | string |
object (org.sagebionetworks.evaluation.model.SubmissionQuota) DEPRECATED: use EvaluationRound APIs instead. No SubmissionQuota will be returned with the Evaluation. Any SubmissionQuotas submitted will be instead be converted into similar EvaluationRounds. |
{- "id": "string",
- "etag": "string",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "createdOn": "string",
- "contentSource": "string",
- "submissionInstructionsMessage": "string",
- "submissionReceiptMessage": "string",
- "quota": {
- "firstRoundStart": "string",
- "roundDurationMillis": 0,
- "numberOfRounds": 0,
- "submissionLimit": 0
}
}
{- "id": "string",
- "etag": "string",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "createdOn": "string",
- "contentSource": "string",
- "submissionInstructionsMessage": "string",
- "submissionReceiptMessage": "string",
- "quota": {
- "firstRoundStart": "string",
- "roundDurationMillis": 0,
- "numberOfRounds": 0,
- "submissionLimit": 0
}
}
id required | string the ID of the project |
accessType | string (org.sagebionetworks.repo.model.ACCESS_TYPE) Enum: "CREATE" "READ" "UPDATE" "DELETE" "CHANGE_PERMISSIONS" "DOWNLOAD" "UPLOAD" "PARTICIPATE" "SUBMIT" "READ_PRIVATE_SUBMISSION" "UPDATE_SUBMISSION" "DELETE_SUBMISSION" "TEAM_MEMBERSHIP_UPDATE" "SEND_MESSAGE" "CHANGE_SETTINGS" "MODERATE" "REVIEW_SUBMISSIONS" The type of access for the user to filter for, optional and defaults to ,,ACCESS_TYPE.READ, |
activeOnly | boolean If 'true' then return only those evaluations with rounds defined and for which the current time is in one of the rounds. |
evaluationIds | string an optional, comma-delimited list of evaluation IDs to which the response is limited |
offset | number The offset index determines where this page will start from. An index of 0 is the first entity. When null it will default to 0. |
limit | number Limits the number of entities that will be fetched for this page. When null it will default to 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "etag": "string",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "createdOn": "string",
- "contentSource": "string",
- "submissionInstructionsMessage": "string",
- "submissionReceiptMessage": "string",
- "quota": {
- "firstRoundStart": "string",
- "roundDurationMillis": 0,
- "numberOfRounds": 0,
- "submissionLimit": 0
}
}
]
}
activeOnly | boolean |
evaluationIds | string an optional, comma-delimited list of evaluation IDs to which the response is limited |
offset | number The offset index determines where this page will start from. An index of 0 is the first evaluation. When null it will default to 0. |
limit | number Limits the number of entities that will be fetched for this page. When null it will default to 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "etag": "string",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "createdOn": "string",
- "contentSource": "string",
- "submissionInstructionsMessage": "string",
- "submissionReceiptMessage": "string",
- "quota": {
- "firstRoundStart": "string",
- "roundDurationMillis": 0,
- "numberOfRounds": 0,
- "submissionLimit": 0
}
}
]
}
name required | string
|
{- "id": "string",
- "etag": "string",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "createdOn": "string",
- "contentSource": "string",
- "submissionInstructionsMessage": "string",
- "submissionReceiptMessage": "string",
- "quota": {
- "firstRoundStart": "string",
- "roundDurationMillis": 0,
- "numberOfRounds": 0,
- "submissionLimit": 0
}
}
evalId required | string |
id required | string |
{- "teamId": "string",
- "evaluationId": "string",
- "teamEligibility": {
- "isEligible": true,
- "isRegistered": true,
- "isQuotaFilled": true
}, - "membersEligibility": [
- {
- "isEligible": true,
- "isRegistered": true,
- "isQuotaFilled": true,
- "principalId": 0,
- "hasConflictingSubmission": true
}
], - "eligibilityStateHash": 0
}
etag | string |
submissionEligibilityHash | string The hash provided by the ,,TeamSubmissionEligibility,, object. |
challengeEndpoint required | string The portal endpoint prefix to the an entity/challenge page. The entity ID of the challenge project is appended to create the complete URL. In normal operation, this parameter should be omitted. |
notificationUnsubscribeEndpoint required | string The portal endpoint prefix for one-click email unsubscription. A signed, serialized token is appended to create the complete URL: ,,NotificationSettingsSignedToken,,. In normal operation, this parameter should be omitted. |
id | string |
userId | string |
submitterAlias | string |
evaluationId | string |
evaluationRoundId | string |
entityId | string |
entityBundleJSON | string |
versionNumber | integer <int32> |
dockerRepositoryName | string |
dockerDigest | string |
name | string |
createdOn | string |
teamId | string |
Array of objects (org.sagebionetworks.evaluation.model.SubmissionContributor) User ids of the submitter and (if a team submission) the team members involved in creating the submission. |
{- "id": "string",
- "userId": "string",
- "submitterAlias": "string",
- "evaluationId": "string",
- "evaluationRoundId": "string",
- "entityId": "string",
- "entityBundleJSON": "string",
- "versionNumber": 0,
- "dockerRepositoryName": "string",
- "dockerDigest": "string",
- "name": "string",
- "createdOn": "string",
- "teamId": "string",
- "contributors": [
- {
- "principalId": "string",
- "createdOn": "string"
}
]
}
{- "id": "string",
- "userId": "string",
- "submitterAlias": "string",
- "evaluationId": "string",
- "evaluationRoundId": "string",
- "entityId": "string",
- "entityBundleJSON": "string",
- "versionNumber": 0,
- "dockerRepositoryName": "string",
- "dockerDigest": "string",
- "name": "string",
- "createdOn": "string",
- "teamId": "string",
- "contributors": [
- {
- "principalId": "string",
- "createdOn": "string"
}
]
}
subId required | string |
principalId | string |
createdOn | string |
{- "principalId": "string",
- "createdOn": "string"
}
{- "principalId": "string",
- "createdOn": "string"
}
subId required | string |
{- "id": "string",
- "userId": "string",
- "submitterAlias": "string",
- "evaluationId": "string",
- "evaluationRoundId": "string",
- "entityId": "string",
- "entityBundleJSON": "string",
- "versionNumber": 0,
- "dockerRepositoryName": "string",
- "dockerDigest": "string",
- "name": "string",
- "createdOn": "string",
- "teamId": "string",
- "contributors": [
- {
- "principalId": "string",
- "createdOn": "string"
}
]
}
subId required | string
|
{- "id": "string",
- "etag": "string",
- "modifiedOn": "string",
- "status": "string",
- "score": 0,
- "report": "string",
- "annotations": {
- "objectId": "string",
- "scopeId": "string",
- "version": 0,
- "stringAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": "string"
}
], - "longAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
], - "doubleAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
]
}, - "submissionAnnotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "entityId": "string",
- "versionNumber": 0,
- "statusVersion": 0,
- "canCancel": true,
- "cancelRequested": true
}
subId required | string
|
id | string |
etag | string |
modifiedOn | string |
status | string |
score | number |
report | string |
object (org.sagebionetworks.repo.model.annotation.Annotations) Primary container object for Annotations on a Synapse object | |
object (org.sagebionetworks.repo.model.annotation.v2.Annotations) Annotations are additional key-value pair metadata that are associated with an object. | |
entityId | string |
versionNumber | integer <int32> |
statusVersion | integer <int32> |
canCancel | boolean |
cancelRequested | boolean |
{- "id": "string",
- "etag": "string",
- "modifiedOn": "string",
- "status": "string",
- "score": 0,
- "report": "string",
- "annotations": {
- "objectId": "string",
- "scopeId": "string",
- "version": 0,
- "stringAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": "string"
}
], - "longAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
], - "doubleAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
]
}, - "submissionAnnotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "entityId": "string",
- "versionNumber": 0,
- "statusVersion": 0,
- "canCancel": true,
- "cancelRequested": true
}
{- "id": "string",
- "etag": "string",
- "modifiedOn": "string",
- "status": "string",
- "score": 0,
- "report": "string",
- "annotations": {
- "objectId": "string",
- "scopeId": "string",
- "version": 0,
- "stringAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": "string"
}
], - "longAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
], - "doubleAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
]
}, - "submissionAnnotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "entityId": "string",
- "versionNumber": 0,
- "statusVersion": 0,
- "canCancel": true,
- "cancelRequested": true
}
evalId required | string the ID of the Evaluation to which the SubmissionSatus objects belong. |
Array of objects (org.sagebionetworks.evaluation.model.SubmissionStatus) A collection of Submission Statuses | |
batchToken | string |
isFirstBatch | boolean |
isLastBatch | boolean |
{- "statuses": [
- {
- "id": "string",
- "etag": "string",
- "modifiedOn": "string",
- "status": "string",
- "score": 0,
- "report": "string",
- "annotations": {
- "objectId": "string",
- "scopeId": "string",
- "version": 0,
- "stringAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": "string"
}
], - "longAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
], - "doubleAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
]
}, - "submissionAnnotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "entityId": "string",
- "versionNumber": 0,
- "statusVersion": 0,
- "canCancel": true,
- "cancelRequested": true
}
], - "batchToken": "string",
- "isFirstBatch": true,
- "isLastBatch": true
}
{- "nextUploadToken": "string"
}
evalId required | string
|
offset | number The offset index determines where this page will start from. An index of 0 is the first entity. When null it will default to 0. |
limit | number Limits the number of entities that will be fetched for this page. When null it will default to 10, max value 100. |
status required | string |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "userId": "string",
- "submitterAlias": "string",
- "evaluationId": "string",
- "evaluationRoundId": "string",
- "entityId": "string",
- "entityBundleJSON": "string",
- "versionNumber": 0,
- "dockerRepositoryName": "string",
- "dockerDigest": "string",
- "name": "string",
- "createdOn": "string",
- "teamId": "string",
- "contributors": [
- {
- "principalId": "string",
- "createdOn": "string"
}
]
}
]
}
evalId required | string
|
offset | number The offset index determines where this page will start from. An index of 0 is the first entity. When null it will default to 0. |
limit | number Limits the number of entities that will be fetched for this page. When null it will default to 10, max value 100. |
status required | string |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "etag": "string",
- "modifiedOn": "string",
- "status": "string",
- "score": 0,
- "report": "string",
- "annotations": {
- "objectId": "string",
- "scopeId": "string",
- "version": 0,
- "stringAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": "string"
}
], - "longAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
], - "doubleAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
]
}, - "submissionAnnotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "entityId": "string",
- "versionNumber": 0,
- "statusVersion": 0,
- "canCancel": true,
- "cancelRequested": true
}
]
}
evalId required | string
|
offset | number The offset index determines where this page will start from. An index of 0 is the first entity. When null it will default to 0. |
limit | number Limits the number of entities that will be fetched for this page. When null it will default to 10, max value 100. |
status required | string |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "submission": {
- "id": "string",
- "userId": "string",
- "submitterAlias": "string",
- "evaluationId": "string",
- "evaluationRoundId": "string",
- "entityId": "string",
- "entityBundleJSON": "string",
- "versionNumber": 0,
- "dockerRepositoryName": "string",
- "dockerDigest": "string",
- "name": "string",
- "createdOn": "string",
- "teamId": "string",
- "contributors": [
- {
- "principalId": "string",
- "createdOn": "string"
}
]
}, - "submissionStatus": {
- "id": "string",
- "etag": "string",
- "modifiedOn": "string",
- "status": "string",
- "score": 0,
- "report": "string",
- "annotations": {
- "objectId": "string",
- "scopeId": "string",
- "version": 0,
- "stringAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": "string"
}
], - "longAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
], - "doubleAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
]
}, - "submissionAnnotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "entityId": "string",
- "versionNumber": 0,
- "statusVersion": 0,
- "canCancel": true,
- "cancelRequested": true
}
}
]
}
evalId required | string
|
offset | number The offset index determines where this page will start from. An index of 0 is the first entity. When null it will default to 0. |
limit | number Limits the number of entities that will be fetched for this page. When null it will default to 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "userId": "string",
- "submitterAlias": "string",
- "evaluationId": "string",
- "evaluationRoundId": "string",
- "entityId": "string",
- "entityBundleJSON": "string",
- "versionNumber": 0,
- "dockerRepositoryName": "string",
- "dockerDigest": "string",
- "name": "string",
- "createdOn": "string",
- "teamId": "string",
- "contributors": [
- {
- "principalId": "string",
- "createdOn": "string"
}
]
}
]
}
evalId required | string
|
offset | number The offset index determines where this page will start from. An index of 0 is the first entity. When null it will default to 0. |
limit | number Limits the number of entities that will be fetched for this page. When null it will default to 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "submission": {
- "id": "string",
- "userId": "string",
- "submitterAlias": "string",
- "evaluationId": "string",
- "evaluationRoundId": "string",
- "entityId": "string",
- "entityBundleJSON": "string",
- "versionNumber": 0,
- "dockerRepositoryName": "string",
- "dockerDigest": "string",
- "name": "string",
- "createdOn": "string",
- "teamId": "string",
- "contributors": [
- {
- "principalId": "string",
- "createdOn": "string"
}
]
}, - "submissionStatus": {
- "id": "string",
- "etag": "string",
- "modifiedOn": "string",
- "status": "string",
- "score": 0,
- "report": "string",
- "annotations": {
- "objectId": "string",
- "scopeId": "string",
- "version": 0,
- "stringAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": "string"
}
], - "longAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
], - "doubleAnnos": [
- {
- "key": "string",
- "isPrivate": true,
- "value": 0
}
]
}, - "submissionAnnotations": {
- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}, - "entityId": "string",
- "versionNumber": 0,
- "statusVersion": 0,
- "canCancel": true,
- "cancelRequested": true
}
}
]
}
id | string |
createdBy | string |
creationDate | string |
modifiedBy | string |
modifiedOn | string |
etag | string |
Array of objects (org.sagebionetworks.repo.model.ResourceAccess) The list of principals who can access the data with the allowed types of access for each. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
evalId required | string The ID of the evaluation whose ACL is being retrieved. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
evalId required | string The ID of the evaluation over which the user permission are being retrieved. |
{- "canChangePermissions": true,
- "canView": true,
- "canPublicRead": true,
- "canEdit": true,
- "canDelete": true,
- "canParticipate": true,
- "canSubmit": true,
- "canViewPrivateSubmissionStatusAnnotations": true,
- "canEditSubmissionStatuses": true,
- "canDeleteSubmissions": true,
- "ownerPrincipalId": 0
}
evalId required | string |
id | string |
etag | string |
evaluationId | string |
roundStart | string |
roundEnd | string |
Array of objects (org.sagebionetworks.evaluation.model.EvaluationRoundLimit) Optional. Sets limits for maximum submissions in this round. |
{- "id": "string",
- "etag": "string",
- "evaluationId": "string",
- "roundStart": "string",
- "roundEnd": "string",
- "limits": [
- {
- "limitType": "string",
- "maximumSubmissions": 0
}
]
}
{- "id": "string",
- "etag": "string",
- "evaluationId": "string",
- "roundStart": "string",
- "roundEnd": "string",
- "limits": [
- {
- "limitType": "string",
- "maximumSubmissions": 0
}
]
}
evalId required | string |
roundId required | string |
{- "id": "string",
- "etag": "string",
- "evaluationId": "string",
- "roundStart": "string",
- "roundEnd": "string",
- "limits": [
- {
- "limitType": "string",
- "maximumSubmissions": 0
}
]
}
evalId required | string |
roundId required | string |
id | string |
etag | string |
evaluationId | string |
roundStart | string |
roundEnd | string |
Array of objects (org.sagebionetworks.evaluation.model.EvaluationRoundLimit) Optional. Sets limits for maximum submissions in this round. |
{- "id": "string",
- "etag": "string",
- "evaluationId": "string",
- "roundStart": "string",
- "roundEnd": "string",
- "limits": [
- {
- "limitType": "string",
- "maximumSubmissions": 0
}
]
}
{- "id": "string",
- "etag": "string",
- "evaluationId": "string",
- "roundStart": "string",
- "roundEnd": "string",
- "limits": [
- {
- "limitType": "string",
- "maximumSubmissions": 0
}
]
}
evalId required | string |
nextPageToken | string |
{- "nextPageToken": "string"
}
{- "page": [
- {
- "id": "string",
- "etag": "string",
- "evaluationId": "string",
- "roundStart": "string",
- "roundEnd": "string",
- "limits": [
- {
- "limitType": "string",
- "maximumSubmissions": 0
}
]
}
], - "nextPageToken": "string"
}
A Challenge is a special object that supplements a project, providing additional features specific to challenges. This set of services provides "CRUD" for Challenge objects and ChallengeTeam objects, which register a Team for a Challenge. The services also provide a number of queries regarding Challenges, challenge participants and challenge Teams.
id | string |
etag | string |
projectId | string |
participantTeamId | string |
{- "id": "string",
- "etag": "string",
- "projectId": "string",
- "participantTeamId": "string"
}
{- "id": "string",
- "etag": "string",
- "projectId": "string",
- "participantTeamId": "string"
}
challengeId required | number |
id | string |
etag | string |
projectId | string |
participantTeamId | string |
{- "id": "string",
- "etag": "string",
- "projectId": "string",
- "participantTeamId": "string"
}
{- "id": "string",
- "etag": "string",
- "projectId": "string",
- "participantTeamId": "string"
}
challengeId required | number |
affiliated | boolean If affiliated=true, return just participants affiliated with some
registered Team. If false, return those not affiliated with any registered Team. |
limit | number |
offset | number |
{- "results": [
- "string"
], - "totalNumberOfResults": 0
}
challengeId required | number |
id | string |
etag | string |
challengeId | string |
teamId | string |
message | string |
{- "id": "string",
- "etag": "string",
- "challengeId": "string",
- "teamId": "string",
- "message": "string"
}
{- "id": "string",
- "etag": "string",
- "challengeId": "string",
- "teamId": "string",
- "message": "string"
}
challengeId required | number |
limit | number |
offset | number |
{- "results": [
- {
- "id": "string",
- "etag": "string",
- "challengeId": "string",
- "teamId": "string",
- "message": "string"
}
], - "totalNumberOfResults": 0
}
challengeId required | number |
challengeTeamId required | number |
id | string |
etag | string |
challengeId | string |
teamId | string |
message | string |
{- "id": "string",
- "etag": "string",
- "challengeId": "string",
- "teamId": "string",
- "message": "string"
}
{- "id": "string",
- "etag": "string",
- "challengeId": "string",
- "teamId": "string",
- "message": "string"
}
, Provides REST APIs for sending messages to other Synapse users and for commenting on Synapse entities. ,
id | string |
createdBy | string |
fileHandleId | string |
createdOn | string |
recipients | Array of strings The unique identifiers of the intended recipients of a message |
subject | string |
inReplyTo | string |
inReplyToRoot | string |
notificationUnsubscribeEndpoint | string |
userProfileSettingEndpoint | string |
withUnsubscribeLink | boolean |
withProfileSettingLink | boolean |
isNotificationMessage | boolean |
to | string |
cc | string |
bcc | string |
{- "id": "string",
- "createdBy": "string",
- "fileHandleId": "string",
- "createdOn": "string",
- "recipients": [
- "string"
], - "subject": "string",
- "inReplyTo": "string",
- "inReplyToRoot": "string",
- "notificationUnsubscribeEndpoint": "string",
- "userProfileSettingEndpoint": "string",
- "withUnsubscribeLink": true,
- "withProfileSettingLink": true,
- "isNotificationMessage": true,
- "to": "string",
- "cc": "string",
- "bcc": "string"
}
{- "id": "string",
- "createdBy": "string",
- "fileHandleId": "string",
- "createdOn": "string",
- "recipients": [
- "string"
], - "subject": "string",
- "inReplyTo": "string",
- "inReplyToRoot": "string",
- "notificationUnsubscribeEndpoint": "string",
- "userProfileSettingEndpoint": "string",
- "withUnsubscribeLink": true,
- "withProfileSettingLink": true,
- "isNotificationMessage": true,
- "to": "string",
- "cc": "string",
- "bcc": "string"
}
notificationUnsubscribeEndpoint | string |
object (org.sagebionetworks.repo.model.message.cloudmailin.Envelope) Message Envelope | |
object (org.sagebionetworks.repo.model.message.cloudmailin.Headers) The headers from the email message. | |
plain | string |
html | string |
reply_plain | string |
Array of objects (org.sagebionetworks.repo.model.message.cloudmailin.Attachment) Attachments to the message. |
{- "envelope": {
- "to": "string",
- "recipients": [
- "string"
], - "from": "string",
- "helo_domain": "string",
- "remote_ip": "string",
- "spf": "string"
}, - "headers": {
- "To": "string",
- "Cc": "string",
- "Bcc": "string",
- "Subject": "string",
- "From": "string"
}, - "plain": "string",
- "html": "string",
- "reply_plain": "string",
- "attachments": [
- {
- "content": "string",
- "content_id": "string",
- "url": "string",
- "file_name": "string",
- "content_type": "string",
- "size": "string",
- "disposition": "string"
}
]
}
to | string |
from | string |
size | integer <int32> |
helo_domain | string |
remote_ip | string |
{- "to": "string",
- "from": "string",
- "size": 0,
- "helo_domain": "string",
- "remote_ip": "string"
}
inboxFilter required | string |
orderBy required | string |
descending required | boolean |
limit required | number |
offset required | number |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "message": {
- "id": "string",
- "createdBy": "string",
- "fileHandleId": "string",
- "createdOn": "string",
- "recipients": [
- "string"
], - "subject": "string",
- "inReplyTo": "string",
- "inReplyToRoot": "string",
- "notificationUnsubscribeEndpoint": "string",
- "userProfileSettingEndpoint": "string",
- "withUnsubscribeLink": true,
- "withProfileSettingLink": true,
- "isNotificationMessage": true,
- "to": "string",
- "cc": "string",
- "bcc": "string"
}, - "status": {
- "messageId": "string",
- "recipientId": "string",
- "status": "string"
}
}
]
}
orderBy required | string |
descending required | boolean |
limit required | number |
offset required | number |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "createdBy": "string",
- "fileHandleId": "string",
- "createdOn": "string",
- "recipients": [
- "string"
], - "subject": "string",
- "inReplyTo": "string",
- "inReplyToRoot": "string",
- "notificationUnsubscribeEndpoint": "string",
- "userProfileSettingEndpoint": "string",
- "withUnsubscribeLink": true,
- "withProfileSettingLink": true,
- "isNotificationMessage": true,
- "to": "string",
- "cc": "string",
- "bcc": "string"
}
]
}
{- "id": "string",
- "createdBy": "string",
- "fileHandleId": "string",
- "createdOn": "string",
- "recipients": [
- "string"
], - "subject": "string",
- "inReplyTo": "string",
- "inReplyToRoot": "string",
- "notificationUnsubscribeEndpoint": "string",
- "userProfileSettingEndpoint": "string",
- "withUnsubscribeLink": true,
- "withProfileSettingLink": true,
- "isNotificationMessage": true,
- "to": "string",
- "cc": "string",
- "bcc": "string"
}
messageId required | string |
recipients | Array of strings The unique identifiers of the intended recipients of a message |
{- "recipients": [
- "string"
]
}
{- "id": "string",
- "createdBy": "string",
- "fileHandleId": "string",
- "createdOn": "string",
- "recipients": [
- "string"
], - "subject": "string",
- "inReplyTo": "string",
- "inReplyToRoot": "string",
- "notificationUnsubscribeEndpoint": "string",
- "userProfileSettingEndpoint": "string",
- "withUnsubscribeLink": true,
- "withProfileSettingLink": true,
- "isNotificationMessage": true,
- "to": "string",
- "cc": "string",
- "bcc": "string"
}
messageId required | string |
orderBy required | string |
descending required | boolean |
limit required | number |
offset required | number |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "createdBy": "string",
- "fileHandleId": "string",
- "createdOn": "string",
- "recipients": [
- "string"
], - "subject": "string",
- "inReplyTo": "string",
- "inReplyToRoot": "string",
- "notificationUnsubscribeEndpoint": "string",
- "userProfileSettingEndpoint": "string",
- "withUnsubscribeLink": true,
- "withProfileSettingLink": true,
- "isNotificationMessage": true,
- "to": "string",
- "cc": "string",
- "bcc": "string"
}
]
}
id required | string |
id | string |
createdBy | string |
fileHandleId | string |
createdOn | string |
recipients | Array of strings The unique identifiers of the intended recipients of a message |
subject | string |
inReplyTo | string |
inReplyToRoot | string |
notificationUnsubscribeEndpoint | string |
userProfileSettingEndpoint | string |
withUnsubscribeLink | boolean |
withProfileSettingLink | boolean |
isNotificationMessage | boolean |
to | string |
cc | string |
bcc | string |
{- "id": "string",
- "createdBy": "string",
- "fileHandleId": "string",
- "createdOn": "string",
- "recipients": [
- "string"
], - "subject": "string",
- "inReplyTo": "string",
- "inReplyToRoot": "string",
- "notificationUnsubscribeEndpoint": "string",
- "userProfileSettingEndpoint": "string",
- "withUnsubscribeLink": true,
- "withProfileSettingLink": true,
- "isNotificationMessage": true,
- "to": "string",
- "cc": "string",
- "bcc": "string"
}
{- "id": "string",
- "createdBy": "string",
- "fileHandleId": "string",
- "createdOn": "string",
- "recipients": [
- "string"
], - "subject": "string",
- "inReplyTo": "string",
- "inReplyToRoot": "string",
- "notificationUnsubscribeEndpoint": "string",
- "userProfileSettingEndpoint": "string",
- "withUnsubscribeLink": true,
- "withProfileSettingLink": true,
- "isNotificationMessage": true,
- "to": "string",
- "cc": "string",
- "bcc": "string"
}
, A Synapse ,,TableEntity,, model object represents the metadata of a table. Each TableEntity is defined by a list of ,,ColumnModel,, IDs. Use ,,POST /column,, to create new ColumnModel objects. Each ColumnModel object is immutable, so to change a column of a table a new column must be added and the old column must be removed. TableEntities can be created, updated, read and deleted like any other entity: ,
, ,
, All ColumnModel objects are publicly viewable and usable. Since each ColumnModel is immutable it is safe to re-use ColumnModels created by other users. Use the ,,GET /column,, services to list all of the existing ColumnModels that are currently in use. ,
,Once the columns for a TableEntity have been created and assigned to the TableEntity, rows can be added to the table using ,,POST /entity/{id}/table/transaction/async/start,,. Each ,,Row,, appended to the table will automatically be assigned a rowId and a versionNumber and can be found in the resulting ,,RowReferenceSet,,. To update a row, simply include the row's rowId in the passed ,,RowSet,,. Any row without a rowId will be treated as a new row. When a row is updated a new versionNumber will automatically be assigned the Row. While previous versions of any row are kept, only the current version of any row will appear in the table index used to support the query service: ,,POST /entity/{id}/table/query/async/start,, ,
, ,, Use the ,,POST /entity/{id}/table/query/async/start,, services to query for the current rows of a table. The returned ,,RowSet,, of the table query can be modified and returned to update the rows of a table using ,,POST /entity/{id}/table/transaction/async/start,,. ,
, ,, There is also an ,,asynchronous service,, to ,,upload,, and ,,download,, csv files, suitable for large datasets. ,
, ,, ,,Table Service Limits,, ,
,resource, | , ,,limit, | , ,,notes, | , ,
---|---|---|
,Maximum size of column names, | , ,,256 characters, | , ,, | , ,
,Maximum number of enumeration values for a single column, | , ,,100, | , ,, | , ,
,Maximum number of columns per table/view, | , ,,152, | , ,, | , ,
,The maximum possible width of a table/view, | , ,,64 KB, | , ,,Each ,,ColumnType,, has a maximum possible size. The total width of a table/view is the sum of the maximum size of each of its columns, | , ,
,The maximum number of LARG_TEXT columns per table/view, | , ,,30, | , ,, | , ,,Maximum table size, | , ,,~146 GB, | , ,,All row changes applied to a table are automatically batched into changes sets with a maximum size of 5242880 bytes (5 MB). Currently, there is a limit of 30,000 change sets per table. Therefore, the theoretical maximum size of table is 5242880 bytes * 30,000 = ~ 146 GB., | , ,, ,
,The maximum number of projects/folder per view scope, | , ,,30 K, | , ,,Recursive sub-folders count towards this limit. For example, if a project contains more than 30 K sub-folders then it cannot be included in a view's scope., | , ,
,The maximum number of rows per view, | , ,,200 M, | , ,,A single folder cannot contain more then 10 K files/folders. Since a view's scope is limited to 30 K project/folders, the maximum number of rows per view is 10 K * 30 K = 300 M., | , ,
,The maximum file size of a CSV that can be appended to a table, | , ,,1 GB, | , ,, | , ,
,The maximum size of a single query result, | , ,,512000 bytes, | , ,, | , ,
,Entity View only: The maximum total character length for a STRING or STRING_LIST ,,ColumnType,, | , ,,500 characters, | , ,,Entity Views ONLY! This follows limitations placed on Annotations. For the type STRING_LIST, the total character count is the cumulative length of all string contained in the list., | , ,
,Entity View only: The maximum list length for "_LIST" suffixed ,,ColumnType,, | , ,,100 values, | , ,,Entity Views ONLY! This follows limitations placed on Annotations., | , ,
name | string |
columnType | string |
facetType | string |
id | string |
defaultValue | string |
maximumSize | integer <int32> |
maximumListLength | integer <int32> |
enumValues | Array of strings Columns of type STRING can be constrained to an enumeration values set on this list. The maximum number of entries for an enum is 100 |
Array of objects (org.sagebionetworks.repo.model.table.JsonSubColumnModel) For column of type JSON that represents the combination of multiple sub-columns, this property is used to define each sub-column. |
{- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
{- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
prefix | string When included, only columns with a name that starts with this prefix will be returned. |
limit | number Limits the size of the page returned. For example, a page size of 10 require limit = 10. The maximum Limit for this call is 100. The default Limit is 10; |
offset | number The index of the pagination offset. For a page size of 10, the first page would be at offset = 0, and the second page would be at offset = 10. |
{- "results": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
], - "totalNumberOfResults": 0
}
Array of objects (org.sagebionetworks.repo.model.table.ColumnModel) |
{- "list": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
]
}
{- "list": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
]
}
columnId required | string The ID of the ColumnModel to get. |
{- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
id required | string The ID of the TableEntity to get the ColumnModels for. |
{- "results": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
], - "totalNumberOfResults": 0
}
viewEntityType | string (org.sagebionetworks.repo.model.table.ViewEntityType) Enum: "entityview" "submissionview" "dataset" "datasetcollection" The ,,entity type,, of the view, if omitted use entityview |
viewTypeMask | number Bit mask representing the types to include in the view.
Not required for a submission view. For an entity view
following are the possible types: (type=, |
{- "list": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
]
}
id required | string The ID of the TableEntity to update. |
concreteType | string |
entityId | string |
Array of org.sagebionetworks.repo.model.table.TableSearchChangeRequest (object) or org.sagebionetworks.repo.model.table.AppendableRowSetRequest (object) or org.sagebionetworks.repo.model.table.UploadToTableRequest (object) or org.sagebionetworks.repo.model.table.TableSchemaChangeRequest (object) (org.sagebionetworks.repo.model.table.TableUpdateRequest) List of changes that describes schema and/or row changes to a table. For a view the changes are eventually consistent. | |
createSnapshot | boolean |
object (org.sagebionetworks.repo.model.table.SnapshotRequest) Request to create a new snapshot of a table or view. The provided comment, label, and activity ID will be applied to the current version thereby creating a snapshot and locking the current version. After the snapshot is created a new version will be started with an 'in-progress' label. |
{- "concreteType": "string",
- "entityId": "string",
- "changes": [
- {
- "concreteType": "string",
- "entityId": "string",
- "searchEnabled": true
}
], - "createSnapshot": true,
- "snapshotOptions": {
- "snapshotComment": "string",
- "snapshotLabel": "string",
- "snapshotActivityId": "string"
}
}
{- "token": "string"
}
id required | string The ID of the table entity. |
asyncToken required | string The token returned when the job was started. |
{- "concreteType": "string",
- "results": [
- {
- "concreteType": "string",
- "updateResults": [
- {
- "entityId": "string",
- "failureMessage": "string",
- "failureCode": "string"
}
]
}
], - "snapshotVersionNumber": 0
}
id required | string The ID of the TableEntity to append rows to. |
tableId | string |
etag | string |
Array of objects (org.sagebionetworks.repo.model.table.SelectColumn) The list of ColumnModels ID that describes the rows of this set. | |
Array of objects (org.sagebionetworks.repo.model.table.RowReference) Each RowReference of this list refers to a single version of a single row of a TableEntity. |
{- "tableId": "string",
- "etag": "string",
- "headers": [
- {
- "name": "string",
- "columnType": "string",
- "id": "string"
}
], - "rows": [
- {
- "rowId": 0,
- "versionNumber": 0
}
]
}
{- "tableId": "string",
- "headers": [
- {
- "name": "string",
- "columnType": "string",
- "id": "string"
}
], - "rows": [
- {
- "list": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
]
}
]
}
id required | string The ID of the FileEntity to get. |
columnId required | string |
rowId required | number |
versionNumber required | number |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
id required | string The ID of the FileEntity to get. |
columnId required | string |
rowId required | number |
versionNumber required | number |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
id required | string The ID of the TableEntity. |
concreteType | string |
entityId | string |
object (org.sagebionetworks.repo.model.table.Query) | |
partMask | integer <int32> |
{- "concreteType": "string",
- "entityId": "string",
- "query": {
- "sql": "string",
- "additionalFilters": [
- {
- "concreteType": "string",
- "isDefiningCondition": true,
- "columnName": "string",
- "function": "string",
- "values": [
- "string"
]
}
], - "selectedFacets": [
- {
- "concreteType": "string",
- "columnName": "string",
- "jsonPath": "string",
- "facetValues": [
- "string"
]
}
], - "includeEntityEtag": true,
- "selectFileColumn": 0,
- "offset": 0,
- "limit": 0,
- "sort": [
- {
- "column": "string",
- "direction": "string"
}
]
}, - "partMask": 0
}
{- "token": "string"
}
id required | string The ID of the TableEntity. |
asyncToken required | string |
{- "concreteType": "string",
- "queryResult": {
- "concreteType": "string",
- "queryResults": {
- "concreteType": "string",
- "tableId": "string",
- "etag": "string",
- "headers": [
- {
- "name": "string",
- "columnType": "string",
- "id": "string"
}
], - "rows": [
- {
- "rowId": 0,
- "versionNumber": 0,
- "etag": "string",
- "values": [
- "string"
]
}
]
}, - "nextPageToken": {
- "concreteType": "string",
- "entityId": "string",
- "token": "string"
}
}, - "queryCount": 0,
- "selectColumns": [
- {
- "name": "string",
- "columnType": "string",
- "id": "string"
}
], - "maxRowsPerPage": 0,
- "columnModels": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
], - "facets": [
- {
- "concreteType": "string",
- "columnName": "string",
- "facetType": "string",
- "jsonPath": "string",
- "facetValues": [
- {
- "value": "string",
- "count": 0,
- "isSelected": true
}
]
}
], - "sumFileSizes": {
- "sumFileSizesBytes": 0,
- "greaterThan": true
}, - "lastUpdatedOn": "string",
- "combinedSql": "string",
- "actionsRequired": [
- {
- "action": {
- "concreteType": "string",
- "benefactorId": 0
}, - "count": 0
}
]
}
id required | string The ID of the TableEntity. |
concreteType | string |
entityId | string |
writeHeader | boolean |
includeRowIdAndRowVersion | boolean |
object (org.sagebionetworks.repo.model.table.CsvTableDescriptor) The description of a csv for upload or download. | |
fileName | string |
sql | string |
Array of org.sagebionetworks.repo.model.table.ColumnMultiValueFunctionQueryFilter (object) or org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter (object) or org.sagebionetworks.repo.model.table.TextMatchesQueryFilter (object) (org.sagebionetworks.repo.model.table.QueryFilter) Appends additional filters to the SQL query. These are applied before facets. Filters within the list have an AND relationship. If a WHERE clause already exists on the SQL query or facets are selected, it will also be ANDed with the query generated by these additional filters. | |
Array of org.sagebionetworks.repo.model.table.FacetColumnValuesRequest (object) or org.sagebionetworks.repo.model.table.FacetColumnRangeRequest (object) (org.sagebionetworks.repo.model.table.FacetColumnRequest) The selected facet filters. | |
includeEntityEtag | boolean |
selectFileColumn | integer <int32> |
offset | integer <int32> |
limit | integer <int32> |
Array of objects (org.sagebionetworks.repo.model.table.SortItem) |
{- "concreteType": "string",
- "entityId": "string",
- "writeHeader": true,
- "includeRowIdAndRowVersion": true,
- "csvTableDescriptor": {
- "separator": "string",
- "quoteCharacter": "string",
- "escapeCharacter": "string",
- "lineEnd": "string",
- "isFirstLineHeader": true
}, - "fileName": "string",
- "sql": "string",
- "additionalFilters": [
- {
- "concreteType": "string",
- "isDefiningCondition": true,
- "columnName": "string",
- "function": "string",
- "values": [
- "string"
]
}
], - "selectedFacets": [
- {
- "concreteType": "string",
- "columnName": "string",
- "jsonPath": "string",
- "facetValues": [
- "string"
]
}
], - "includeEntityEtag": true,
- "selectFileColumn": 0,
- "offset": 0,
- "limit": 0,
- "sort": [
- {
- "column": "string",
- "direction": "string"
}
]
}
{- "token": "string"
}
id required | string The ID of the TableEntity. |
asyncToken required | string |
{- "concreteType": "string",
- "resultsFileHandleId": "string",
- "tableId": "string",
- "etag": "string",
- "headers": [
- {
- "name": "string",
- "columnType": "string",
- "id": "string"
}
]
}
concreteType | string |
uploadFileHandleId | string |
linesToSkip | integer <int32> |
object (org.sagebionetworks.repo.model.table.CsvTableDescriptor) The description of a csv for upload or download. | |
doFullFileScan | boolean |
{- "concreteType": "string",
- "uploadFileHandleId": "string",
- "linesToSkip": 0,
- "csvTableDescriptor": {
- "separator": "string",
- "quoteCharacter": "string",
- "escapeCharacter": "string",
- "lineEnd": "string",
- "isFirstLineHeader": true
}, - "doFullFileScan": true
}
{- "token": "string"
}
asyncToken required | string |
{- "concreteType": "string",
- "suggestedColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
], - "sampleRows": [
- {
- "rowId": 0,
- "versionNumber": 0,
- "etag": "string",
- "values": [
- "string"
]
}
], - "rowsScanned": 0
}
id required | string The ID of the TableEntity. |
concreteType | string |
entityId | string |
tableId | string |
uploadFileHandleId | string |
updateEtag | string |
linesToSkip | integer <int32> |
object (org.sagebionetworks.repo.model.table.CsvTableDescriptor) The description of a csv for upload or download. | |
columnIds | Array of strings Deprecated. |
{- "concreteType": "string",
- "entityId": "string",
- "tableId": "string",
- "uploadFileHandleId": "string",
- "updateEtag": "string",
- "linesToSkip": 0,
- "csvTableDescriptor": {
- "separator": "string",
- "quoteCharacter": "string",
- "escapeCharacter": "string",
- "lineEnd": "string",
- "isFirstLineHeader": true
}, - "columnIds": [
- "string"
]
}
{- "token": "string"
}
concreteType | string |
object (org.sagebionetworks.repo.model.table.ViewScope) List of parent IDs that define a view scope. | |
includeDerivedAnnotations | boolean |
nextPageToken | string |
{- "concreteType": "string",
- "viewScope": {
- "viewTypeMask": 0,
- "scope": [
- "string"
], - "viewEntityType": "string",
- "viewType": "string"
}, - "includeDerivedAnnotations": true,
- "nextPageToken": "string"
}
{- "token": "string"
}
asyncToken required | string |
{- "concreteType": "string",
- "results": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "id": "string",
- "defaultValue": "string",
- "maximumSize": 0,
- "maximumListLength": 0,
- "enumValues": [
- "string"
], - "jsonSubColumns": [
- {
- "name": "string",
- "columnType": "string",
- "facetType": "string",
- "jsonPath": "string"
}
]
}
], - "nextPageToken": "string"
}
id required | string |
snapshotComment | string |
snapshotLabel | string |
snapshotActivityId | string |
{- "snapshotComment": "string",
- "snapshotLabel": "string",
- "snapshotActivityId": "string"
}
{- "snapshotVersionNumber": 0
}
definingSql | string |
entityType | string |
{- "definingSql": "string",
- "entityType": "string"
}
{- "isValid": true,
- "invalidReason": "string"
}
Identity verification is a service offered by the Synapse Access and Compliance Team to add an additional layer of legitimacy to a user account, beyond the basic requirements for creating an account in Synapse. After completing their user profile a user may submit a verification request, including supporting documentation. The ACT reviews the information then approves or rejects it. After approval, the ACT retains the authority to suspend verification of an account previously verified. Once rejected or suspended a user may create a new verification request.
notificationUnsubscribeEndpoint | string |
id | string |
createdOn | string |
createdBy | string |
firstName | string |
lastName | string |
emails | Array of strings The list of user email addresses registered to this user. |
notificationEmail | string |
location | string |
company | string |
orcid | string |
Array of objects (org.sagebionetworks.repo.model.verification.VerificationState) List of state changes the submission has passed through, ordered by time. The last in the list contains the current state of the submission. | |
Array of objects (org.sagebionetworks.repo.model.verification.AttachmentMetadata) Metadata of Files attached to the submission. The list will be emptied after the state is APPROVED or REJECTED. |
{- "id": "string",
- "createdOn": "string",
- "createdBy": "string",
- "firstName": "string",
- "lastName": "string",
- "emails": [
- "string"
], - "notificationEmail": "string",
- "location": "string",
- "company": "string",
- "orcid": "string",
- "stateHistory": [
- {
- "createdOn": "string",
- "createdBy": "string",
- "state": "string",
- "reason": "string",
- "notes": "string"
}
], - "attachments": [
- {
- "fileName": "string",
- "id": "string"
}
]
}
{- "id": "string",
- "createdOn": "string",
- "createdBy": "string",
- "firstName": "string",
- "lastName": "string",
- "emails": [
- "string"
], - "notificationEmail": "string",
- "location": "string",
- "company": "string",
- "orcid": "string",
- "stateHistory": [
- {
- "createdOn": "string",
- "createdBy": "string",
- "state": "string",
- "reason": "string",
- "notes": "string"
}
], - "attachments": [
- {
- "fileName": "string",
- "id": "string"
}
]
}
verifiedUserId | number filter on the user requesting verification (optional) |
currentVerificationState | string (org.sagebionetworks.repo.model.verification.VerificationStateEnum) Enum: "SUBMITTED" "APPROVED" "REJECTED" "SUSPENDED" filter on the state of the verification submission (optional) |
limit | number page size pagination parameter (optional) |
offset | number page start pagination parameter (zero offset, optional) |
{- "results": [
- {
- "id": "string",
- "createdOn": "string",
- "createdBy": "string",
- "firstName": "string",
- "lastName": "string",
- "emails": [
- "string"
], - "notificationEmail": "string",
- "location": "string",
- "company": "string",
- "orcid": "string",
- "stateHistory": [
- {
- "createdOn": "string",
- "createdBy": "string",
- "state": "string",
- "reason": "string",
- "notes": "string"
}
], - "attachments": [
- {
- "fileName": "string",
- "id": "string"
}
]
}
], - "totalNumberOfResults": 0
}
id required | number the ID of the verification submission |
notificationUnsubscribeEndpoint | string the portal prefix for one-click email unsubscription |
createdOn | string |
createdBy | string |
state | string |
reason | string |
notes | string |
{- "createdOn": "string",
- "createdBy": "string",
- "state": "string",
- "reason": "string",
- "notes": "string"
}
A ,, Principal,, in Synapse can be a User, Group, or a Team. This is a set of services that provides the means to look-up principals by their various attributes and also to test unique names such as USER_NAME, USER_EMAIL, or TEAM_NAME are available for use.
portalEndpoint required | string the beginning of the URL included in the email verification message. When concatenated with a list of ampersand (,&,) separated request parameters, must become a well formed URL. The concatenated string must be included with the ,,POST /account,, request. |
string | |
firstName | string |
lastName | string |
userName | string |
oauthProvider | string |
subject | string |
encodedMembershipInvtnSignedToken | string |
{- "email": "string",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "oauthProvider": "string",
- "subject": "string",
- "encodedMembershipInvtnSignedToken": "string"
}
firstName | string |
lastName | string |
username | string |
password | string |
object (org.sagebionetworks.repo.model.principal.EmailValidationSignedToken) Signed token containing the the information necessary to create a new account or add an email address to an existing account. |
{- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "password": "string",
- "emailValidationSignedToken": {
- "concreteType": "string",
- "hmac": "string",
- "version": 0,
- "expiresOn": "string",
- "createdOn": "string",
- "email": "string",
- "userId": "string"
}
}
{- "sessionToken": "string",
- "accessToken": "string",
- "acceptsTermsOfUse": true,
- "authenticationReceipt": "string"
}
id required | string the ID of the user account to which the email address is to be added. Must match the ID of the user making the request. |
portalEndpoint required | string the beginning of the URL included in the email verification message. When concatenated with a list of ampersand (,&,) separated request parameters, must become a well formed URL. The concatenated string must be included with the ,,POST /email,, request. |
string |
{- "email": "string"
}
setAsNotificationEmail | boolean if true then the newly added email address becomes the address used by the system for sending messages to the user. |
concreteType | string |
hmac | string |
version | integer <int32> |
expiresOn | string |
createdOn | string |
string | |
userId | string |
{- "concreteType": "string",
- "hmac": "string",
- "version": 0,
- "expiresOn": "string",
- "createdOn": "string",
- "email": "string",
- "userId": "string"
}
{- "email": "string",
- "quarantineStatus": {
- "reason": "string",
- "reasonDetails": "string",
- "expiration": "string"
}
}
,Discussions in Synapse are captured in the Project's Forum. Each Project has a Forum. Each Forum has a set of Moderators. The Moderators manage the content of the Forum.,
, ,,A Forum has multiple Threads. A Thread is created by an authorized user. Other authorized users can view and reply to an existing Thread.,
, ,,These services provide the APIs for Moderators and authorized users to create, edit, and manage the conversations that happen in Synapse.,
, ,forumId required | string
|
limit required | number
|
offset required | number
|
sort | string (org.sagebionetworks.repo.model.discussion.DiscussionThreadOrder) Enum: "NUMBER_OF_REPLIES" "NUMBER_OF_VIEWS" "PINNED_AND_LAST_ACTIVITY" "THREAD_TITLE"
|
ascending | boolean
|
filter required | string (org.sagebionetworks.repo.model.discussion.DiscussionFilter) Enum: "NO_FILTER" "DELETED_ONLY" "EXCLUDE_DELETED"
|
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "forumId": "string",
- "projectId": "string",
- "title": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "messageKey": "string",
- "numberOfViews": 0,
- "numberOfReplies": 0,
- "lastActivity": "string",
- "activeAuthors": [
- "string"
], - "isEdited": true,
- "isDeleted": true,
- "isPinned": true
}
]
}
forumId | string |
title | string |
messageMarkdown | string |
{- "forumId": "string",
- "title": "string",
- "messageMarkdown": "string"
}
{- "id": "string",
- "forumId": "string",
- "projectId": "string",
- "title": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "messageKey": "string",
- "numberOfViews": 0,
- "numberOfReplies": 0,
- "lastActivity": "string",
- "activeAuthors": [
- "string"
], - "isEdited": true,
- "isDeleted": true,
- "isPinned": true
}
threadId required | string
|
{- "id": "string",
- "forumId": "string",
- "projectId": "string",
- "title": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "messageKey": "string",
- "numberOfViews": 0,
- "numberOfReplies": 0,
- "lastActivity": "string",
- "activeAuthors": [
- "string"
], - "isEdited": true,
- "isDeleted": true,
- "isPinned": true
}
threadId required | string
|
title | string |
{- "title": "string"
}
{- "id": "string",
- "forumId": "string",
- "projectId": "string",
- "title": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "messageKey": "string",
- "numberOfViews": 0,
- "numberOfReplies": 0,
- "lastActivity": "string",
- "activeAuthors": [
- "string"
], - "isEdited": true,
- "isDeleted": true,
- "isPinned": true
}
threadId required | string
|
messageMarkdown | string |
{- "messageMarkdown": "string"
}
{- "id": "string",
- "forumId": "string",
- "projectId": "string",
- "title": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "messageKey": "string",
- "numberOfViews": 0,
- "numberOfReplies": 0,
- "lastActivity": "string",
- "activeAuthors": [
- "string"
], - "isEdited": true,
- "isDeleted": true,
- "isPinned": true
}
threadId | string |
messageMarkdown | string |
{- "threadId": "string",
- "messageMarkdown": "string"
}
{- "id": "string",
- "threadId": "string",
- "forumId": "string",
- "projectId": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "messageKey": "string",
- "isEdited": true,
- "isDeleted": true
}
replyId required | string
|
{- "id": "string",
- "threadId": "string",
- "forumId": "string",
- "projectId": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "messageKey": "string",
- "isEdited": true,
- "isDeleted": true
}
replyId required | string
|
messageMarkdown | string |
{- "messageMarkdown": "string"
}
{- "id": "string",
- "threadId": "string",
- "forumId": "string",
- "projectId": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "messageKey": "string",
- "isEdited": true,
- "isDeleted": true
}
threadId required | string
|
limit required | number
|
offset required | number
|
sort | string (org.sagebionetworks.repo.model.discussion.DiscussionReplyOrder) Value: "CREATED_ON"
|
ascending | boolean
|
filter required | string (org.sagebionetworks.repo.model.discussion.DiscussionFilter) Enum: "NO_FILTER" "DELETED_ONLY" "EXCLUDE_DELETED"
|
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "threadId": "string",
- "forumId": "string",
- "projectId": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "messageKey": "string",
- "isEdited": true,
- "isDeleted": true
}
]
}
forumId required | string
|
filter required | string (org.sagebionetworks.repo.model.discussion.DiscussionFilter) Enum: "NO_FILTER" "DELETED_ONLY" "EXCLUDE_DELETED"
|
{- "count": 0
}
threadId required | string
|
filter required | string (org.sagebionetworks.repo.model.discussion.DiscussionFilter) Enum: "NO_FILTER" "DELETED_ONLY" "EXCLUDE_DELETED"
|
{- "count": 0
}
id required | string
|
limit required | number
|
offset required | number
|
sort | string (org.sagebionetworks.repo.model.discussion.DiscussionThreadOrder) Enum: "NUMBER_OF_REPLIES" "NUMBER_OF_VIEWS" "PINNED_AND_LAST_ACTIVITY" "THREAD_TITLE"
|
ascending | boolean
|
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "forumId": "string",
- "projectId": "string",
- "title": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "messageKey": "string",
- "numberOfViews": 0,
- "numberOfReplies": 0,
- "lastActivity": "string",
- "activeAuthors": [
- "string"
], - "isEdited": true,
- "isDeleted": true,
- "isPinned": true
}
]
}
idList | Array of strings A list of entity IDs. Limit size 20. |
{- "idList": [
- "string"
]
}
{- "list": [
- {
- "entityId": "string",
- "count": 0
}
]
}
forumId required | string
|
limit required | number
|
offset required | number
|
{- "results": [
- "string"
], - "totalNumberOfResults": 0
}
forumId required | string The ID of the forum where the search is performed |
searchString | string |
nextPageToken | string |
{- "searchString": "string",
- "nextPageToken": "string"
}
{- "matches": [
- {
- "forumId": "string",
- "threadId": "string",
- "replyId": "string"
}
], - "nextPageToken": "string"
}
queryTerm | Array of strings The free text search terms. This will search the name of the Entity and its Wiki contents |
Array of objects (org.sagebionetworks.repo.model.search.query.KeyValue) One or more key-value pairs that define a boolean search. Multiple expressions are joined with a top-level AND. Key is the facet field name, value is the facet value. | |
Array of objects (org.sagebionetworks.repo.model.search.query.KeyRange) One or more key-value-range filters that filter values of a key based on the specified range where min<=value<=max. Multiple expressions are joined with a top-level AND. | |
Array of objects (org.sagebionetworks.repo.model.search.query.SearchFacetOption) Specify which fields should be returned as facets and the format of the results for each field | |
returnFields | Array of strings Specifies the document fields to include in the response. By default, only the document ids of the hits are returned. |
start | integer <int32> |
size | integer <int32> |
{- "queryTerm": [
- "string"
], - "booleanQuery": [
- {
- "key": "string",
- "value": "string",
- "not": true
}
], - "rangeQuery": [
- {
- "key": "string",
- "min": "string",
- "max": "string"
}
], - "facetOptions": [
- {
- "name": "string",
- "maxResultCount": 0,
- "sortType": "string"
}
], - "returnFields": [
- "string"
], - "start": 0,
- "size": 0
}
{- "found": 0,
- "start": 0,
- "matchExpression": "string",
- "hits": [
- {
- "id": "string",
- "etag": "string",
- "name": "string",
- "alias": "string",
- "path": {
- "path": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}, - "description": "string",
- "node_type": "string",
- "created_on": 0,
- "modified_on": 0,
- "created_by": "string",
- "modified_by": "string",
- "diagnosis": "string",
- "tissue": "string",
- "consortium": "string",
- "organ": "string"
}
], - "facets": [
- {
- "name": "string",
- "type": "string",
- "min": 0,
- "max": 0,
- "constraints": [
- {
- "value": "string",
- "count": 0
}
]
}
]
}
offset | integer |
limit | integer |
sort | string |
ascending | boolean |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "isIndividual": true,
- "etag": "string",
- "creationDate": "string",
- "uri": "string"
}
]
}
This set of services provide project designers with tools to define their own schemas to control and validate metadata applied to Projects, Folders, and Files. All schemas are defined using JSON schemas following ,,json-schema.org,, specification. ,
, To get started, you will need to either create a new ,,Organization,, or join an existing Organization. Each Organization has an AccessControlList (ACL) that controls which users/teams are authorized to contribute schemas under that Organization's name-space. The Organization's name-space is referenced using the Organization's name, which is also the root of all schema $ids within the Organization.
organizationName | string |
{- "organizationName": "string"
}
{- "id": "string",
- "name": "string",
- "createdOn": "string",
- "createdBy": "string"
}
nextPageToken | string |
{- "nextPageToken": "string"
}
{- "page": [
- {
- "id": "string",
- "name": "string",
- "createdOn": "string",
- "createdBy": "string"
}
], - "nextPageToken": "string"
}
id required | string The numeric identifier of the organization. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
id required | string The numeric identifier of the organization. |
id | string |
createdBy | string |
creationDate | string |
modifiedBy | string |
modifiedOn | string |
etag | string |
Array of objects (org.sagebionetworks.repo.model.ResourceAccess) The list of principals who can access the data with the allowed types of access for each. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
concreteType | string |
object (org.sagebionetworks.repo.model.schema.JsonSchema) The JSON schema is defined by: json-schema.org, specifically draft-07. Only features listed here are currently supported. | |
dryRun | boolean |
{- "concreteType": "string",
- "schema": {
- "$schema": "string",
- "$id": "string",
- "$ref": "string",
- "type": "string",
- "items": { },
- "properties": {
- "property1": { },
- "property2": { }
}, - "title": "string",
- "description": "string",
- "allOf": [
- { }
], - "anyOf": [
- { }
], - "oneOf": [
- { }
], - "not": { },
- "format": "string",
- "definitions": {
- "property1": { },
- "property2": { }
}, - "enum": [
- null
], - "const": null,
- "source": "string",
- "required": [
- "string"
], - "maxLength": 0,
- "minLength": 0,
- "pattern": "string",
- "if": { },
- "then": { },
- "else": { },
- "maximum": 0,
- "minimum": 0,
- "default": null,
- "contains": { },
- "additionalProperties": { }
}, - "dryRun": true
}
{- "token": "string"
}
asyncToken required | string Forward the token returned when the job was started. |
{- "concreteType": "string",
- "newVersionInfo": {
- "organizationId": "string",
- "organizationName": "string",
- "schemaId": "string",
- "schemaName": "string",
- "versionId": "string",
- "$id": "string",
- "semanticVersion": "string",
- "jsonSHA256Hex": "string",
- "createdOn": "string",
- "createdBy": "string"
}, - "validationSchema": {
- "$schema": "string",
- "$id": "string",
- "$ref": "string",
- "type": "string",
- "items": { },
- "properties": {
- "property1": { },
- "property2": { }
}, - "title": "string",
- "description": "string",
- "allOf": [
- { }
], - "anyOf": [
- { }
], - "oneOf": [
- { }
], - "not": { },
- "format": "string",
- "definitions": {
- "property1": { },
- "property2": { }
}, - "enum": [
- null
], - "const": null,
- "source": "string",
- "required": [
- "string"
], - "maxLength": 0,
- "minLength": 0,
- "pattern": "string",
- "if": { },
- "then": { },
- "else": { },
- "maximum": 0,
- "minimum": 0,
- "default": null,
- "contains": { },
- "additionalProperties": { }
}
}
id required | string The relative $id of the JSON schema to get. |
{- "$schema": "string",
- "$id": "string",
- "$ref": "string",
- "type": "string",
- "items": { },
- "properties": {
- "property1": { },
- "property2": { }
}, - "title": "string",
- "description": "string",
- "allOf": [
- { }
], - "anyOf": [
- { }
], - "oneOf": [
- { }
], - "not": { },
- "format": "string",
- "definitions": {
- "property1": { },
- "property2": { }
}, - "enum": [
- null
], - "const": null,
- "source": "string",
- "required": [
- "string"
], - "maxLength": 0,
- "minLength": 0,
- "pattern": "string",
- "if": { },
- "then": { },
- "else": { },
- "maximum": 0,
- "minimum": 0,
- "default": null,
- "contains": { },
- "additionalProperties": { }
}
organizationName | string |
nextPageToken | string |
{- "organizationName": "string",
- "nextPageToken": "string"
}
{- "page": [
- {
- "organizationId": "string",
- "organizationName": "string",
- "schemaId": "string",
- "schemaName": "string",
- "createdOn": "string",
- "createdBy": "string"
}
], - "nextPageToken": "string"
}
organizationName | string |
schemaName | string |
nextPageToken | string |
{- "organizationName": "string",
- "schemaName": "string",
- "nextPageToken": "string"
}
{- "page": [
- {
- "organizationId": "string",
- "organizationName": "string",
- "schemaId": "string",
- "schemaName": "string",
- "versionId": "string",
- "$id": "string",
- "semanticVersion": "string",
- "jsonSHA256Hex": "string",
- "createdOn": "string",
- "createdBy": "string"
}
], - "nextPageToken": "string"
}
concreteType | string |
$id | string |
{- "concreteType": "string",
- "$id": "string"
}
{- "token": "string"
}
asyncToken required | string Forward the token returned when the job was started. |
{- "concreteType": "string",
- "validationSchema": {
- "$schema": "string",
- "$id": "string",
- "$ref": "string",
- "type": "string",
- "items": { },
- "properties": {
- "property1": { },
- "property2": { }
}, - "title": "string",
- "description": "string",
- "allOf": [
- { }
], - "anyOf": [
- { }
], - "oneOf": [
- { }
], - "not": { },
- "format": "string",
- "definitions": {
- "property1": { },
- "property2": { }
}, - "enum": [
- null
], - "const": null,
- "source": "string",
- "required": [
- "string"
], - "maxLength": 0,
- "minLength": 0,
- "pattern": "string",
- "if": { },
- "then": { },
- "else": { },
- "maximum": 0,
- "minimum": 0,
- "default": null,
- "contains": { },
- "additionalProperties": { }
}
}
, The Synapse ,,WikiPage,, model object contains the data needed to render an end-user crafted web page. The Synapse Web Client will dynamically render a WikiPage into a combination of HTML, CSS and Javascript which is then finally rendered as a web page in the client's web browser. ,
, ,, These services provide support for creating, reading, updating, and deleting (CRUD) the WikiPage model objects. ,
, ,, WikiPages are composed of two major parts; the raw markdown text and a list of file attachments. For example, to embed an image from an end-user's machine into a WikiPage, the image file must first be uploaded to Synapse as ,,FileHandle,, (see ,,File Services,,). The FileHandle ID can then be added to a WikiPage.attachmentFileHandleIds list. See ,,www.synapse.org,, for details on the supported markdown syntax. ,
,,
, WikiPages are not stand-alone objects, instead they are a component of another object such as an Entity or Evaluation. For example, when a WikiPage is created for an Entity, the Entity becomes the "owner" of the WikiPage. Access to the WikiPage is always tied to its owner. For example, to GET a WikiPage of an Entity, the caller must have read permission on the Entity. ,
, ,, To navigate the hierarchy of WikiPages associated with an owner use the ,,GET /entity/{ownerId}/wikiheadertree,, method. The returned list of ,,WikiHeaders,, can be used to construct a full wiki hierarchy tree for that owner. ,
, ,, Note: WikiPages can be nested to created a hierarchy of sub-pages. However, there can only be one root WikiPage per owner object, and all sub-pages are considered to be owned by the same object as the root page. ,
ownerId required | string The ID of the owner Entity. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdown | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Entity. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owner Entity. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdown | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owner Evaluation. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdown | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Evaluation. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Entity. |
wikiId required | string The ID of the WikiPage to get. |
wikiVersion | number When included returns a specific version of a wiki. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Entity. |
wikiId required | string The ID of the WikiPage to update. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdown | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Entity. |
wikiId required | string The ID of the WikiPage to get. |
wikiVersion | number When included returns a specific version of a wiki. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Entity. |
wikiId required | string The ID of the WikiPage to update. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdown | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Evaluation. |
wikiId required | string The ID of the WikiPage to get. |
wikiVersion | number |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Evaluation. |
wikiId required | string The ID of the WikiPage to update. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdown | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdown": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Entity. |
offset | number The index of the pagination offset. For a page size of 10, the first page would be at offset = 0, and the second page would be at offset = 10. |
limit | number Limits the size of the page returned. For example, a page size of 10 require limit = 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "title": "string",
- "parentId": "string"
}
]
}
ownerId required | string The ID of the owning Evaluation. |
offset | number The index of the pagination offset. For a page size of 10, the first page would be at offset = 0, and the second page would be at offset = 10. |
limit | number Limits the size of the page returned. For example, a page size of 10 require limit = 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "title": "string",
- "parentId": "string"
}
]
}
ownerId required | string The ID of the owning Entity. |
wikiId required | string The ID of the WikiPage. |
{- "list": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
]
}
ownerId required | string The ID of the owning Evaluation. |
wikiId required | string The ID of the WikiPage. |
{- "list": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
]
}
ownerId required | string The ID of the owning Entity |
wikiId required | string The ID of the WikiPage |
fileName required | string The name of the file to get. The file names can be found in the FileHandles from the ,,GET /entity/{ownerId}/wiki/{wikiId}/attachmenthandles,, method. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
ownerId required | string The ID of the owning Evaluation |
wikiId required | string The ID of the WikiPage |
fileName required | string The name of the file to get. The file names can be found in the FileHandles from the ,,GET /evaluation/{ownerId}/wiki/{wikiId}/attachmenthandles,, method. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
ownerId required | string The ID of the owning Entity |
wikiId required | string The ID of the WikiPage |
fileName required | string The name of the file to get. The file names can be found in the FileHandles from the ,,GET /entity/{ownerId}/wiki/{wikiId}/attachmenthandles,, method. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
ownerId required | string The ID of the owning Evaluation |
wikiId required | string The ID of the WikiPage |
fileName required | string The name of the file to get. The file names can be found in the FileHandles from the ,,GET /evaluation/{ownerId}/wiki/{wikiId}/attachmenthandles,, method. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
These services relate to the 'commits' to Docker repositories. Note that create, update and delete of the Docker repositories themselves are done using the ,,Entity Services,,, for external/unmanaged repositories, or by direct integration with the Docker registry, for managed Docker repositories. Tagged commits for both managed and external/unmanaged repositories may be retrieved using the 'listDockerTags' API included in this service.
id required | string |
sort | string |
ascending | boolean , optional (default is false) |
limit | number pagination parameter, optional (default is 20) |
offset | number pagination parameter, optional (default is 0) |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "tag": "string",
- "digest": "string",
- "createdOn": "string"
}
]
}
,Some data in Synapse are governed by an ACTAccessRequirement. To gain access to these data, a user must meet all requirements specified in the ACTAccessRequirement.,
, ,,These services provide the APIs for users to create request to gain access to controlled data, and APIs for the ACT to review and grant access to users.,
id | string |
accessRequirementId | string |
institution | string |
projectLead | string |
intendedDataUseStatement | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
etag | string |
{- "id": "string",
- "accessRequirementId": "string",
- "institution": "string",
- "projectLead": "string",
- "intendedDataUseStatement": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "etag": "string"
}
{- "id": "string",
- "accessRequirementId": "string",
- "institution": "string",
- "projectLead": "string",
- "intendedDataUseStatement": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "etag": "string"
}
requirementId required | string |
{- "id": "string",
- "accessRequirementId": "string",
- "institution": "string",
- "projectLead": "string",
- "intendedDataUseStatement": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "etag": "string"
}
id | string |
accessRequirementId | string |
researchProjectId | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
ducFileHandleId | string |
irbFileHandleId | string |
attachments | Array of strings The set of file handle ID of attached files to this request. |
Array of objects List of user changes. A user can gain access, renew access or have access revoked. | |
etag | string |
concreteType | string |
{- "id": "string",
- "accessRequirementId": "string",
- "researchProjectId": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "ducFileHandleId": "string",
- "irbFileHandleId": "string",
- "attachments": [
- "string"
], - "accessorChanges": [
- {
- "userId": "string",
- "type": "string"
}
], - "etag": "string",
- "concreteType": "string"
}
{- "id": "string",
- "accessRequirementId": "string",
- "researchProjectId": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "ducFileHandleId": "string",
- "irbFileHandleId": "string",
- "attachments": [
- "string"
], - "accessorChanges": [
- {
- "userId": "string",
- "type": "string"
}
], - "etag": "string",
- "concreteType": "string"
}
requirementId required | string |
{- "id": "string",
- "accessRequirementId": "string",
- "researchProjectId": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "ducFileHandleId": "string",
- "irbFileHandleId": "string",
- "attachments": [
- "string"
], - "accessorChanges": [
- {
- "userId": "string",
- "type": "string"
}
], - "etag": "string",
- "concreteType": "string"
}
requestId required | string
|
requestId | string |
requestEtag | string |
subjectId | string |
subjectType | string |
{- "requestId": "string",
- "requestEtag": "string",
- "subjectId": "string",
- "subjectType": "string"
}
{- "submissionId": "string",
- "submittedBy": "string",
- "rejectedReason": "string",
- "state": "string",
- "modifiedOn": "string"
}
submissionId required | string
|
{- "submissionId": "string",
- "submittedBy": "string",
- "rejectedReason": "string",
- "state": "string",
- "modifiedOn": "string"
}
submissionId required | string |
submissionId | string |
newState | string |
rejectedReason | string |
{- "submissionId": "string",
- "newState": "string",
- "rejectedReason": "string"
}
{- "id": "string",
- "accessRequirementId": "string",
- "accessRequirementVersion": 0,
- "requestId": "string",
- "ducFileHandleId": "string",
- "irbFileHandleId": "string",
- "attachments": [
- "string"
], - "accessorChanges": [
- {
- "userId": "string",
- "type": "string"
}
], - "researchProjectSnapshot": {
- "id": "string",
- "accessRequirementId": "string",
- "institution": "string",
- "projectLead": "string",
- "intendedDataUseStatement": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "etag": "string"
}, - "isRenewalSubmission": true,
- "publication": "string",
- "summaryOfUse": "string",
- "submittedOn": "string",
- "modifiedOn": "string",
- "submittedBy": "string",
- "modifiedBy": "string",
- "state": "string",
- "rejectedReason": "string",
- "etag": "string",
- "subjectId": "string",
- "subjectType": "string"
}
submissionId required | string |
{- "id": "string",
- "accessRequirementId": "string",
- "accessRequirementVersion": 0,
- "requestId": "string",
- "ducFileHandleId": "string",
- "irbFileHandleId": "string",
- "attachments": [
- "string"
], - "accessorChanges": [
- {
- "userId": "string",
- "type": "string"
}
], - "researchProjectSnapshot": {
- "id": "string",
- "accessRequirementId": "string",
- "institution": "string",
- "projectLead": "string",
- "intendedDataUseStatement": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "etag": "string"
}, - "isRenewalSubmission": true,
- "publication": "string",
- "summaryOfUse": "string",
- "submittedOn": "string",
- "modifiedOn": "string",
- "submittedBy": "string",
- "modifiedBy": "string",
- "state": "string",
- "rejectedReason": "string",
- "etag": "string",
- "subjectId": "string",
- "subjectType": "string"
}
requirementId required | string |
accessRequirementId | string |
nextPageToken | string |
filterBy | string |
accessorId | string |
orderBy | string |
isAscending | boolean |
{- "accessRequirementId": "string",
- "nextPageToken": "string",
- "filterBy": "string",
- "accessorId": "string",
- "orderBy": "string",
- "isAscending": true
}
{- "results": [
- {
- "id": "string",
- "accessRequirementId": "string",
- "accessRequirementVersion": 0,
- "requestId": "string",
- "ducFileHandleId": "string",
- "irbFileHandleId": "string",
- "attachments": [
- "string"
], - "accessorChanges": [
- {
- "userId": "string",
- "type": "string"
}
], - "researchProjectSnapshot": {
- "id": "string",
- "accessRequirementId": "string",
- "institution": "string",
- "projectLead": "string",
- "intendedDataUseStatement": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "etag": "string"
}, - "isRenewalSubmission": true,
- "publication": "string",
- "summaryOfUse": "string",
- "submittedOn": "string",
- "modifiedOn": "string",
- "submittedBy": "string",
- "modifiedBy": "string",
- "state": "string",
- "rejectedReason": "string",
- "etag": "string",
- "subjectId": "string",
- "subjectType": "string"
}
], - "nextPageToken": "string"
}
requirementId required | string |
accessRequirementId | string |
nextPageToken | string |
{- "accessRequirementId": "string",
- "nextPageToken": "string"
}
{- "results": [
- {
- "institution": "string",
- "projectLead": "string",
- "intendedDataUseStatement": "string",
- "modifiedOn": "string",
- "submittedBy": "string",
- "accessorChanges": [
- {
- "userId": "string",
- "type": "string"
}
]
}
], - "nextPageToken": "string"
}
requirementId required | string |
{- "accessRequirementId": "string",
- "concreteType": "string",
- "isApproved": true,
- "expiredOn": "string"
}
restrictableObjectType | string |
objectId | string |
{- "restrictableObjectType": "string",
- "objectId": "string"
}
{- "restrictionLevel": "string",
- "hasUnmetAccessRequirement": true
}
accessorId | string |
accessRequirementId | string |
submissionState | string |
reviewerId | string |
reviewerFilterType | string |
Array of objects (org.sagebionetworks.repo.model.dataaccess.SubmissionSearchSort) | |
nextPageToken | string |
{- "accessorId": "string",
- "accessRequirementId": "string",
- "submissionState": "string",
- "reviewerId": "string",
- "reviewerFilterType": "string",
- "sort": [
- {
- "field": "string",
- "direction": "string"
}
], - "nextPageToken": "string"
}
{- "results": [
- {
- "id": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "accessRequirementId": "string",
- "accessRequirementVersion": "string",
- "accessRequirementName": "string",
- "accessRequirementReviewerIds": [
- "string"
], - "submitterId": "string",
- "accessorChanges": [
- {
- "userId": "string",
- "type": "string"
}
], - "state": "string"
}
], - "nextPageToken": "string"
}
, All data in Synapse is organize into ,,Projects,,. These Projects can be further organized into hierarchical ,,Folders,,. Finally, the data is then represented by ,,FileEntities,, that reside within Folders or directly within Projects. All these objects (Projects, Folders, FileEntities) are derived from a common object called ,,Entity,,. The Entity Services provide the means to create, read, update, and delete Synapse Entities. There are also services for navigating the Entity hierarchies , setting Authorization rules, and Annotating Entities. ,
, ,, In addition to the basic entity types (Project, Folder, ,&, FileEntity), Synapse also supports the following Entity types: ,
, The following methods provide the basic Create, Read, Update, Delete (CRUD) for Entities: ,
, ,, An Entity can be annotated using the ,,PUT /entity/{id}/annotations2,, method. Each annotation is a key-value pair. The ,,GET /entity/{id}/annotations2,, method can be used to get the current annotations of an entity. ,
, ,, An Entity's authorization is controlled by the Entity's ,,Access Control List (ACL),,. When a new Project is created a new ACL is automatically created for the Project. New Folders and FileEnties start off inheriting the ACL of their containing Project. This means they do not have their own ACL and all authorization is controlled by their Project's ACL. The term 'benefactor' is used to indicate which Entity an Entity inherits its ACL from. For example, a newly created Project will be its own benefactor, while a new FileEntity's benefactor will start off as its containing Project. The current benefactor of any Entity can be determined using the ,,GET /entity/{id}/benefactor,, method. ,
, ,, For the case where a Folder or FileEntity needs its own ACL (as opposed to inheriting it from its containing Project) a new ACL can be created for the Entity using the ,,POST /entity/{id}/acl,, method. When a new ACL is created for an Entity it will no longer inherit its permission from its containing Project and it will become its own benefactor. ,
, ,, While creating or updating an ACL, only Certified Users can add DOWNLOAD permission for Authenticated Users group. ,
, ,, For the case where a Folder or FileEntity no longer needs its own ACL, the ACL can deleted using the ,,DELETE /entity/{id}/acl,, method. When the ACL of an File or Folder is deleted, it will automatically be assigned the same benefactor as its parent Entity. Deleting the ACL of a Project is not allowed. ,
, ,, The ,,GET /entity/{id}/acl,, can be used to get an Entity's ACL. ,
, ,, To determine what permissions a User has on an Entity, the ,,GET /entity/{id}/permissions,, method should be used. ,
, ,, In addition to authorization via ACLs, entities may be restricted via AccessRequirements (ARs). For more information, see ,, Access Requirement Services,, and ,, Access Approval Services,, ,
, ,, Currently, ,,FileEntities,, are "versionable" meaning it is possible for it to have multiple versions of the file. Whenever, a FileEntity is updated with a new ,,FileHandle,, whose MD5 differs from the MD5 of the current file hanlde a new version of the FileEntity is automatically created. The history of a FileEntity can be retrieved using ,,GET /entity/{id}/version,, method. A specific version of a FileEntity can be retrieved using ,,GET /entity/{id}/version/{versionNumber},, method. The Annotations of a specific version of an FileEntity can be retrieved using the ,,GET /entity/{id}/version/{versionNumber}/annotations,, method. ,
, ,, Despite being ,,versionable,,, ,,Tables,,, ,,Views,, and ,,Materialized Views,, are versioned using snapshots: see ,,POST /entity/{id}/table/snapshot,, and ,,POST /entity/{id}/table/transaction/async/start,,. ,
, ,, ,,,Note: ,,Only the File and Annotations of an Entity are included in the version. All other components of an Entity such as description, name, parent, ACL, and WikiPage are ,,not,, not part of the version, and will not vary from version to version.,, ,
, ,, Each Entity type and Model object in Synapse is defined by a JSON schema. The ,,GET /REST/resources,, method will list the full name of all Resources used by Synapse. The schema for each Resource is accessible via ,,GET /REST/resources/schema,,. Note: Many of these resources are composition objects and one must navigate various interfaces of an object to fully digest it. Therefore, a flattened (or effective) schema for each resource is available from the ,,GET /REST/resources/effectiveSchema,, ,
, ,,Entity Service Limits,, ,,resource, | , ,,limit, | , ,
---|---|
,Maximum size of an Entity.name, | , ,,256 characters, | , ,
,Maximum size of an Entity.desciption, | , ,,1000 characters, | , ,
,Maximum number of versions for a single Entity, | , ,,15,000, | , ,
,Maximum number of keys in Annotations, | , ,,100, | , ,
,Maximum number of values associated with a single key in Annotations, | , ,,100, | , ,
,Maximum total character count for all values associated with a single key in Annotations when the AnnotationValueType is STRING, | , ,,500, | , ,
,Maximum hierarchical depth of an Entity, | , ,,50, | , ,
generatedBy | string To track the Provenance of an Entity create, include the ID of the ,,Activity,, that was created to track the change. For more information see: ,,POST /activity,,. You must be the creator of the ,,Activity,, used here. |
name | string |
description | string |
id | string |
etag | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
parentId | string |
concreteType | string |
repositoryName | string |
isManaged | boolean |
{- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}
{- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}
id required | string The ID of the entity to fetch. |
{- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}
id required | string The ID of the entity to update. This ID must match the ID of the passed Entity in the request body. |
generatedBy | string To track the Provenance of an Entity update, include the ID of the ,,Activity,, that was created to track the change. For more information see: ,,POST /activity,,. You must be the creator of the ,,Activity,, used here. |
newVersion | string To force the creation of a new version for a ,,versionable,, entity such as a ,,FileEntity,,, include this optional parameter with a value set to true (i.e. newVersion=true). This parameter is ignored for entities of type ,,Table,, (See ,,POST /entity/{id}/table/snapshot,, instead) |
name | string |
description | string |
id | string |
etag | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
parentId | string |
concreteType | string |
repositoryName | string |
isManaged | boolean |
{- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}
{- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}
id required | string The id of the file entity |
versionNumber required | number The entity version |
oldFileHandleId | string |
newFileHandleId | string |
{- "oldFileHandleId": "string",
- "newFileHandleId": "string"
}
id required | string
|
includeDerived required | boolean
|
{- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}
id required | string
|
id | string |
etag | string |
object Additional metadata associated with the object. The key is the name of your desired annotations. The value is an object containing a list of string values (use empty list to represent no values for key) and the value type associated with all values in the list |
{- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}
{- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}
id required | string The ID of the Entity. |
versionNumber required | number The version number of the Entity. |
{- "id": "string",
- "etag": "string",
- "annotations": {
- "property1": {
- "type": "string",
- "value": [
- "string"
]
}, - "property2": {
- "type": "string",
- "value": [
- "string"
]
}
}
}
id required | string The ID of the Entity. |
versionNumber required | number The version number of the Entity to get. |
{- "name": "string",
- "description": "string",
- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "parentId": "string",
- "concreteType": "string",
- "repositoryName": "string",
- "isManaged": true
}
id required | string The ID of the Entity to get the EntityHeader for. |
{- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
batch required | string A comma separated list of Entity IDs to get EntityHeaders for. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}
Array of objects (org.sagebionetworks.repo.model.Reference) The list of references |
{- "references": [
- {
- "targetId": "string",
- "targetVersionNumber": 0
}
]
}
{- "totalNumberOfResults": 0,
- "results": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}
id required | string The ID of the Entity to get permissions for. |
{- "canView": true,
- "canEdit": true,
- "canMove": true,
- "canAddChild": true,
- "canCertifiedUserEdit": true,
- "canCertifiedUserAddChild": true,
- "isCertifiedUser": true,
- "canChangePermissions": true,
- "canChangeSettings": true,
- "canDelete": true,
- "canDownload": true,
- "canUpload": true,
- "canEnableInheritance": true,
- "ownerPrincipalId": 0,
- "canPublicRead": true,
- "canModerate": true,
- "isCertificationRequired": true,
- "isEntityOpenData": true
}
id required | string The ID of the Entity to check the permission on. |
accessType required | string The permission to check. Must be from: ,,ACCESS_TYPE, |
true
id required | string The ID of the Entity to get the full path for. |
{- "path": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}
id required | string The ID of the Entity to create an ACL for. |
id | string |
createdBy | string |
creationDate | string |
modifiedBy | string |
modifiedOn | string |
etag | string |
Array of objects (org.sagebionetworks.repo.model.ResourceAccess) The list of principals who can access the data with the allowed types of access for each. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
id required | string The ID of the Entity to get the ACL for. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
id required | string The ID of the Entity to create an ACL for. |
id | string |
createdBy | string |
creationDate | string |
modifiedBy | string |
modifiedOn | string |
etag | string |
Array of objects (org.sagebionetworks.repo.model.ResourceAccess) The list of principals who can access the data with the allowed types of access for each. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
id required | string The ID of the entity to get the benefactor for. |
{- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
id required | string The ID of the Entity to get all versions for. |
offset | integer The offset index determines where this page will start from. When null it will default to 0. |
limit | integer Limits the number of entities that will be fetched for this page. When null it will default to 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "versionComment": "string",
- "isLatestVersion": true,
- "modifiedBy": "string",
- "contentSize": "string",
- "contentMd5": "string",
- "modifiedByPrincipalId": "string",
- "modifiedOn": "string"
}
]
}
resourceId required | string The full name of the resource (see ,,GET /REST/resources,, for the full list of names). |
{ }
resourceId required | string The full name of the resource (see ,,GET /REST/resources,, for the full list of names). |
{ }
id required | string The ID of the activity to fetch. |
{- "id": "string",
- "name": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "used": [
- {
- "wasExecuted": true,
- "concreteType": "string",
- "name": "string",
- "url": "string"
}
]
}
id required | string The ID of the entity to update. |
generatedBy required | string The id of the activity to connect to the entity. You must be the creator of the ,,Activity,, used here. |
{- "id": "string",
- "name": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "used": [
- {
- "wasExecuted": true,
- "concreteType": "string",
- "name": "string",
- "url": "string"
}
]
}
id required | string The ID of the entity to fetch. |
versionNumber required | number the version of the entity |
{- "id": "string",
- "name": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "used": [
- {
- "wasExecuted": true,
- "concreteType": "string",
- "name": "string",
- "url": "string"
}
]
}
id required | string The ID of the FileEntity to get. |
versionNumber required | number The version number of the FileEntity to get. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
id required | string The ID of the FileEntity to get. |
{- "list": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
]
}
id required | string The ID of the FileEntity to get. |
versionNumber required | number The version number of the FileEntity to get |
{- "list": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
]
}
{- "totalNumberOfResults": 0,
- "results": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}
parentId | string |
nextPageToken | string |
includeTypes | Array of strings The types of children to be include. Must include at least one type. |
sortBy | string |
sortDirection | string |
includeTotalChildCount | boolean |
includeSumFileSizes | boolean |
{- "parentId": "string",
- "nextPageToken": "string",
- "includeTypes": [
- "string"
], - "sortBy": "string",
- "sortDirection": "string",
- "includeTotalChildCount": true,
- "includeSumFileSizes": true
}
{- "page": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
], - "nextPageToken": "string",
- "totalChildCount": 0,
- "sumFileSizesBytes": 0
}
id required | string |
type required | string (org.sagebionetworks.repo.model.DataType) Enum: "SENSITIVE_DATA" "OPEN_DATA" |
{- "objectId": "string",
- "objectType": "string",
- "dataType": "string",
- "updatedBy": "string",
- "updatedOn": "string"
}
id required | string The ID of the entity to get credentials. This must be a folder with an STS-enabled storage location. |
permission required | string (org.sagebionetworks.repo.model.sts.StsPermission) Enum: "read_only" "read_write" Read-only or read-write permissions. See ,,StsPermission,,. |
{- "bucket": "string",
- "baseKey": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "sessionToken": "string",
- "expiration": "string"
}
id required | string The syn ID of the entity to bind. |
entityId | string |
schema$id | string |
enableDerivedAnnotations | boolean |
{- "entityId": "string",
- "schema$id": "string",
- "enableDerivedAnnotations": true
}
{- "jsonSchemaVersionInfo": {
- "organizationId": "string",
- "organizationName": "string",
- "schemaId": "string",
- "schemaName": "string",
- "versionId": "string",
- "$id": "string",
- "semanticVersion": "string",
- "jsonSHA256Hex": "string",
- "createdOn": "string",
- "createdBy": "string"
}, - "objectId": 0,
- "objectType": "string",
- "createdOn": "string",
- "createdBy": "string",
- "enableDerivedAnnotations": true
}
id required | string The ID of the entity. |
{- "jsonSchemaVersionInfo": {
- "organizationId": "string",
- "organizationName": "string",
- "schemaId": "string",
- "schemaName": "string",
- "versionId": "string",
- "$id": "string",
- "semanticVersion": "string",
- "jsonSHA256Hex": "string",
- "createdOn": "string",
- "createdBy": "string"
}, - "objectId": 0,
- "objectType": "string",
- "createdOn": "string",
- "createdBy": "string",
- "enableDerivedAnnotations": true
}
id required | string |
includeDerivedAnnotations required | boolean true if annotations that are derived from a bound schema should be included in the response, false otherwise (default false) |
{ }
id required | string The ID of the Entity. |
{- "objectId": "string",
- "objectType": "string",
- "objectEtag": "string",
- "schema$id": "string",
- "isValid": true,
- "validatedOn": "string",
- "validationErrorMessage": "string",
- "allValidationMessages": [
- "string"
], - "validationException": {
- "keyword": "string",
- "pointerToViolation": "string",
- "message": "string",
- "schemaLocation": "string",
- "causingExceptions": [
- { }
]
}
}
id required | string The ID of the container Entity. |
{- "containerId": "string",
- "totalNumberOfChildren": 0,
- "numberOfValidChildren": 0,
- "numberOfInvalidChildren": 0,
- "numberOfUnknownChildren": 0,
- "generatedOn": "string"
}
id required | string The ID of the container Entity. |
containerId | string |
nextPageToken | string |
{- "containerId": "string",
- "nextPageToken": "string"
}
{- "page": [
- {
- "objectId": "string",
- "objectType": "string",
- "objectEtag": "string",
- "schema$id": "string",
- "isValid": true,
- "validatedOn": "string",
- "validationErrorMessage": "string",
- "allValidationMessages": [
- "string"
], - "validationException": {
- "keyword": "string",
- "pointerToViolation": "string",
- "message": "string",
- "schemaLocation": "string",
- "causingExceptions": [
- { }
]
}
}
], - "nextPageToken": "string"
}
Every Synapse user has an associated ,,UserProfile,,.
{- "ownerId": "string",
- "etag": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "emails": [
- "string"
], - "openIds": [
- "string"
], - "userName": "string",
- "displayName": "string",
- "rStudioUrl": "string",
- "summary": "string",
- "position": "string",
- "location": "string",
- "industry": "string",
- "company": "string",
- "profilePicureFileHandleId": "string",
- "url": "string",
- "teamName": "string",
- "notificationSettings": {
- "sendEmailNotifications": true,
- "markEmailedMessagesAsRead": true
}, - "preferences": [
- {
- "name": "string",
- "concreteType": "string",
- "value": true
}
], - "createdOn": "string",
- "twoFactorAuthEnabled": true
}
ownerId | string |
etag | string |
firstName | string |
lastName | string |
string | |
emails | Array of strings The list of user email addresses registered to this user. |
openIds | Array of strings The list of OpenIds bound to this user's account. |
userName | string |
displayName | string |
rStudioUrl | string |
summary | string |
position | string |
location | string |
industry | string |
company | string |
profilePicureFileHandleId | string |
url | string |
teamName | string |
object (org.sagebionetworks.repo.model.message.Settings) Contains a user's notification settings | |
Array of org.sagebionetworks.repo.model.UserPreferenceBoolean (object) (org.sagebionetworks.repo.model.UserPreference) | |
createdOn | string |
twoFactorAuthEnabled | boolean |
{- "ownerId": "string",
- "etag": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "emails": [
- "string"
], - "openIds": [
- "string"
], - "userName": "string",
- "displayName": "string",
- "rStudioUrl": "string",
- "summary": "string",
- "position": "string",
- "location": "string",
- "industry": "string",
- "company": "string",
- "profilePicureFileHandleId": "string",
- "url": "string",
- "teamName": "string",
- "notificationSettings": {
- "sendEmailNotifications": true,
- "markEmailedMessagesAsRead": true
}, - "preferences": [
- {
- "name": "string",
- "concreteType": "string",
- "value": true
}
], - "createdOn": "string",
- "twoFactorAuthEnabled": true
}
{- "ownerId": "string",
- "etag": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "emails": [
- "string"
], - "openIds": [
- "string"
], - "userName": "string",
- "displayName": "string",
- "rStudioUrl": "string",
- "summary": "string",
- "position": "string",
- "location": "string",
- "industry": "string",
- "company": "string",
- "profilePicureFileHandleId": "string",
- "url": "string",
- "teamName": "string",
- "notificationSettings": {
- "sendEmailNotifications": true,
- "markEmailedMessagesAsRead": true
}, - "preferences": [
- {
- "name": "string",
- "concreteType": "string",
- "value": true
}
], - "createdOn": "string",
- "twoFactorAuthEnabled": true
}
list | Array of integers <int32> |
{- "list": [
- 0
]
}
{- "list": [
- {
- "ownerId": "string",
- "etag": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "emails": [
- "string"
], - "openIds": [
- "string"
], - "userName": "string",
- "displayName": "string",
- "rStudioUrl": "string",
- "summary": "string",
- "position": "string",
- "location": "string",
- "industry": "string",
- "company": "string",
- "profilePicureFileHandleId": "string",
- "url": "string",
- "teamName": "string",
- "notificationSettings": {
- "sendEmailNotifications": true,
- "markEmailedMessagesAsRead": true
}, - "preferences": [
- {
- "name": "string",
- "concreteType": "string",
- "value": true
}
], - "createdOn": "string",
- "twoFactorAuthEnabled": true
}
]
}
mask required | integer integer flag defining which components to include in the bundle , , This integer is used as a bit-string of flags to specify which parts to include in the UserBundle. The mask is defined as follows: ,
|
{- "userId": "string",
- "userProfile": {
- "ownerId": "string",
- "etag": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "emails": [
- "string"
], - "openIds": [
- "string"
], - "userName": "string",
- "displayName": "string",
- "rStudioUrl": "string",
- "summary": "string",
- "position": "string",
- "location": "string",
- "industry": "string",
- "company": "string",
- "profilePicureFileHandleId": "string",
- "url": "string",
- "teamName": "string",
- "notificationSettings": {
- "sendEmailNotifications": true,
- "markEmailedMessagesAsRead": true
}, - "preferences": [
- {
- "name": "string",
- "concreteType": "string",
- "value": true
}
], - "createdOn": "string",
- "twoFactorAuthEnabled": true
}, - "ORCID": "string",
- "verificationSubmission": {
- "id": "string",
- "createdOn": "string",
- "createdBy": "string",
- "firstName": "string",
- "lastName": "string",
- "emails": [
- "string"
], - "notificationEmail": "string",
- "location": "string",
- "company": "string",
- "orcid": "string",
- "stateHistory": [
- {
- "createdOn": "string",
- "createdBy": "string",
- "state": "string",
- "reason": "string",
- "notes": "string"
}
], - "attachments": [
- {
- "fileName": "string",
- "id": "string"
}
]
}, - "isCertified": true,
- "isVerified": true,
- "isACTMember": true,
- "isARReviewer": true
}
profileId required | string The target profile owner ID (the "id" field returned in the "/user" request). |
{- "ownerId": "string",
- "etag": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "emails": [
- "string"
], - "openIds": [
- "string"
], - "userName": "string",
- "displayName": "string",
- "rStudioUrl": "string",
- "summary": "string",
- "position": "string",
- "location": "string",
- "industry": "string",
- "company": "string",
- "profilePicureFileHandleId": "string",
- "url": "string",
- "teamName": "string",
- "notificationSettings": {
- "sendEmailNotifications": true,
- "markEmailedMessagesAsRead": true
}, - "preferences": [
- {
- "name": "string",
- "concreteType": "string",
- "value": true
}
], - "createdOn": "string",
- "twoFactorAuthEnabled": true
}
id required | string |
mask required | integer integer flag defining which components to include in the bundle , , This integer is used as a bit-string of flags to specify which parts to include in the UserBundle. The mask is defined as follows: ,
|
{- "userId": "string",
- "userProfile": {
- "ownerId": "string",
- "etag": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "emails": [
- "string"
], - "openIds": [
- "string"
], - "userName": "string",
- "displayName": "string",
- "rStudioUrl": "string",
- "summary": "string",
- "position": "string",
- "location": "string",
- "industry": "string",
- "company": "string",
- "profilePicureFileHandleId": "string",
- "url": "string",
- "teamName": "string",
- "notificationSettings": {
- "sendEmailNotifications": true,
- "markEmailedMessagesAsRead": true
}, - "preferences": [
- {
- "name": "string",
- "concreteType": "string",
- "value": true
}
], - "createdOn": "string",
- "twoFactorAuthEnabled": true
}, - "ORCID": "string",
- "verificationSubmission": {
- "id": "string",
- "createdOn": "string",
- "createdBy": "string",
- "firstName": "string",
- "lastName": "string",
- "emails": [
- "string"
], - "notificationEmail": "string",
- "location": "string",
- "company": "string",
- "orcid": "string",
- "stateHistory": [
- {
- "createdOn": "string",
- "createdBy": "string",
- "state": "string",
- "reason": "string",
- "notes": "string"
}
], - "attachments": [
- {
- "fileName": "string",
- "id": "string"
}
]
}, - "isCertified": true,
- "isVerified": true,
- "isACTMember": true,
- "isARReviewer": true
}
offset | integer The offset index determines where this page will start from. An index of 0 is the first item. , ,,Default is 0,, |
limit | integer Limits the number of items that will be fetched for this page. , ,,Default is 100,, |
sort | string Used to indicate upon which field(s) to sort. , ,,Default is NONE,, |
ascending | boolean Used to indicate whether the sort direction is ascending or not. , ,,Default is true,, |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "ownerId": "string",
- "etag": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "emails": [
- "string"
], - "openIds": [
- "string"
], - "userName": "string",
- "displayName": "string",
- "rStudioUrl": "string",
- "summary": "string",
- "position": "string",
- "location": "string",
- "industry": "string",
- "company": "string",
- "profilePicureFileHandleId": "string",
- "url": "string",
- "teamName": "string",
- "notificationSettings": {
- "sendEmailNotifications": true,
- "markEmailedMessagesAsRead": true
}, - "preferences": [
- {
- "name": "string",
- "concreteType": "string",
- "value": true
}
], - "createdOn": "string",
- "twoFactorAuthEnabled": true
}
]
}
concreteType | string |
hmac | string |
version | integer <int32> |
expiresOn | string |
createdOn | string |
userId | string |
object (org.sagebionetworks.repo.model.message.Settings) Contains a user's notification settings |
{- "concreteType": "string",
- "hmac": "string",
- "version": 0,
- "expiresOn": "string",
- "createdOn": "string",
- "userId": "string",
- "settings": {
- "sendEmailNotifications": true,
- "markEmailedMessagesAsRead": true
}
}
{- "message": "string"
}
ids required | string IDs are specified as request parameters at the end of the URL, separated by commas. , ,For example: , ,ids=1001,819,, |
{- "children": [
- {
- "ownerId": "string",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "email": "string",
- "displayName": "string",
- "isIndividual": true
}
], - "prefixFilter": "string",
- "totalNumberOfResults": 0
}
prefix | string |
typeFilter | string (org.sagebionetworks.repo.model.principal.TypeFilter) Enum: "USERS_ONLY" "TEAMS_ONLY" "ALL" Restrict the results to a type of principal. Available options: ,,TypeFilter,,. |
offset | integer The offset index determines where this page will start from. An index of 0 is the first item. , , ,,Default is 0,, , |
limit | integer Limits the number of items that will be fetched for this page. , , ,,Default is 10,, , |
{- "children": [
- {
- "ownerId": "string",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "email": "string",
- "displayName": "string",
- "isIndividual": true
}
], - "prefixFilter": "string",
- "totalNumberOfResults": 0
}
list | Array of strings |
{- "list": [
- "string"
]
}
{- "list": [
- {
- "ownerId": "string",
- "firstName": "string",
- "lastName": "string",
- "userName": "string",
- "email": "string",
- "displayName": "string",
- "isIndividual": true
}
]
}
id required | string Entity ID of the favorite ,,Entity, |
{- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
id required | string Entity ID of the ,,Entity,, that should be removed as a favorite |
offset | integer The offset index determines where this page will start from. An index of 0 is the first item. , ,,Default is 0,, |
limit | integer Limits the number of items that will be fetched for this page. , ,,Default is 10,, |
sort | string (org.sagebionetworks.repo.model.favorite.SortBy) Enum: "FAVORITED_ON" "NAME" Determines which field to use to sort the retrieved favorites. See ,,SortBy,,. , ,,Default is "FAVORITED_ON",, ,. |
sortDirection | string (org.sagebionetworks.repo.model.favorite.SortDirection) Enum: "ASC" "DESC" The direction for sorting the retrieved favorites. See ,,SortDirection,,. , ,,Default is "DESC",, ,. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "name": "string",
- "id": "string",
- "type": "string",
- "versionNumber": 0,
- "versionLabel": "string",
- "isLatestVersion": true,
- "benefactorId": 0,
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string"
}
]
}
teamId | number If the projectFilter is 'TEAM' then this is the ID of the team through which the returned projects are shared with the user. |
filter | string (org.sagebionetworks.repo.model.ProjectListType) Enum: "ALL" "CREATED" "PARTICIPATED" "TEAM" see above |
sort | string (org.sagebionetworks.repo.model.ProjectListSortColumn) Enum: "LAST_ACTIVITY" "PROJECT_NAME" |
sortDirection | string (org.sagebionetworks.repo.model.entity.query.SortDirection) Enum: "ASC" "DESC" The optional ,,sort direction,,. ,,Default sort descending, |
nextPageToken | string a token returned with the previous page of results |
{- "results": [
- {
- "name": "string",
- "id": "string",
- "lastActivity": "string",
- "modifiedOn": "string",
- "modifiedBy": 0
}
], - "nextPageToken": "string"
}
principalId required | number The ID of the user to list projects for |
teamId | number If the projectFilter is 'TEAM' then this is the ID of the team through which the returned projects are shared with 'principalId'. |
filter | string (org.sagebionetworks.repo.model.ProjectListType) Enum: "ALL" "CREATED" "PARTICIPATED" "TEAM" see above |
sort | string (org.sagebionetworks.repo.model.ProjectListSortColumn) Enum: "LAST_ACTIVITY" "PROJECT_NAME" |
sortDirection | string (org.sagebionetworks.repo.model.entity.query.SortDirection) Enum: "ASC" "DESC" The optional ,,sort direction,,. ,,Default sort descending, |
nextPageToken | string a token returned with the previous page of results |
{- "results": [
- {
- "name": "string",
- "id": "string",
- "lastActivity": "string",
- "modifiedOn": "string",
- "modifiedBy": 0
}
], - "nextPageToken": "string"
}
The Access Approval services manage the fulfillment of Access Requirements, on a per-user basis.
(See ,,
Access Requirement Services,, for more information.) Most of the Access Approval services
are available only to members of the Synapse Access and Compliance Team (ACT).
id | integer <int32> |
etag | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
requirementId | integer <int32> |
requirementVersion | integer <int32> |
submitterId | string |
accessorId | string |
expiredOn | string |
state | string |
{- "id": 0,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "requirementId": 0,
- "requirementVersion": 0,
- "submitterId": "string",
- "accessorId": "string",
- "expiredOn": "string",
- "state": "string"
}
{- "id": 0,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "requirementId": 0,
- "requirementVersion": 0,
- "submitterId": "string",
- "accessorId": "string",
- "expiredOn": "string",
- "state": "string"
}
approvalId required | string |
{- "id": 0,
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "requirementId": 0,
- "requirementVersion": 0,
- "submitterId": "string",
- "accessorId": "string",
- "expiredOn": "string",
- "state": "string"
}
accessRequirementId | string |
submitterId | string |
accessorId | string |
expireBefore | string |
nextPageToken | string |
{- "accessRequirementId": "string",
- "submitterId": "string",
- "accessorId": "string",
- "expireBefore": "string",
- "nextPageToken": "string"
}
{- "results": [
- {
- "accessRequirementId": "string",
- "accessorIds": [
- "string"
], - "submitterId": "string",
- "expiredOn": "string"
}
], - "nextPageToken": "string"
}
requirementId | integer <int32> |
recipientIds | Array of integers <int32> The list of recipient ids, max of 25 recipients allowed. |
{- "requirementId": 0,
- "recipientIds": [
- 0
]
}
{- "requirementId": 0,
- "results": [
- {
- "notificationType": "string",
- "requirementId": 0,
- "recipientId": 0,
- "sentOn": "string"
}
]
}
userId | string |
accessRequirementIds | Array of strings The ID of the access requirements. |
{- "userId": "string",
- "accessRequirementIds": [
- "string"
]
}
{- "results": [
- {
- "userId": "string",
- "accessRequirementId": "string",
- "hasAccessApproval": true
}
]
}
accessorId | string |
accessRequirementId | string |
Array of objects (org.sagebionetworks.repo.model.dataaccess.AccessApprovalSearchSort) | |
nextPageToken | string |
{- "accessorId": "string",
- "accessRequirementId": "string",
- "sort": [
- {
- "field": "string",
- "direction": "string"
}
], - "nextPageToken": "string"
}
{- "results": [
- {
- "id": "string",
- "accessRequirementId": "string",
- "accessRequirementVersion": "string",
- "accessRequirementName": "string",
- "submitterId": "string",
- "reviewerId": "string",
- "state": "string",
- "modifiedOn": "string",
- "expiredOn": "string"
}
], - "nextPageToken": "string"
}
The Membership Request Services create, retrieve and delete membership requests. A membership request is created by a Synapse user to request admission to a Team. Without the request it is not possible for a Team to admit the user. For more on Teams, see ,,Team Services,,.
acceptRequestEndpoint required | string The portal end-point for one-click acceptance of the membership request. A signed, serialized token is appended to create the complete: ,,JoinTeamSignedToken,, In normal operation, this parameter should be omitted. |
notificationUnsubscribeEndpoint required | string The portal prefix for one-click email unsubscription. A signed, serialized token is appended to create the complete: ,,NotificationSettingsSignedToken,,. In normal operation, this parameter should be omitted. |
id | string |
teamId | string |
userId | string |
message | string |
expiresOn | string |
createdOn | string |
createdBy | string |
{- "id": "string",
- "teamId": "string",
- "userId": "string",
- "message": "string",
- "expiresOn": "string",
- "createdOn": "string",
- "createdBy": "string"
}
{- "id": "string",
- "teamId": "string",
- "userId": "string",
- "message": "string",
- "expiresOn": "string",
- "createdOn": "string",
- "createdBy": "string"
}
id required | string Team ID |
requestorId | string the ID of the user requesting admission to the Team |
limit | integer the maximum number of requests to return (default 10) |
offset | integer the starting index of the returned results (default 0) |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "teamId": "string",
- "userId": "string",
- "message": "string",
- "expiresOn": "string",
- "createdOn": "string",
- "createdBy": "string"
}
]
}
id required | string User ID |
teamId | string |
limit | integer the maximum number of requests to return (default 10) |
offset | integer the starting index of the returned results (default 0) |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "teamId": "string",
- "userId": "string",
- "message": "string",
- "expiresOn": "string",
- "createdOn": "string",
- "createdBy": "string"
}
]
}
{- "count": 0
}
The recycle bin (or trash can) is the special folder that holds the deleted entities for users. ,
, Services are provided for users to delete entities into the trash can, to view entities in the trash can, to purge entities from the trash can, and to restore entities out of the trash can.
offset | number Paginated results. Offset to the current page. |
limit | number The maximum number of entities to retrieve per page. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "entityId": "string",
- "entityName": "string",
- "entityType": "string",
- "deletedByPrincipalId": "string",
- "deletedOn": "string",
- "originalParentId": "string"
}
]
}
These services manage the Access Requirements/Restrictions (ARs) which may be placed on Entities, or Teams. An Access Requirement specifies the type of access being restricted as well as how the requirement is fulfilled. ,
, ARs complement Access Control Lists (ACLs) for managing access to Synapse objects. While ACLs are managed by entity owners, ARs are managed by the Synapse Access and Compliance Team (ACT), which is responsible for governance of sensitive data. Before one may access data associated with an AR, there must be a corresponding Access Approval. For certain ARs -- of the "self-sign" variety -- one may grant ones own approval by agreeing to associated 'terms of use.' For other Access Requirements -- of the 'ACT' variety -- approval may be granted only by the ACT. ,
, ,, As stated above, an AR specifies the type of access being controlled. Generally entities are restricted with DOWNLOAD access. A Synapse user may be able to see that a Synapse File exists, but be unable to download the content due to such an AR. Teams are restricted using the PARTICIPATE access type: Prior to joining a Team a user must fulfill any associated ARs controlling this type of access. ,
, ,, Entity ARs are inherited from ancestors. E.g. an AR applied to a Folder will control all Files in the Folder, or within sub-folders of the Folder. Access Requirements are cumulative: A File will be controlled both by ARs applied to it directly and by ARs applied to any and all of its ancestors. ,
, ,, Access Requirements are fulfilled on a per-user basis using the ,, Access Approval Services,,. ,
versionNumber | integer <int32> |
id | integer <int32> |
description | string |
name | string |
etag | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
subjectsDefinedByAnnotations | boolean |
Array of objects The IDs of the items controlled by this Access Requirement when 'subjectsDefinedByAnnotations=false'. This property is mutually exclusive with 'subjectsDefinedByAnnotations'. When 'subjectsDefinedByAnnotations=true' then this property must be empty or excluded. Required when creating or updating and 'subjectsDefinedByAnnotations=false' or 'subjectsDefinedByAnnotations' is excluded. | |
accessType | string |
concreteType | string |
url | string |
{- "versionNumber": 0,
- "id": 0,
- "description": "string",
- "name": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "subjectsDefinedByAnnotations": true,
- "subjectIds": [
- {
- "id": "string",
- "type": "string"
}
], - "accessType": "string",
- "concreteType": "string",
- "url": "string"
}
{- "versionNumber": 0,
- "id": 0,
- "description": "string",
- "name": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "subjectsDefinedByAnnotations": true,
- "subjectIds": [
- {
- "id": "string",
- "type": "string"
}
], - "accessType": "string",
- "concreteType": "string",
- "url": "string"
}
requirementId required | string |
{- "versionNumber": 0,
- "id": 0,
- "description": "string",
- "name": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "subjectsDefinedByAnnotations": true,
- "subjectIds": [
- {
- "id": "string",
- "type": "string"
}
], - "accessType": "string",
- "concreteType": "string",
- "url": "string"
}
requirementId required | string the ID of the Access Requirement to be modified. |
versionNumber | integer <int32> |
id | integer <int32> |
description | string |
name | string |
etag | string |
createdOn | string |
modifiedOn | string |
createdBy | string |
modifiedBy | string |
subjectsDefinedByAnnotations | boolean |
Array of objects The IDs of the items controlled by this Access Requirement when 'subjectsDefinedByAnnotations=false'. This property is mutually exclusive with 'subjectsDefinedByAnnotations'. When 'subjectsDefinedByAnnotations=true' then this property must be empty or excluded. Required when creating or updating and 'subjectsDefinedByAnnotations=false' or 'subjectsDefinedByAnnotations' is excluded. | |
accessType | string |
concreteType | string |
url | string |
{- "versionNumber": 0,
- "id": 0,
- "description": "string",
- "name": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "subjectsDefinedByAnnotations": true,
- "subjectIds": [
- {
- "id": "string",
- "type": "string"
}
], - "accessType": "string",
- "concreteType": "string",
- "url": "string"
}
{- "versionNumber": 0,
- "id": 0,
- "description": "string",
- "name": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "subjectsDefinedByAnnotations": true,
- "subjectIds": [
- {
- "id": "string",
- "type": "string"
}
], - "accessType": "string",
- "concreteType": "string",
- "url": "string"
}
id required | string the ID of the entity to which an Access Requirement will be applied |
{- "versionNumber": 0,
- "id": 0,
- "description": "string",
- "name": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "subjectsDefinedByAnnotations": true,
- "subjectIds": [
- {
- "id": "string",
- "type": "string"
}
], - "accessType": "string",
- "concreteType": "string",
- "url": "string"
}
id required | string |
limit | number
|
offset | number
|
{- "totalNumberOfResults": 0,
- "results": [
- {
- "versionNumber": 0,
- "id": 0,
- "description": "string",
- "name": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "subjectsDefinedByAnnotations": true,
- "subjectIds": [
- {
- "id": "string",
- "type": "string"
}
], - "accessType": "string",
- "concreteType": "string",
- "url": "string"
}
]
}
id required | string the ID of the Team whose Access Requirements are retrieved. |
limit | number
|
offset | number
|
{- "totalNumberOfResults": 0,
- "results": [
- {
- "versionNumber": 0,
- "id": 0,
- "description": "string",
- "name": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "subjectsDefinedByAnnotations": true,
- "subjectIds": [
- {
- "id": "string",
- "type": "string"
}
], - "accessType": "string",
- "concreteType": "string",
- "url": "string"
}
]
}
accessRequirementId | string |
etag | string |
currentVersion | integer <int32> |
{- "accessRequirementId": "string",
- "etag": "string",
- "currentVersion": 0
}
{- "versionNumber": 0,
- "id": 0,
- "description": "string",
- "name": "string",
- "etag": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "createdBy": "string",
- "modifiedBy": "string",
- "subjectsDefinedByAnnotations": true,
- "subjectIds": [
- {
- "id": "string",
- "type": "string"
}
], - "accessType": "string",
- "concreteType": "string",
- "url": "string"
}
requirementId required | string |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
requirementId required | string |
id | string |
createdBy | string |
creationDate | string |
modifiedBy | string |
modifiedOn | string |
etag | string |
Array of objects (org.sagebionetworks.repo.model.ResourceAccess) The list of principals who can access the data with the allowed types of access for each. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
requirementId required | string |
id | string |
createdBy | string |
creationDate | string |
modifiedBy | string |
modifiedOn | string |
etag | string |
Array of objects (org.sagebionetworks.repo.model.ResourceAccess) The list of principals who can access the data with the allowed types of access for each. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
nameContains | string |
ids | Array of integers <int32> Optional list of ids used to filter access requirements with specific ids. |
relatedProjectId | string |
reviewerId | string |
accessType | string |
type | string |
Array of objects (org.sagebionetworks.repo.model.dataaccess.AccessRequirementSearchSort) | |
nextPageToken | string |
{- "nameContains": "string",
- "ids": [
- 0
], - "relatedProjectId": "string",
- "reviewerId": "string",
- "accessType": "string",
- "type": "string",
- "sort": [
- {
- "field": "string",
- "direction": "string"
}
], - "nextPageToken": "string"
}
{- "results": [
- {
- "id": "string",
- "type": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "name": "string",
- "version": "string",
- "relatedProjectIds": [
- "string"
], - "reviewerIds": [
- "string"
]
}
], - "nextPageToken": "string"
}
This is a generic set of services that provides support for both launching asynchronous jobs and monitoring the progress of jobs.
concreteType | string |
object (org.sagebionetworks.repo.model.table.CsvTableDescriptor) The description of a csv for upload or download. |
{- "concreteType": "string",
- "csvTableDescriptor": {
- "separator": "string",
- "quoteCharacter": "string",
- "escapeCharacter": "string",
- "lineEnd": "string",
- "isFirstLineHeader": true
}
}
{- "jobState": "string",
- "jobCanceling": true,
- "requestBody": {
- "concreteType": "string",
- "csvTableDescriptor": {
- "separator": "string",
- "quoteCharacter": "string",
- "escapeCharacter": "string",
- "lineEnd": "string",
- "isFirstLineHeader": true
}
}, - "responseBody": {
- "concreteType": "string",
- "updateResults": [
- {
- "entityId": "string",
- "failureMessage": "string",
- "failureCode": "string"
}
]
}, - "etag": "string",
- "jobId": "string",
- "startedByUserId": 0,
- "startedOn": "string",
- "changedOn": "string",
- "progressMessage": "string",
- "progressCurrent": 0,
- "progressTotal": 0,
- "exception": "string",
- "errorMessage": "string",
- "errorDetails": "string",
- "runtimeMS": 0,
- "callersContext": {
- "sessionId": "string"
}
}
jobId required | string The jobId issued to a job that has been launched with ,,POST /asynchronous/job, |
{- "jobState": "string",
- "jobCanceling": true,
- "requestBody": {
- "concreteType": "string",
- "csvTableDescriptor": {
- "separator": "string",
- "quoteCharacter": "string",
- "escapeCharacter": "string",
- "lineEnd": "string",
- "isFirstLineHeader": true
}
}, - "responseBody": {
- "concreteType": "string",
- "updateResults": [
- {
- "entityId": "string",
- "failureMessage": "string",
- "failureCode": "string"
}
]
}, - "etag": "string",
- "jobId": "string",
- "startedByUserId": 0,
- "startedOn": "string",
- "changedOn": "string",
- "progressMessage": "string",
- "progressCurrent": 0,
- "progressTotal": 0,
- "exception": "string",
- "errorMessage": "string",
- "errorDetails": "string",
- "runtimeMS": 0,
- "callersContext": {
- "sessionId": "string"
}
}
id required | string |
type required | string (org.sagebionetworks.repo.model.ObjectType) Enum: "ENTITY" "ENTITY_CONTAINER" "PRINCIPAL" "ACTIVITY" "EVALUATION" "EVALUATION_ROUND" "SUBMISSION" "EVALUATION_SUBMISSIONS" "FILE" "MESSAGE" "WIKI" "FAVORITE" "ACCESS_REQUIREMENT" "ACCESS_APPROVAL" "TEAM" "TABLE" "ACCESS_CONTROL_LIST" "PROJECT_SETTING" "VERIFICATION_SUBMISSION" "CERTIFIED_USER_PASSING_RECORD" "FORUM" "THREAD" "REPLY" "FORM_GROUP" "ORGANIZATION" "FORM_DATA" "ENTITY_VIEW" "USER_PROFILE" "DATA_ACCESS_REQUEST" "DATA_ACCESS_SUBMISSION" "DATA_ACCESS_SUBMISSION_STATUS" "MEMBERSHIP_INVITATION" "JSON_SCHEMA" "JSON_SCHEMA_DEPENDANT" "DATASET" "DATASET_COLLECTION" "THREAD_VIEW" "MATERIALIZED_VIEW" "VIRTUAL_TABLE" "TABLE_STATUS_EVENT" "DATA_ACCESS_SUBMISSION_EVENT" "FILE_EVENT" "QUERY_CACHE_HIT" |
version | number |
{- "creators": [
- {
- "creatorName": "string",
- "nameIdentifiers": [
- {
- "identifier": "string",
- "nameIdentifierScheme": "string"
}
]
}
], - "titles": [
- {
- "title": "string"
}
], - "publicationYear": 0,
- "resourceType": {
- "resourceTypeGeneral": "string"
}, - "associationId": "string",
- "etag": "string",
- "doiUri": "string",
- "doiUrl": "string",
- "objectId": "string",
- "objectType": "string",
- "objectVersion": 0,
- "associatedBy": "string",
- "associatedOn": "string",
- "updatedBy": "string",
- "updatedOn": "string"
}
id required | string |
type required | string (org.sagebionetworks.repo.model.ObjectType) Enum: "ENTITY" "ENTITY_CONTAINER" "PRINCIPAL" "ACTIVITY" "EVALUATION" "EVALUATION_ROUND" "SUBMISSION" "EVALUATION_SUBMISSIONS" "FILE" "MESSAGE" "WIKI" "FAVORITE" "ACCESS_REQUIREMENT" "ACCESS_APPROVAL" "TEAM" "TABLE" "ACCESS_CONTROL_LIST" "PROJECT_SETTING" "VERIFICATION_SUBMISSION" "CERTIFIED_USER_PASSING_RECORD" "FORUM" "THREAD" "REPLY" "FORM_GROUP" "ORGANIZATION" "FORM_DATA" "ENTITY_VIEW" "USER_PROFILE" "DATA_ACCESS_REQUEST" "DATA_ACCESS_SUBMISSION" "DATA_ACCESS_SUBMISSION_STATUS" "MEMBERSHIP_INVITATION" "JSON_SCHEMA" "JSON_SCHEMA_DEPENDANT" "DATASET" "DATASET_COLLECTION" "THREAD_VIEW" "MATERIALIZED_VIEW" "VIRTUAL_TABLE" "TABLE_STATUS_EVENT" "DATA_ACCESS_SUBMISSION_EVENT" "FILE_EVENT" "QUERY_CACHE_HIT" |
version | number |
{- "associationId": "string",
- "etag": "string",
- "doiUri": "string",
- "doiUrl": "string",
- "objectId": "string",
- "objectType": "string",
- "objectVersion": 0,
- "associatedBy": "string",
- "associatedOn": "string",
- "updatedBy": "string",
- "updatedOn": "string"
}
concreteType | string |
object (org.sagebionetworks.repo.model.doi.v2.Doi) JSON schema for fields associated with a DOI and its metadata. This object contains fields from both DoiAssociation and DataciteMetadata.
For more information, see the DoiAssociation and DataciteMetadata objects. |
{- "concreteType": "string",
- "doi": {
- "creators": [
- {
- "creatorName": "string",
- "nameIdentifiers": [
- {
- "identifier": "string",
- "nameIdentifierScheme": "string"
}
]
}
], - "titles": [
- {
- "title": "string"
}
], - "publicationYear": 0,
- "resourceType": {
- "resourceTypeGeneral": "string"
}, - "associationId": "string",
- "etag": "string",
- "doiUri": "string",
- "doiUrl": "string",
- "objectId": "string",
- "objectType": "string",
- "objectVersion": 0,
- "associatedBy": "string",
- "associatedOn": "string",
- "updatedBy": "string",
- "updatedOn": "string"
}
}
{- "token": "string"
}
asyncToken required | string The async job token from the create/update call |
{- "concreteType": "string",
- "doi": {
- "creators": [
- {
- "creatorName": "string",
- "nameIdentifiers": [
- {
- "identifier": "string",
- "nameIdentifierScheme": "string"
}
]
}
], - "titles": [
- {
- "title": "string"
}
], - "publicationYear": 0,
- "resourceType": {
- "resourceTypeGeneral": "string"
}, - "associationId": "string",
- "etag": "string",
- "doiUri": "string",
- "doiUrl": "string",
- "objectId": "string",
- "objectType": "string",
- "objectVersion": 0,
- "associatedBy": "string",
- "associatedOn": "string",
- "updatedBy": "string",
- "updatedOn": "string"
}
}
id required | string |
type required | string (org.sagebionetworks.repo.model.ObjectType) Enum: "ENTITY" "ENTITY_CONTAINER" "PRINCIPAL" "ACTIVITY" "EVALUATION" "EVALUATION_ROUND" "SUBMISSION" "EVALUATION_SUBMISSIONS" "FILE" "MESSAGE" "WIKI" "FAVORITE" "ACCESS_REQUIREMENT" "ACCESS_APPROVAL" "TEAM" "TABLE" "ACCESS_CONTROL_LIST" "PROJECT_SETTING" "VERIFICATION_SUBMISSION" "CERTIFIED_USER_PASSING_RECORD" "FORUM" "THREAD" "REPLY" "FORM_GROUP" "ORGANIZATION" "FORM_DATA" "ENTITY_VIEW" "USER_PROFILE" "DATA_ACCESS_REQUEST" "DATA_ACCESS_SUBMISSION" "DATA_ACCESS_SUBMISSION_STATUS" "MEMBERSHIP_INVITATION" "JSON_SCHEMA" "JSON_SCHEMA_DEPENDANT" "DATASET" "DATASET_COLLECTION" "THREAD_VIEW" "MATERIALIZED_VIEW" "VIRTUAL_TABLE" "TABLE_STATUS_EVENT" "DATA_ACCESS_SUBMISSION_EVENT" "FILE_EVENT" "QUERY_CACHE_HIT" |
version | number |
redirect | boolean Whether to return the URL or redirect to the URL |
These services allow Synapse to act as an authorization service for a Docker Registry. For more details see: https://github.com/docker/distribution/blob/master/docs/spec/auth/token.md
Authorization is either: ,
The Membership Invitation Services create, retrieve and delete membership invitations. A membership invitation is created by a Team administrator to invite a Synapse user to join the Team. Without the invitation it is not possible for an outside user to join. For more on Teams, see ,,Team Services,,.
acceptInvitationEndpoint | string The portal endpoint prefix for one-click acceptance of the membership invitation. A signed, serialized token is appended to create the complete URL: ,,JoinTeamSignedToken,, if an inviteeId is specified, or ,,MembershipInvtnSignedToken,, if an inviteeEmail is specified. In normal operation, this parameter should be omitted. |
notificationUnsubscribeEndpoint required | string The portal endpoint prefix for one-click email unsubscription. A signed, serialized token is appended to create the complete URL: ,,NotificationSettingsSignedToken,,. In normal operation, this parameter should be omitted. |
id | string |
teamId | string |
inviteeId | string |
inviteeEmail | string |
message | string |
expiresOn | string |
createdOn | string |
createdBy | string |
{- "id": "string",
- "teamId": "string",
- "inviteeId": "string",
- "inviteeEmail": "string",
- "message": "string",
- "expiresOn": "string",
- "createdOn": "string",
- "createdBy": "string"
}
{- "id": "string",
- "teamId": "string",
- "inviteeId": "string",
- "inviteeEmail": "string",
- "message": "string",
- "expiresOn": "string",
- "createdOn": "string",
- "createdBy": "string"
}
id required | string the ID of the Synapse user to which invitations have been extended. |
teamId | string the ID of the Team extending the invitations (optional) |
limit | integer the maximum number of invitations to return (default 10) |
offset | integer the starting index of the returned results (default 0) |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "teamId": "string",
- "inviteeId": "string",
- "inviteeEmail": "string",
- "message": "string",
- "expiresOn": "string",
- "createdOn": "string",
- "createdBy": "string"
}
]
}
id required | string the ID of the Team extending the invitations |
inviteeId | string the ID of the Synapse user to which invitations have been extended (optional) |
limit | integer the maximum number of invitations to return (default 10) |
offset | integer the starting index of the returned results (default 0) |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "teamId": "string",
- "inviteeId": "string",
- "inviteeEmail": "string",
- "message": "string",
- "expiresOn": "string",
- "createdOn": "string",
- "createdBy": "string"
}
]
}
id required | string the ID of the invitation |
{- "id": "string",
- "teamId": "string",
- "inviteeId": "string",
- "inviteeEmail": "string",
- "message": "string",
- "expiresOn": "string",
- "createdOn": "string",
- "createdBy": "string"
}
id required | string |
concreteType | string |
hmac | string |
version | integer <int32> |
expiresOn | string |
createdOn | string |
membershipInvitationId | string |
{- "concreteType": "string",
- "hmac": "string",
- "version": 0,
- "expiresOn": "string",
- "createdOn": "string",
- "membershipInvitationId": "string"
}
{- "id": "string",
- "teamId": "string",
- "inviteeId": "string",
- "inviteeEmail": "string",
- "message": "string",
- "expiresOn": "string",
- "createdOn": "string",
- "createdBy": "string"
}
{- "count": 0
}
id required | string |
{- "concreteType": "string",
- "hmac": "string",
- "version": 0,
- "expiresOn": "string",
- "createdOn": "string",
- "inviteeId": "string",
- "membershipInvitationId": "string"
}
id required | string |
concreteType | string |
hmac | string |
version | integer <int32> |
expiresOn | string |
createdOn | string |
inviteeId | string |
membershipInvitationId | string |
{- "concreteType": "string",
- "hmac": "string",
- "version": 0,
- "expiresOn": "string",
- "createdOn": "string",
- "inviteeId": "string",
- "membershipInvitationId": "string"
}
, The Synapse ,,V2WikiPage,, model object contains the data needed to render an end-user crafted web page. The Synapse Web Client will dynamically render a WikiPage into a combination of HTML, CSS and Javascript which is then finally rendered as a web page in the client's web browser. ,
, ,, These services provide support for creating, reading, updating, and deleting (CRUD) the WikiPage model objects. ,
, ,, WikiPages are composed of two major parts; a file that contains the markdown text and a list of file attachments. For example, to embed an image from an end-user's machine into a WikiPage, the image file must first be uploaded to Synapse as ,,FileHandle,, (see ,,File Services,,). The FileHandle ID can then be added to a WikiPage.attachmentFileHandleIds list. See ,,www.synapse.org,, for details on the supported markdown syntax. The markdown text is similarly uploaded as a FileHandle and its FileHandle ID is tracked by the WikiPage. ,
,,
, WikiPages are not stand-alone objects, instead they are a component of another object such as an Entity or Evaluation. For example, when a WikiPage is created for an Entity, the Entity becomes the "owner" of the WikiPage. Access to the WikiPage is always tied to its owner. For example, to GET a WikiPage of an Entity, the caller must have read permission on the Entity. ,
, ,, To navigate the hierarchy of WikiPages associated with an owner use the ,,GET /entity/{ownerId}/wikiheadertree2,, method. The returned list of ,,V2WikiHeaders,, can be used to construct a full wiki hierarchy tree for that owner. ,
, ,, To view a timeline of changes made to a WikiPage, use the ,,GET/entity/{ownerId} /wiki2/{wikiId}/wikihistory,, method. The returned list of ,,V2WikiHistorySnapshots ,, contain information about who modified the WikiPage and when the changes were made. ,
, ,, Note: WikiPages can be nested to created a hierarchy of sub-pages. However, there can only be one root WikiPage per owner object, and all sub-pages are considered to be owned by the same object as the root page. ,
ownerId required | string The ID of the owner Entity. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdownFileHandleId | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Entity. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owner AccessRequirement. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdownFileHandleId | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning AccessRequirement. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owner Evaluation. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdownFileHandleId | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Evaluation. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Entity. |
wikiId required | string The ID of the WikiPage to get. |
wikiVersion | number When included returns a specific version of a wiki. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Entity. |
wikiId required | string The ID of the WikiPage to update. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdownFileHandleId | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Access Requirement. |
wikiId required | string The ID of the WikiPage to get. |
wikiVersion | number |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Access Requirement. |
wikiId required | string The ID of the WikiPage to update. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdownFileHandleId | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Evaluation. |
wikiId required | string The ID of the WikiPage to get. |
wikiVersion | number |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Evaluation. |
wikiId required | string The ID of the WikiPage to update. |
id | string |
etag | string |
createdOn | string |
createdBy | string |
modifiedOn | string |
modifiedBy | string |
parentWikiId | string |
title | string |
markdownFileHandleId | string |
attachmentFileHandleIds | Array of strings The list of attachment file handle ids of this page. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string |
ownerId | string |
ownerObjectType | string |
idList | Array of strings The list of sub wiki ids that in the order that they should be placed relative to their siblings. |
etag | string |
{- "ownerId": "string",
- "ownerObjectType": "string",
- "idList": [
- "string"
], - "etag": "string"
}
{- "ownerId": "string",
- "ownerObjectType": "string",
- "idList": [
- "string"
], - "etag": "string"
}
wikiVersion required | number |
ownerId required | string The ID of the owning Entity. |
wikiId required | string The ID of the WikiPage to update. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
wikiVersion required | number |
ownerId required | string The ID of the owning Access Requirement. |
wikiId required | string The ID of the WikiPage to update. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
wikiVersion required | number |
ownerId required | string The ID of the owning Entity. |
wikiId required | string The ID of the WikiPage to update. |
{- "id": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": "string",
- "modifiedOn": "string",
- "modifiedBy": "string",
- "parentWikiId": "string",
- "title": "string",
- "markdownFileHandleId": "string",
- "attachmentFileHandleIds": [
- "string"
]
}
ownerId required | string The ID of the owning Entity. |
offset | number The index of the pagination offset. For a page size of 10, the first page would be at offset = 0, and the second page would be at offset = 10. |
limit | number Limits the size of the page returned. For example, a page size of 10 require limit = 10. Limit must be 50 or less. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "title": "string",
- "parentId": "string"
}
]
}
ownerId required | string The ID of the owning Access Requirement. |
offset | number The index of the pagination offset. For a page size of 10, the first page would be at offset = 0, and the second page would be at offset = 10. |
limit | number Limits the size of the page returned. For example, a page size of 10 require limit = 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "title": "string",
- "parentId": "string"
}
]
}
ownerId required | string The ID of the owning Evaluation. |
offset | number The index of the pagination offset. For a page size of 10, the first page would be at offset = 0, and the second page would be at offset = 10. |
limit | number Limits the size of the page returned. For example, a page size of 10 require limit = 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "id": "string",
- "title": "string",
- "parentId": "string"
}
]
}
wikiId required | string The ID of the WikiPage. |
ownerId required | string The ID of the owning Entity. |
offset required | number The index of the pagination offset. For a page size of 10, the first page would be at offset = 0, and the second page would be at offset = 10. |
limit required | number Limits the size of the page returned. For example, a page size of 10 require limit = 10. Limit must be 50 or less. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "version": "string",
- "modifiedOn": "string",
- "modifiedBy": "string"
}
]
}
wikiId required | string The ID of the WikiPage. |
ownerId required | string The ID of the owning Access Requirement. |
offset required | number The index of the pagination offset. For a page size of 10, the first page would be at offset = 0, and the second page would be at offset = 10. |
limit required | number Limits the size of the page returned. For example, a page size of 10 require limit = 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "version": "string",
- "modifiedOn": "string",
- "modifiedBy": "string"
}
]
}
wikiId required | string The ID of the WikiPage. |
ownerId required | string The ID of the owning Entity. |
offset required | number The index of the pagination offset. For a page size of 10, the first page would be at offset = 0, and the second page would be at offset = 10. |
limit required | number Limits the size of the page returned. For example, a page size of 10 require limit = 10. |
{- "totalNumberOfResults": 0,
- "results": [
- {
- "version": "string",
- "modifiedOn": "string",
- "modifiedBy": "string"
}
]
}
ownerId required | string The ID of the owning Entity. |
wikiId required | string The ID of the WikiPage. |
wikiVersion | number |
{- "list": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
]
}
ownerId required | string The ID of the owning Access Requirement. |
wikiId required | string The ID of the WikiPage. |
wikiVersion | number |
{- "list": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
]
}
ownerId required | string The ID of the owning Evaluation. |
wikiId required | string The ID of the WikiPage. |
wikiVersion | number |
{- "list": [
- {
- "id": "string",
- "etag": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "concreteType": "string",
- "contentType": "string",
- "contentMd5": "string",
- "fileName": "string",
- "storageLocationId": 0,
- "contentSize": 0,
- "status": "string",
- "endpointUrl": "string",
- "bucket": "string",
- "fileKey": "string"
}
]
}
ownerId required | string The ID of the owning Entity |
wikiId required | string The ID of the WikiPage |
fileName required | string The name of the file to get. The file names can be found in the FileHandles from the ,,GET /entity/{ownerId}/wiki/{wikiId}/attachmenthandles,, method. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
wikiVersion | number |
ownerId required | string The ID of the owning Access Requirement |
wikiId required | string The ID of the WikiPage |
fileName required | string The name of the file to get. The file names can be found in the FileHandles from the ,,GET /accessRequirement/{ownerId}/wiki/{wikiId}/attachmenthandles,, method. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
wikiVersion | number |
ownerId required | string The ID of the owning Evaluation |
wikiId required | string The ID of the WikiPage |
fileName required | string The name of the file to get. The file names can be found in the FileHandles from the ,,GET /evaluation/{ownerId}/wiki/{wikiId}/attachmenthandles,, method. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
wikiVersion | number |
ownerId required | string The ID of the owning Entity |
wikiId required | string The ID of the WikiPage |
fileName required | string The name of the file to get. The file names can be found in the FileHandles from the ,,GET /entity/{ownerId}/wiki/{wikiId}/attachmenthandles,, method. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
wikiVersion | number |
ownerId required | string The ID of the owning Access Requirement |
wikiId required | string The ID of the WikiPage |
fileName required | string The name of the file to get. The file names can be found in the FileHandles from the ,,GET /accessRequirement/{ownerId}/wiki/{wikiId}/attachmenthandles,, method. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
wikiVersion | number |
ownerId required | string The ID of the owning Evaluation |
wikiId required | string The ID of the WikiPage |
fileName required | string The name of the file to get. The file names can be found in the FileHandles from the ,,GET /evaluation/{ownerId}/wiki/{wikiId}/attachmenthandles,, method. |
redirect | boolean When set to false, the URL will be returned as text/plain instead of redirecting. |
wikiVersion | number |
The project settings services provide configuration options that can be applied to projects. In particular through the ,,POST /projectSettings,, and ,,PUT /projectSettings,, services a user can create or update the setting of a specific ,,type,, for a project. ,
, Currently supported settings for a project are:,
,
, The ,,POST /storageLocation,, service is provided in order to create ,,StorageLocationSetting,,. The id of a ,,StorageLocationSetting,, can then be set in the ,,locations,, property of the ,,UploadDestinationListSetting,,. ,, When uploading a file the id of the default ,,StorageLocationSetting,, to be used on a folder can be retrieved using the ,,GET /entity/{id}/uploadDestination,, service using the id of the parent entity (e.g. a folder or a project). ,, By setting a custom storage location, users can store the data in their own S3 or Google Cloud bucket. Note that when a folder or a project is configured to use a custom storage location, only future uploads through Synapse are affected (e.g. changing the storage location does not automatically change the location of existing files). For a guide on setting a custom storage location, see the ,,Custom Storage Location,, documentation article. ,id required | string the ID of the ,,ProjectSetting, |
{- "concreteType": "string",
- "id": "string",
- "projectId": "string",
- "settingsType": "string",
- "etag": "string",
- "locations": [
- 0
]
}
id required | string The ID of the ,,ProjectSetting,,. This is not the ID of the project. |
projectId required | string the ID of the project |
type required | string (org.sagebionetworks.repo.model.project.ProjectSettingsType) Value: "upload" The ,,ProjectSettingsType,, to get. |
{- "concreteType": "string",
- "id": "string",
- "projectId": "string",
- "settingsType": "string",
- "etag": "string",
- "locations": [
- 0
]
}
concreteType | string |
id | string |
projectId | string |
settingsType | string |
etag | string |
locations | Array of integers <int32> List of ids pointing to StorageLocationSetting. The first one in the list is the default location; The maximum number of storage locations for a project is limited to 10. |
{- "concreteType": "string",
- "id": "string",
- "projectId": "string",
- "settingsType": "string",
- "etag": "string",
- "locations": [
- 0
]
}
{- "concreteType": "string",
- "id": "string",
- "projectId": "string",
- "settingsType": "string",
- "etag": "string",
- "locations": [
- 0
]
}
concreteType | string |
id | string |
projectId | string |
settingsType | string |
etag | string |
locations | Array of integers <int32> List of ids pointing to StorageLocationSetting. The first one in the list is the default location; The maximum number of storage locations for a project is limited to 10. |
{- "concreteType": "string",
- "id": "string",
- "projectId": "string",
- "settingsType": "string",
- "etag": "string",
- "locations": [
- 0
]
}
concreteType | string |
storageLocationId | integer <int32> |
uploadType | string |
banner | string |
description | string |
etag | string |
createdOn | string |
createdBy | integer <int32> |
proxyUrl | string |
secretKey | string |
benefactorId | string |
{- "concreteType": "string",
- "storageLocationId": 0,
- "uploadType": "string",
- "banner": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": 0,
- "proxyUrl": "string",
- "secretKey": "string",
- "benefactorId": "string"
}
{- "concreteType": "string",
- "storageLocationId": 0,
- "uploadType": "string",
- "banner": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": 0,
- "proxyUrl": "string",
- "secretKey": "string",
- "benefactorId": "string"
}
id required | number the ID of the storage location setting. |
{- "concreteType": "string",
- "storageLocationId": 0,
- "uploadType": "string",
- "banner": "string",
- "description": "string",
- "etag": "string",
- "createdOn": "string",
- "createdBy": 0,
- "proxyUrl": "string",
- "secretKey": "string",
- "benefactorId": "string"
}
Collection of APIs from managing and submitting form data. There are two basic objects: ,
, To download the data associated with a FormData object use: ,,POST /fileHandle/batch,, providing the formData.dataFileHandleId with ,,FileHandleAssociateType.FormData,
{- "groupId": "string",
- "name": "string",
- "createdBy": "string",
- "createdOn": "string"
}
id required | string The identifier of the FormGroup. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
id required | string The identifier of the FormGroup. |
id | string |
createdBy | string |
creationDate | string |
modifiedBy | string |
modifiedOn | string |
etag | string |
Array of objects (org.sagebionetworks.repo.model.ResourceAccess) The list of principals who can access the data with the allowed types of access for each. |
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
{- "id": "string",
- "createdBy": "string",
- "creationDate": "string",
- "modifiedBy": "string",
- "modifiedOn": "string",
- "etag": "string",
- "resourceAccess": [
- {
- "principalId": 0,
- "accessType": [
- "string"
]
}
]
}
groupId required | string The identifier of the group that manages this data. Required. |
name | string |
fileHandleId | string |
{- "name": "string",
- "fileHandleId": "string"
}
{- "formDataId": "string",
- "etag": "string",
- "groupId": "string",
- "name": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "dataFileHandleId": "string",
- "submissionStatus": {
- "submittedOn": "string",
- "reviewedOn": "string",
- "reviewedBy": "string",
- "state": "string",
- "rejectionMessage": "string"
}
}
id required | string The identifier of the FormData to update. |
name | string |
fileHandleId | string |
{- "name": "string",
- "fileHandleId": "string"
}
{- "formDataId": "string",
- "etag": "string",
- "groupId": "string",
- "name": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "dataFileHandleId": "string",
- "submissionStatus": {
- "submittedOn": "string",
- "reviewedOn": "string",
- "reviewedBy": "string",
- "state": "string",
- "rejectionMessage": "string"
}
}
{- "formDataId": "string",
- "etag": "string",
- "groupId": "string",
- "name": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "dataFileHandleId": "string",
- "submissionStatus": {
- "submittedOn": "string",
- "reviewedOn": "string",
- "reviewedBy": "string",
- "state": "string",
- "rejectionMessage": "string"
}
}
filterByState | Array of strings Only return results with a state that matches elements from this set. Required. Must include at least one element. |
groupId | string |
nextPageToken | string |
{- "filterByState": [
- "string"
], - "groupId": "string",
- "nextPageToken": "string"
}
{- "page": [
- {
- "formDataId": "string",
- "etag": "string",
- "groupId": "string",
- "name": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "dataFileHandleId": "string",
- "submissionStatus": {
- "submittedOn": "string",
- "reviewedOn": "string",
- "reviewedBy": "string",
- "state": "string",
- "rejectionMessage": "string"
}
}
], - "nextPageToken": "string"
}
filterByState | Array of strings Only return results with a state that matches elements from this set. Required. Must include at least one element. |
groupId | string |
nextPageToken | string |
{- "filterByState": [
- "string"
], - "groupId": "string",
- "nextPageToken": "string"
}
{- "page": [
- {
- "formDataId": "string",
- "etag": "string",
- "groupId": "string",
- "name": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "dataFileHandleId": "string",
- "submissionStatus": {
- "submittedOn": "string",
- "reviewedOn": "string",
- "reviewedBy": "string",
- "state": "string",
- "rejectionMessage": "string"
}
}
], - "nextPageToken": "string"
}
id required | string Identifier of the FormData to accept. |
{- "formDataId": "string",
- "etag": "string",
- "groupId": "string",
- "name": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "dataFileHandleId": "string",
- "submissionStatus": {
- "submittedOn": "string",
- "reviewedOn": "string",
- "reviewedBy": "string",
- "state": "string",
- "rejectionMessage": "string"
}
}
id required | string Identifier of the FormData to accept. |
reason | string |
{- "reason": "string"
}
{- "formDataId": "string",
- "etag": "string",
- "groupId": "string",
- "name": "string",
- "createdBy": "string",
- "createdOn": "string",
- "modifiedOn": "string",
- "dataFileHandleId": "string",
- "submissionStatus": {
- "submittedOn": "string",
- "reviewedOn": "string",
- "reviewedBy": "string",
- "state": "string",
- "rejectionMessage": "string"
}
}