The Open API specification for Synapse is now available for download!

Download Open API Spec

PUT /entity/{id}/datatype

Change the DataType of the given entity. The entity's DataType controls how the entity can be accessed. For example, an entity's DataType must be set to 'open_data' in order for anonymous to be allowed to access its contents.

An entity's data type can be checked using: GET /entity/{id}/permissions to get UserEntityPermissions.isEntityOpenData

Note: The caller must be a member of the 'Synapse Access and Compliance Team' (id=464532) in order to change an Entity's type to 'OPEN_DATA'. The caller must be grated UPDATED on the Entity to change the its type to any other value.

Resource URL

https://repo-prod.prod.sagebase.org/repo/v1/entity/{id}/datatype

Resource URL Variables
{id}
Parameters
type

optional

Resource Information
Authentication Required
Required OAuth Scopes view , modify
HTTP Method PUT
Request Object None
Response Object DataTypeResponse
(application/json)