- I have Admin permission for Linkedin Company Page.
- The App has an "Advertising API" product added. Which has community management API enabled.
- I got an access token using Oauth2 with permissions
w_organization_social,w_member_social,rw_organization_admin
- When I try the API
:li:organization:XXXXXXXX
I have used the header
Linkedin-Version: 202403
I get the below response.
{
"status": 404,
"code": "RESOURCE_NOT_FOUND",
"message": "No virtual resource found"
}
- I am able to create a post with below post body.
"author": "urn:li:organization:XXXXXXXX",
"commentary": "Sample text Post",
"visibility": "PUBLIC",
"distribution": {
"feedDistribution": "MAIN_FEED",
"targetEntities": [],
"thirdPartyDistributionChannels": []
},
"lifecycleState": "PUBLISHED",
"isReshareDisabledByAuthor": false
}
The company urn is the same for GET and POST