Asset API
All URIs are relative to http://localhost:1000
Method | HTTP request | Description |
---|---|---|
assetAssociateTag | POST /asset/{asset}/tags/associate/{tag} | /asset/{asset}/tags/associate/{tag} [POST] |
assetAssociateWebsite | POST /asset/{asset}/websites/associate/{website} | /asset/{asset}/websites/associate/{website} [POST] |
assetAssociateWorkstreamSummary | POST /asset/{asset}/workstream_summaries/associate/{workstream_summary} | /asset/{asset}/workstream_summaries/associate/{workstream_summary} [POST] |
assetDisassociateTag | POST /asset/{asset}/tags/disassociate/{tag} | /asset/{asset}/tags/disassociate/{tag} [POST] |
assetDisassociateWebsite | POST /asset/{asset}/websites/disassociate/{website} | /asset/{asset}/websites/disassociate/{website} [POST] |
assetDisassociateWorkstreamSummary | POST /asset/{asset}/workstream_summaries/disassociate/{workstream_summary} | /asset/{asset}/workstream_summaries/disassociate/{workstream_summary} [POST] |
assetFormats | GET /asset/{asset}/formats | /asset/{asset}/formats [GET] Scoped To Asset |
assetReclassify | POST /asset/reclassify | /asset/reclassify [POST] |
assetScoresIncrement | POST /asset/{asset}/scores/increment | /asset/{asset}/scores/increment [POST] |
assetSnapshot | GET /asset/{asset} | /asset/{asset} [GET] Scoped To Asset |
assetSnapshotPost | POST /asset/{asset} | /asset/{asset} [POST] Scoped to an Asset |
assetSpecificAssetActivities | GET /asset/{asset}/activities | /asset/{asset}/activities [GET] |
assetSpecificAssetConversations | GET /asset/{asset}/conversations | /asset/{asset}/conversations [GET] |
assetSpecificAssetExport | GET /asset/{asset}/export | /asset/{asset}/export [GET] |
assetUpdate | POST /asset/update | /asset/update [POST] Scoped to Asset |
assetAssociateTag
assetAssociateTag(asset, tag)
/asset/{asset}/tags/associate/{tag} [POST]
Associates a tag with a specified asset. It performs the same action as the tag equivalent.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val tag : kotlin.String = tag_example // kotlin.String | tag id
try {
apiInstance.assetAssociateTag(asset, tag)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetAssociateTag")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetAssociateTag")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
tag | kotlin.String | tag id |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
assetAssociateWebsite
assetAssociateWebsite(asset, website)
/asset/{asset}/websites/associate/{website} [POST]
Associates a website with an asset. It performs the same action as its website equivalent.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val website : kotlin.String = website_example // kotlin.String | website id
try {
apiInstance.assetAssociateWebsite(asset, website)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetAssociateWebsite")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetAssociateWebsite")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
website | kotlin.String | website id |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
assetAssociateWorkstreamSummary
assetAssociateWorkstreamSummary(asset, workstreamSummary)
/asset/{asset}/workstream_summaries/associate/{workstream_summary} [POST]
This will associate a asset with a workstream summary. This will do the same thing as the workstreamSummary equivalent.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val workstreamSummary : kotlin.String = workstreamSummary_example // kotlin.String | This is a identifier that is used to identify a specific workstream_summary.
try {
apiInstance.assetAssociateWorkstreamSummary(asset, workstreamSummary)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetAssociateWorkstreamSummary")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetAssociateWorkstreamSummary")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
workstreamSummary | kotlin.String | This is a identifier that is used to identify a specific workstream_summary. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
assetDisassociateTag
assetDisassociateTag(tag, asset)
/asset/{asset}/tags/disassociate/{tag} [POST]
Disassociates a tag from an asset. It performs the same action as the tag equivalent.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val tag : kotlin.String = tag_example // kotlin.String | tag id
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
try {
apiInstance.assetDisassociateTag(tag, asset)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetDisassociateTag")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetDisassociateTag")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
tag | kotlin.String | tag id | |
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
assetDisassociateWebsite
assetDisassociateWebsite(website, asset)
/asset/{asset}/websites/disassociate/{website} [POST]
Disassociates a website from an asset. It performs the same action as the website equivalent.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val website : kotlin.String = website_example // kotlin.String | website id
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
try {
apiInstance.assetDisassociateWebsite(website, asset)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetDisassociateWebsite")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetDisassociateWebsite")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
website | kotlin.String | website id | |
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
assetDisassociateWorkstreamSummary
assetDisassociateWorkstreamSummary(asset, workstreamSummary)
/asset/{asset}/workstream_summaries/disassociate/{workstream_summary} [POST]
This will enable us to disassociate an asset from a workstream summary. This will do the same thing as the workstreamSummary equivalent.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val workstreamSummary : kotlin.String = workstreamSummary_example // kotlin.String | This is a identifier that is used to identify a specific workstream_summary.
try {
apiInstance.assetDisassociateWorkstreamSummary(asset, workstreamSummary)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetDisassociateWorkstreamSummary")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetDisassociateWorkstreamSummary")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
workstreamSummary | kotlin.String | This is a identifier that is used to identify a specific workstream_summary. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
assetFormats
Formats assetFormats(asset, transferables)
/asset/{asset}/formats [GET] Scoped To Asset
Retrieves the formats available for a specified asset.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
try {
val result : Formats = apiInstance.assetFormats(asset, transferables)
println(result)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetFormats")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetFormats")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
assetReclassify
Asset assetReclassify(transferables, assetReclassification)
/asset/reclassify [POST]
Retrieves the formats available for a specified asset.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
val assetReclassification : AssetReclassification = // AssetReclassification | This will accept a Reclassification that includeds and assetand a language that this assets needs to be reclassified to. We will just return an Asset that has been reclassified.
try {
val result : Asset = apiInstance.assetReclassify(transferables, assetReclassification)
println(result)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetReclassify")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetReclassify")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
assetReclassification | AssetReclassification | This will accept a Reclassification that includeds and assetand a language that this assets needs to be reclassified to. We will just return an Asset that has been reclassified. | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
assetScoresIncrement
assetScoresIncrement(asset, seededScoreIncrement)
/asset/{asset}/scores/increment [POST]
Increments the scores associated with the specified asset based on the provided SeededScoreIncrement data in the request body.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val seededScoreIncrement : SeededScoreIncrement = // SeededScoreIncrement |
try {
apiInstance.assetScoresIncrement(asset, seededScoreIncrement)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetScoresIncrement")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetScoresIncrement")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
seededScoreIncrement | SeededScoreIncrement | [optional] |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: Not defined
assetSnapshot
Asset assetSnapshot(asset, transferables)
/asset/{asset} [GET] Scoped To Asset
Retrieves the snapshot of a specific asset
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
try {
val result : Asset = apiInstance.assetSnapshot(asset, transferables)
println(result)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetSnapshot")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetSnapshot")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
assetSnapshotPost
Asset assetSnapshotPost(asset, transferables, seededAccessor)
/asset/{asset} [POST] Scoped to an Asset
Retrieves a snapshot of a specific asset, along with the user requesting the snapshot.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
val seededAccessor : SeededAccessor = // SeededAccessor |
try {
val result : Asset = apiInstance.assetSnapshotPost(asset, transferables, seededAccessor)
println(result)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetSnapshotPost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetSnapshotPost")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
seededAccessor | SeededAccessor | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
assetSpecificAssetActivities
Activities assetSpecificAssetActivities(asset, transferables)
/asset/{asset}/activities [GET]
Retrieves activity events specific to the given asset.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
try {
val result : Activities = apiInstance.assetSpecificAssetActivities(asset, transferables)
println(result)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetSpecificAssetActivities")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetSpecificAssetActivities")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
assetSpecificAssetConversations
Conversations assetSpecificAssetConversations(asset, transferables)
/asset/{asset}/conversations [GET]
Retrieves conversations specific to the given asset.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
try {
val result : Conversations = apiInstance.assetSpecificAssetConversations(asset, transferables)
println(result)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetSpecificAssetConversations")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetSpecificAssetConversations")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
assetSpecificAssetExport
ExportedAsset assetSpecificAssetExport(asset, exportType)
/asset/{asset}/export [GET]
Retrieves an export version of the specified asset.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
val exportType : kotlin.String = exportType_example // kotlin.String | This specifies the type of export the user wants.
try {
val result : ExportedAsset = apiInstance.assetSpecificAssetExport(asset, exportType)
println(result)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetSpecificAssetExport")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetSpecificAssetExport")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. | |
exportType | kotlin.String | This specifies the type of export the user wants. | [enum: HTML, MD] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
assetUpdate
Asset assetUpdate(transferables, asset)
/asset/update [POST] Scoped to Asset
Allows the user to update an existing Asset. It accepts the Asset object that needs updating and returns the fully updated Asset.
Example
// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*
val apiInstance = AssetApi()
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
val asset : Asset = // Asset | This endpoint allows the user to update an existing Asset. It accepts the Asset object that needs updating and returns the fully updated Asset.
try {
val result : Asset = apiInstance.assetUpdate(transferables, asset)
println(result)
} catch (e: ClientException) {
println("4xx response calling AssetApi#assetUpdate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AssetApi#assetUpdate")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
asset | Asset | This endpoint allows the user to update an existing Asset. It accepts the Asset object that needs updating and returns the fully updated Asset. | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json