HTTP 422 Publishing account not found. A comment request’s accountId is not one of the workspace’s accounts, or no enabled account can comment for the provider.
When it happens
One operation declares it: POST /api/v1/comments.
Response body
{
"type": "https://pubnio.com/docs/problems/publish-account-not-found/",
"status": 422,
"title": "Publishing account not found",
"code": "account_not_found",
"provider": "linkedin",
"param": "accountId",
"candidates": [
{
"accountId": "5f0c3a6e-2b1d-4c8e-9a7f-1e2d3c4b5a69",
"name": "Acme on LinkedIn"
}
],
"nextAction": "Retry with one accountId from candidates.",
"requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}| Field | Type | Always present |
|---|---|---|
provider |
one of 21 strings | No |
accountId |
string | No |
param |
string | Yes |
candidates |
array of ProblemCandidate | No |
nextAction |
string | Yes |
Recovery for agents
- Resend with an
accountIdfromcandidates; with no candidates, a person must connect an account for the provider first. - Do what
nextActionsays. paramis the field to change.- Resend with one
accountIdfromcandidatesinstead of the ambiguous selector.
Retryable
No: the SDKs mark HTTP 422 not retryable.
Limits
- Match on
typeorcode, not ondetail.