- How to detect errors
- FORBIDDEN error
- Advertiser is in a restricted moderation status
- You are missing permissions for this action
- Advertiser is requesting an update to a job claimed by a different advertiser
- This job cannot be published because it is claimed or hosted
- UNAUTHENTICATED error
- BAD_USER_INPUT error
- NOT_FOUND error
- DOWNSTREAM_SERVICE_ERROR or INTERNAL_SERVER_ERROR
- Job is rejected
- Retry strategy
- Get support
- See also
Troubleshoot Job Update API errors
Common Job Update API errors and how to resolve them.
How to detect errors
#Most Job Update API errors return HTTP 200, with the details in the GraphQL response body.
Always check the errors array, even when the HTTP status is 200:
{ "data": null, "errors": [{ "message": "Error description", "extensions": { "code": "FORBIDDEN" } }]}Use extensions.code to identify the error type, such as FORBIDDEN, BAD_USER_INPUT, or NOT_FOUND.
For OAuth errors that occur before you access Indeed APIs, see Troubleshoot OAuth errors.
These errors can occur:
FORBIDDEN error
#The access token doesn't have permission for the requested operation. Check the message field for the specific cause.
Advertiser is in a restricted moderation status
#{ "errors": [{ "extensions": { "code": "FORBIDDEN", "message": "Advertiser is in a restricted moderation status" } }]}The advertiser associated with the OAuth token is restricted to protect against spam.
This error is rare. If it occurs, contact your partner manager to remove the restriction.
You are missing permissions for this action
#{ "errors": [{ "extensions": { "code": "FORBIDDEN", "message": "You are missing permissions for this action. Ask your administrator for the permissions [Hosted_Job Create, Hosted_Job Update, Hosted_Job Read]" } }]}The user associated with the OAuth token doesn't have permission to update jobs.
To resolve:
- Verify that an admin user created the OAuth client.
- Grant
Hosted_Job Create,Hosted_Job Update, andHosted_Job Readto the user associated with the OAuth client. Any admin user can grant them. See Indeed account settings (opens in a new window).
Advertiser is requesting an update to a job claimed by a different advertiser
#{ "errors": [{ "extensions": { "code": "FORBIDDEN", "message": "Advertiser is requesting an update to EJ (id=<EJID>), but the job is claimed by a different advertiser." } }]}Another advertiser already updated this job, and only one advertiser can update a job at a time.
To resolve:
- Verify that the OAuth token was requested for the correct advertiser.
- If another advertiser updated the job, clear the updates with that advertiser's access token, or ask that advertiser to clear them. The error continues until the updates are cleared.
This error can occur when:
- The agency can access the job through more than one advertiser. After the agency updates the job through one advertiser, it gets this error when it updates the job through another.
- The employer edited the job in the UI. The employer must remove those edits before the agency can update the job through the API.
This job cannot be published because it is claimed or hosted
#{ "errors": [{ "extensions": { "code": "FORBIDDEN", "message": "This job cannot be published because it is claimed or hosted." } }]}The job is already claimed or hosted, so Indeed can't publish it.
To resolve:
- Clear the job's updates with
clearSourcedJobPostingUpdates. - Update it again with
updateSourcedJobPostings. - If the update succeeds but the publish fails, call
publishSourcedJobPostings.
UNAUTHENTICATED error
#The OAuth token is expired or malformed.
{ "errors": [{ "extensions": { "code": "UNAUTHENTICATED" } }]}To resolve:
- Verify that the OAuth token has not expired. Tokens are valid for 1 hour.
- Request a new access token.
- If the error continues, see Troubleshoot OAuth errors.
BAD_USER_INPUT error
#The request is malformed.
{ "errors": [{ "extensions": { "code": "BAD_USER_INPUT" } }]}To resolve:
-
Check the
messagefield to identify the invalid field. -
Verify that the request fields are formatted correctly.
-
For request examples, see these API references:
NOT_FOUND error
#Indeed can't find the job.
{ "errors": [{ "extensions": { "code": "NOT_FOUND" } }]}To resolve:
- Verify that
sourcedPostingIdis correct. - Verify that the OAuth token was requested for the correct advertiser.
You also get this error if the advertiser doesn't have permission to view the job.
DOWNSTREAM_SERVICE_ERROR or INTERNAL_SERVER_ERROR
#An internal server error occurred.
{ "errors": [{ "extensions": { "code": "DOWNSTREAM_SERVICE_ERROR" } }]}{ "errors": [{ "extensions": { "code": "INTERNAL_SERVER_ERROR" } }]}To resolve:
- Retry the request later.
- If the error continues, contact your partner manager.
Job is rejected
#See Rejected jobs.
Retry strategy
#Retry these errors:
DOWNSTREAM_SERVICE_ERRORandINTERNAL_SERVER_ERROR: Retry with exponential backoff.UNAUTHENTICATEDwith an expired token: Refresh the token, then retry once.
Don't retry these errors. Fix the cause first:
FORBIDDEN: Fix the permission issue.BAD_USER_INPUT: Fix the request.NOT_FOUND: VerifysourcedPostingIdand the advertiser.
Get support
#If the issue isn't covered here:
- Check the GraphQL
messageandextensionsfields. - Verify that all required fields are present and correctly formatted.
- Test with minimal input first, then add fields one at a time.
- Contact your Indeed representative.
See also
#- Troubleshoot OAuth errors — OAuth errors that can occur before you access Indeed APIs.
- Troubleshoot GraphQL errors — Detect and handle GraphQL errors.
- Error reference — Look up error codes, messages, and HTTP status codes for Indeed APIs.