cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

API response code when running a new job

glevin1
New Contributor

We are attempting to use the POST /api/2.2/jobs/run-now endpoint using oAuth 2.0 Client Credentials authentication.

We are finding that when sending a request with an expired token, we receive a HTTP code of 400. This contradicts the documentation on these codes, see link below. When sending an invalid token format we receive 401, however when sending a valid format but expired token, we receive a 400. According to the documentation we'd expect this to be the other way around.

https://docs.databricks.com/api/workspace/jobs/runnow

This is critical for us because the platform we use to connect (Appian) required a 401 response in order to request a new token.

1 REPLY 1

Khaja_Zaffer
Contributor

Hello gelvin
Please raise the ticket using this lik  https://help.databricks.com/s/contact-us?ReqType=training Please explain the issue clearly so that it will be easy for supoort team to help easily.