Pat_Johnson | 2024-02-01 18:59:16 UTC | #1
I'm in the process of moving data into Knowledge Articles. I need to be able to upload images that will be used in the Articles. My call to "/api/v2/responsemanagement/responseassets/uploads" looks to be working I get a response that looks like.
{ "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "url": "[REDACTED]", "headers": { "x-amz-tagging": "organizationId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&originPlatform=GenesysCloud&role=darth&owner=Dev-CloudAppsDarth@genesys.com", "Content-MD5": "ELxueApJapVxjLoK2j+k6w==", "x-amz-server-side-encryption": "AES256", "x-amz-meta-organizationid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } }
my issue is do not know what to do next. Guessing I now need to make a request to send the file. does anyone know how that call needs to be formatted? how do I attach the file in question?
Pat_Johnson | 2024-02-02 19:26:02 UTC | #2
Anyone have any ideas?
Pat_Johnson | 2024-02-02 22:02:19 UTC | #3
I figured it out if anyone else needs it here you go.
$UploadWebRequestParams = @{
Uri = "Response.Url"
Method = "Put"
Headers = "Response.headers"
InFile = "Full file path"
}
Invoke-WebRequest @UploadWebRequestParams
system | 2024-03-03 22:02:37 UTC | #4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 24433