400 Error when trying to complete Certification Campaign via beta route

I’ve forked the IdentityNow Beta APIs Postman collection and I’m trying to use the “Complete a Campaign” POST api call.

I’ve inserted the id of the Certification campaign, here I’ll use the id “12345”, and I know it’s the correct id as I’m able to use the “Get a campaign” call successfully.
{{baseUrl}}/campaigns/12345/complete

The POST results in a 400 bad request:

{
    "detailCode": "400.1 Bad request content",
    "trackingId": "ac4fdcd80b564fa89823738fe909aee4",
    "messages": [
        {
            "locale": "en-US",
            "localeOrigin": "DEFAULT",
            "text": "The request was syntactically correct but its content is semantically invalid."
        },
        {
            "locale": "und",
            "localeOrigin": "REQUEST",
            "text": "The request was syntactically correct but its content is semantically invalid."
        }
    ],
    "causes": []
}

I’ve tried with “autoCompleteAction” of “APPROVE”, “REVOKE” and removing the body entirely. Still errors. Unless I’m missing something the url, body, and headers in the Postman call all appear to match what’s documented for the call complete-campaign | SailPoint Developer Community

I would appreciate it if someone can test the call themselves to see if they can complete a campaign successfully and if so maybe you can see what I’m missing. Thank you in advance!

I also tried the Python example provided in the docs with the same result. The only thing I changed was the url to my tenant and added the id.

Hey @zeke-jones,

Thank you for posting!

Can you validate that the campaign you are running this command against is not past due?

I was able to replicate the error message you detailed above, and it seems consistent with trying to run the linked API Operation on a campaign that is not yet past due.

The API endpoint documentation linked below specifies:
Completes a certification campaign only if it is past the due date.

We also missed it when first reviewing the API information, so we are going to update the API Documentation to make that more clear.

1 Like

You are correct sir! I missed that in the documentation and yes the campaign I was trying to complete was not past due. Thank you very much.

1 Like