public interface SightResources
| Modifier and Type | Method and Description |
|---|---|
Sight |
copySight(long sightId,
ContainerDestination destination)
Creates s copy of the specified Sight.
|
void |
deleteSight(long sightId)
Delete a specified Sight.
|
SightPublish |
getPublishStatus(long sightId)
Get the publish status of a Sight.
|
Sight |
getSight(long sightId)
Get a specified Sight.
|
Sight |
getSight(long sightId,
EnumSet<SightInclusion> includes,
Integer level)
Get a specified Sight.
|
Sight |
getSight(long sightId,
Integer level)
Get a specified Sight.
|
PagedResult<Sight> |
listSights(PaginationParameters paging,
Date modifiedSince)
Gets the list of all Sights where the User has access.
|
Sight |
moveSight(long sightId,
ContainerDestination destination)
Creates s copy of the specified Sight.
|
SightPublish |
setPublishStatus(long sightId,
SightPublish sightPublish)
Sets the publish status of a Sight and returns the new status, including the URLs of any enabled publishing.
|
ShareResources |
shareResources()
Return the ShareResources object that provides access to share resources associated with
Sight resources.
|
Sight |
updateSight(Sight sight)
Get a specified Sight.
|
PagedResult<Sight> listSights(PaginationParameters paging, Date modifiedSince) throws SmartsheetException
Gets the list of all Sights where the User has access.
It mirrors to the following Smartsheet REST API method: GET /sights
paging - the pagination parametersmodifiedSince - include sights modified on or after this dateIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSight getSight(long sightId) throws SmartsheetException
Get a specified Sight.
It mirrors to the following Smartsheet REST API method: GET /sights/{sightId}
sightId - the Id of the SightIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSight getSight(long sightId, Integer level) throws SmartsheetException
Get a specified Sight.
It mirrors to the following Smartsheet REST API method: GET /sights/{sightId}
sightId - the Id of the Sightlevel - compatibility levelIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSight getSight(long sightId, EnumSet<SightInclusion> includes, Integer level) throws SmartsheetException
Get a specified Sight.
It mirrors to the following Smartsheet REST API method: GET /sights/{sightId}
sightId - the Id of the Sightlevel - compatibility levelIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSight updateSight(Sight sight) throws SmartsheetException
Get a specified Sight.
It mirrors to the following Smartsheet REST API method: PUT /sights/{sightId}
sight - - the Sight to updateIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationvoid deleteSight(long sightId)
throws SmartsheetException
Delete a specified Sight.
It mirrors to the following Smartsheet REST API method: DELETE /sights/{sightId}
sightId - the Id of the SightIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSight copySight(long sightId, ContainerDestination destination) throws SmartsheetException
Creates s copy of the specified Sight.
It mirrors to the following Smartsheet REST API method: POST /sights/{sightId}/copy
sightId - the Id of the Sightdestination - the destination to copy toIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSight moveSight(long sightId, ContainerDestination destination) throws SmartsheetException
Creates s copy of the specified Sight.
It mirrors to the following Smartsheet REST API method: POST /sights/{sightId}/move
sightId - the Id of the Sightdestination - the destination to copy toIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSightPublish getPublishStatus(long sightId) throws SmartsheetException
Get the publish status of a Sight.
It mirrors to the following Smartsheet REST API method: POST /sights/{sightId}/publish
sightId - the Id of the SightIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSightPublish setPublishStatus(long sightId, SightPublish sightPublish) throws SmartsheetException
Sets the publish status of a Sight and returns the new status, including the URLs of any enabled publishing.
It mirrors to the following Smartsheet REST API method: PUT /sights/{sightId}/publish
sightId - the Id of the SightsightPublish - the SightPublish object containing publish statusIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationShareResources shareResources()
Return the ShareResources object that provides access to share resources associated with Sight resources.
Copyright © 2014–2019 Smartsheet. All rights reserved.