...
These endpoints are the ones which is used in the automation config further down.
Info |
---|
Please be aware that 5.8+ have a different URL so go find the right base URL here: Digizuite™ AI Services or ask R&D. But client id and code will be the same. |
Type | Endpoint | Input | Functionality | Output |
---|
Remove.bg as replaced asset | https://dgz-integration-broker{URL-DEPENDING-ON-DAM-VERSION}.azurewebsites.net/api/integrations/asset/invoke?clientId={SECRET_CLIENT_ID}&integrationType=RemoveBgService&assetId=<assetid>&code={SECRET_CODE}
| clientId: provided by Digizuite integrationType: removebgservice code: provided by digizuite
| Replace existing image directly Note |
---|
Notice that it replaces from the function so please having the right clientId for each environment is important. Dev won’t work for prod for instance, and can have massive impact if not used correctly. |
| Returns 200 And the result will be (but in this case the asset will be the same because it is a replace): Code Block |
---|
interface UploadResponse {
ItemId: number;
AssetId: number;
} |
|
Remove.bg as NEW asset | https://dgz-integration-broker{URL-DEPENDING-ON-DAM-VERSION}.azurewebsites.net/api/integrations/asset/invoke?clientId={SECRET_CLIENT_ID}&integrationType=RemoveBgServiceNewAsset&assetId=<assetid>&code={SECRET_CODE}
| clientId: provided by Digizuite integrationType: RemoveBgServiceNewAsset code: provided by digizuite
| Replace existing image directly Note |
---|
Notice that it UPLOADS from the function so please having the right clientId for each environment is important. Dev won’t work for prod for instance, and can have massive impact if not used correctly. |
| Returns 200 And the result will be: Code Block |
---|
interface UploadResponse {
ItemId: number;
AssetId: number;
} |
|
...
Code Block |
---|
trigger "Metadata trigger" {
type = "Specific Metadata Value"
resolves = "Set String Metafield"
value = "#54a0ff;creative"
ignore_casing = "true"
meta_field = "guid:6fe35f10-c810-497b-af9c-e52c3d583593"
listen_to_metadata_changes = "all"
}
action "Invoke Endpoint" {
type = "Invoke Endpoint"
endpoint = "https://dgz-integration-broker{URL-DEPENDING-ON-DAM-VERSION}.azurewebsites.net/api/integrations/asset/invoke?clientId={SECRET_CLIENT_ID}&integrationType=RemoveBgService&assetId=<assetid>&code={SECRET_CODE}"
method = "post"
response = "@response"
}
|
...