Desper: API Start Job Error 404

Hello Guys.

I have already checked up this forum, Google and even ChatGPT but i cant find a solution.
I´m able to use the apis, get processes, check Folders and so on but i cant start jobs, im always getting a 404 error.

To get the Release Key i use this endpoint:
/odata/Releases?$filter=Name eq 'Processe_Name'

There im getting a bunch of informations.
The first key from the dictionary is the ReleaseKey, right?

Key
ProcessKey
ProcessVersion
IsLatestVersion
IsProcessDeleted
Description
Name
EnvironmentId
...
...

To start a job i use this endpoint:
/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs

as header:

{
        "Authorization": f"Bearer {oax.access_token_oa}",
        "Content-Type": "application/json",
        "X-UIPATH-OrganizationUnitId": f"{env_id}"
    }
and my body:
{
    "startInfo": {
        "ReleaseKey": KEY-VALUE-FROM-ABOVE,
        "Strategy": "ModernJobsCount",
        "JobsCount": 1,
        "InputArguments": "{}"
    }
}

and my response is just:
<Response [404]>

and i dont get it…
whats wrong?
I can use literaly anything in my body and reciving with this endpoint always the 404 response.

I checked the endpoint several times, copyed id from here:
UiPath Add-ins Guide

and here:
https://docs.uipath.com/orchestrator/automation-cloud/latest/api-guide/jobs-requests#starting-a-job

checked the ChatGPT answer and red aprx 100 posts here but its always the same endpoint.

im a bit desperate, please help…

thanks in advance :slight_smile:

@seyjo1 - You probably have checked already but since not mentioned in the post and want to make sure, can you share if you are using POST as the method instead of GET or anything else?

image

1 Like

response = requests.get(api_url, headers=headers,json=job_payload)

omg…
god bless you

Thank you very much :heart:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.