> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# adminJob

> An async Admin operation's job in the key's workspace. Poll it until `status` is `SUCCEEDED` or `FAILED`.



**query** `adminJob(jobId: String!): AdminJob`

## Arguments

**`jobId`**: `String!` (required)

The id the operation that started the job returned.

## Returns

`AdminJob`

**`id`**: `String!`

The job's id, as the operation that started it returned.

---

**`kind`**: `AdminJobKind!`

The Admin operation that started the job, which names the type of `result`.

---

**`status`**: `AdminJobStatus!`

Where the job is.

---

**`failure`**: `AdminJobFailure`

Why the job failed; null unless `FAILED`.

---

**`result`**: `AdminJobResult`

What the job produced, as the result type of its `kind`; null unless `SUCCEEDED`.

---

**`createdAt`**: `DateTime!`

When the job started.

---

**`updatedAt`**: `DateTime!`

When the job last changed.

## Examples

```graphql Query
query AdminJob($jobId: String!) {
  adminJob(jobId: $jobId) {
    id
    kind
    status
    failure {
      code
      reason
    }
    result {
      __typename
      ... on DeployBoltSchedulesResult {
        scheduleParseId
        gitHash
        schedules {
          __typename
        }
      }
    }
    createdAt
  }
}
```

```json Variables
{
  "jobId": "string"
}
```

```json Response
{
  "data": {
    "adminJob": {
      "id": "string",
      "kind": "DEPLOY_BOLT_SCHEDULES",
      "status": "QUEUED",
      "failure": {
        "code": "UNAUTHENTICATED",
        "reason": "string"
      },
      "result": {
        "__typename": "DeployBoltSchedulesResult",
        "scheduleParseId": 1,
        "gitHash": "string",
        "schedules": {
          "__typename": "DeployedBoltScheduleConnection"
        }
      },
      "createdAt": "value"
    }
  }
}
```


## Related topics

- [Admin client](https://docs.paradime.io/developers/python-sdk/modules/admin/index.md)
- [Admin client: jobs](https://docs.paradime.io/developers/python-sdk/modules/admin/jobs.md)
- [Administration API: Conventions](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md)
- [Administration API: DinoAI](https://docs.paradime.io/developers/graphql-api/admin-api/dinoai.md)
- [Administration API: Bolt](https://docs.paradime.io/developers/graphql-api/admin-api/bolt.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.