Select to view content in your preferred language

Updating Job STATUS thru REST API FAILS

2035
2
08-21-2013 06:27 AM
RobinBoyle
Occasional Contributor
Hi,

I am trying to update the status of a JOB thru the REST API by using the Update REST endpoint; however, this keeps failing...

Example:
http://<myserver>/arcgis/rest/services/Workflows/QuickStart_WorkflowManagerService/WMServer/jobs/job/1009/update?f=json&properties={???status???:23}

???where 23 is the OOTB status of ???Working???.

I get the following error:
{???error???:{???code???:400,???message???:???Access denied.???,???details???:[]}}

Does this infer permissions?  I have UpdateProperties permission on this user, but is there another that I need?

Workflow Manager for Server 10.1...

Many thanks in advance!
Robin
0 Kudos
2 Replies
RobinBoyle
Occasional Contributor
MORE INFO:

I also added the &user=myuser to the REST URL.  (Obviously 'myuser' isn't the actual value I used...)

http://<myserver>/arcgis/rest/services/Workflows/QuickStart_WorkflowManagerService/WMServer/jobs/job/1009/update?f=json&user=myuser&properties={�??status�?�:23}

This returned a result of "success": "true".  BUT the database table never gets updated...

Robin

Hi,

I am trying to update the status of a JOB thru the REST API by using the Update REST endpoint; however, this keeps failing...

Example:
http://<myserver>/arcgis/rest/services/Workflows/QuickStart_WorkflowManagerService/WMServer/jobs/job/1009/update?f=json&properties={�??status�?�:23}

�?�where 23 is the OOTB status of �??Working�?�.

I get the following error:
{�??error�?�:{�??code�?�:400,�?�message�?�:�?�Access denied.�?�,�?�details�?�:[]}}

Does this infer permissions?  I have UpdateProperties permission on this user, but is there another that I need?

Workflow Manager for Server 10.1...

Many thanks in advance!
Robin
0 Kudos
KevinBedel
Esri Contributor
Hi Robin,

This is a known issue with ArcGIS 10.1 Workflow Manager for Server. It has been resolved with ArcGIS 10.2 Workflow Manager for Server.

Kevin
0 Kudos