---
updatedAt: 2025-11-10T18:13:53.000Z
agentTools:
  projectIndex: https://developer.answerhub.com/llms.txt
---

# Retrieve Scheduled Job ID

This endpoint allows a user to retrieve the job ID for a scheduled GDPR job.

## services/v2/jobs/gdpr/\{schedule-job-id}.json

**- URL (Path/Query) Params**\
No query params needed; the schedule-job-id is already a path param.

**- Data Params**\
No data params

## Sample Request

Call:\
curl -X GET -u \<user>:\<password> -H "Accept:application/json" -H "Content-Type: application/json" "<https://apidocs.cloud.answerhub.com/services/v2/jobs/gdpr/>\<job id>.json" -v

```curl
curl 
-X GET 
-u piero:mypass 
-H "Accept:application/json" 
-H "Content-Type: application/json" "https://apidocs.cloud.answerhub.com/services/v2/jobs/gdpr/568.json" -v
```

## Expected Responses

**- Success Response:**\
Code: 200 \
Content: job details

1. Success Response (Pending Job):
   * See JSON response below in the code samples.
2. Success Response (Finished Job):
   * See JSON response below in the code samples.

**- Error Response:**

* job does not exist, incorrect id: HTTP/1.1 404 Not Found\
  \{"error":"not found"}

* job id was ill-formatted HTTP/1.1 400 Bad Request\
  \{"error":"The provided 'job id' is/are invalid"}

> 🚧 For Permissions, Requirements, and More Detailed Information:
>
> [Reference the GDPR Plugin Docs](https://api.dzonesoftware.com/docs/gdpr-plugin) in the Non-Reference portion of the documentation.

## Sample Responses

Success Response (Pending Job):

```json
{  
   "id":568,
   "scheduleTime":"10/15/2018 12:15",
   "operations":"suspend",
   "userId":17,
   "status":"PENDING"
}
```

Success Response (Finished Job):

```json
{
   "id":512,
   "scheduleTime":"10/05/2018 11:42",
   "operations":"anonymize",
   "userId":10,
   "status":"FINISHED",
   "executions":[
      {
         "userId":10,
         "executionStatus":"FINISHED",
         "executionURL":"http://apidocs.cloud.answerhub.com/services/v2/users/gdpr/execution/514/status.json"
      }
   ]
}
```

Error Response For Job Does Not Exist:

```json
{  
   "error":"not found"
}
```

Error Response For Job ID Ill-Formatted:

```json
{
   "error":"The provided 'job id' is/are invalid"
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "2.30.0"
  },
  "servers": [
    {
      "url": "https://apidocs.cloud.answerhub.com/services/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/{jobs}/{gdpr}/{schedule-job-id}.json": {
      "get": {
        "summary": "Retrieve Scheduled Job ID",
        "description": "This endpoint allows a user to retrieve the job ID for a scheduled GDPR job.",
        "operationId": "scheduled-job-id",
        "parameters": [
          {
            "name": "schedule_job_id",
            "in": "path",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Accept",
        "value": "application/json"
      },
      {
        "key": "Content-type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```