I have utilized below command to upload the file to confluence page. Unable to do that.
Add-ConfluenceAttachment -ApiUri <Uri> -Credential <PSCredential> [[-PageID] <Int32>] -FilePath <String> [-WhatIf] [-Confirm]
I think if i have to upload anything to Confluence we need below things :
1. Authenticate to confluence page
2. Upload the content to confluence
Can someone share me powershell script to do this.
When we say confluence page is it he URL which we see in tab :
For example :
https://xyzcomany.atlassian.net/wiki/spaces/SMP/pages/755499009/Testing
Hello Suryakant,
From my understanding, the command you were using was working, and now it is not. Is this correct
If you are on Confluence Cloud, it could be that you haven't switched over to the API token-based authentication. Instead of username and password, you should use an email address plus the token.
For more details, have a look at Deprecation notice - Basic authentication with passwords and cookie-based authentication. It mentions Jira here but applies to all Cloud sites.
Let me know if you have any questions about that.
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.