Get a Job
GEThttps://euwest.api.elasticpath.com/pcm/jobs/:jobID
Get a Job
Request
Path Parameters
jobID stringrequired
A unique identifier for the job.
Responses
- 200
- 400
- 404
- 422
- 500
Returns a job with the following attributes.
- application/json
- Schema
- Example (from schema)
- started
- successful
- product-export
- hierarchy-duplicate
- build-child-products
Schema
data object
{
"data": {
"id": "string",
"type": "pim-job",
"attributes": {
"started_at": "2020-09-22T09:00:00",
"completed_at": "2020-09-22T09:00:00",
"created_at": "2020-09-22T09:00:00",
"updated_at": "2020-09-22T09:00:00",
"type": "child-products",
"status": "pending"
},
"meta": {
"x_request_id": "string",
"copied_from": "string",
"hierarchy_id": "string",
"file_locations": [
"string"
],
"filter": "string"
}
}
}
Started Job
{
"data": {
"type": "pim-job",
"id": "1ea62172-57f6-45e5-a708-ab5bd634e3f9",
"attributes": {
"started_at": null,
"completed_at": null,
"created_at": "2024-01-05T13:46:41.695Z",
"status": "started",
"type": "product-import",
"updated_at": "2024-01-05T13:46:42.07Z"
},
"meta": {
"x_request_id": "7e832a26-d615-4305-b26a-e33c9c2fc06a"
}
}
}
Product Import Job
{
"data": {
"type": "pim-job",
"id": "1ea62172-57f6-45e5-a708-ab5bd634e3f9",
"attributes": {
"completed_at": "2024-01-05T13:46:42.142Z",
"created_at": "2024-01-05T13:46:41.695Z",
"started_at": "2024-01-05T13:46:42.07Z",
"status": "success",
"type": "product-import",
"updated_at": "2024-01-05T13:46:42.07Z"
},
"meta": {
"x_request_id": "7e832a26-d615-4305-b26a-e33c9c2fc06a"
}
}
}
Product Export Job
{
"data": {
"type": "pim-job",
"id": "7e1b9ba1-c844-4556-9b16-4ae3f0988b0f",
"attributes": {
"completed_at": "2024-01-05T15:27:23.663Z",
"created_at": "2024-01-05T15:27:23.161Z",
"started_at": "2024-01-05T15:27:23.65Z",
"status": "success",
"type": "product-export",
"updated_at": "2024-01-05T15:27:23.65Z"
},
"meta": {
"file_locations": [],
"filter": "eq(sku,product-1)",
"x_request_id": "fad8c5c0-9546-4e0c-b68e-8a2d809891e5"
}
}
}
Hierarchy Duplicate Job
{
"data": {
"type": "pim-job",
"id": "5ba1c98d-87b8-4d63-b2ed-3d3c6c876523",
"attributes": {
"completed_at": "2024-01-08T11:56:29.257Z",
"created_at": "2024-01-08T11:56:27.553Z",
"started_at": "2024-01-08T11:56:29.222Z",
"status": "success",
"type": "hierarchy-duplicate",
"updated_at": "2024-01-08T11:56:29.237Z"
},
"meta": {
"copied_from": "5b912d00-db5a-4e18-86f2-3a652967ee48",
"hierarchy_id": "c05bfefc-8de4-43ea-858b-eb8984ad9f8f",
"x_request_id": "an-x-request-id"
}
}
}
Build Child Products Job
{
"data": {
"type": "pim-job",
"id": "14a0a190-cd03-4d7f-a449-e2051ac539ea",
"attributes": {
"completed_at": "2024-01-08T11:58:19.113Z",
"created_at": "2024-01-08T11:58:04.416Z",
"started_at": "2024-01-08T11:58:19.067Z",
"status": "success",
"type": "child-products",
"updated_at": "2024-01-08T11:58:19.067Z"
},
"meta": {
"x_request_id": "an-x-request-id"
}
}
}
Bad request. The request failed validation.
- application/json
- Schema
- Example (from schema)
- bad-request
Schema
errors undefined[]required
{
"errors": [
{
"status": "500",
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Bad Request",
"detail": "Could not parse the supplied filter",
"status": "400"
}
]
}
Bad Request. Not Found.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
errors undefined[]required
{
"errors": [
{
"status": "500",
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Not Found",
"status": "404"
}
]
}
Bad request. The request failed validation.
- application/json
- Schema
- Example (from schema)
- failed-validation
Schema
errors undefined[]required
{
"errors": [
{
"status": "500",
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Failed Validation",
"status": "422",
"detail": "<XYZ> can not be empty"
}
]
}
Internal server error. There was a system failure in the platform.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
errors undefined[]required
{
"errors": [
{
"status": "500",
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"status": "500",
"title": "Internal Server Error",
"detail": "There was an internal server error, you can report with your request id.",
"request_id": "635da56d-75a1-43cd-b696-7ab119756b3a"
}
]
}
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://euwest.api.elasticpath.com/pcm/jobs/:jobID' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear