{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/gitlab/main/json-schema/gitlab-api-entities-job-schema.json", "title": "API_Entities_Job", "description": "API_Entities_Job model", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/gitlab-projects-api-openapi.yml#/components/schemas/API_Entities_Job", "type": "object", "properties": { "id": { "type": "integer", "description": "The ID of the job" }, "name": { "type": "string", "description": "The name of the job" }, "status": { "type": "string", "description": "The current status of the job" }, "stage": { "type": "string", "description": "The stage of the job in the CI/CD pipeline" }, "created_at": { "type": "string", "format": "date-time", "description": "The creation time of the job" }, "started_at": { "type": "string", "format": "date-time", "description": "The start time of the job" }, "finished_at": { "type": "string", "format": "date-time", "description": "The finish time of the job" }, "commit": { "$ref": "#/$defs/API_Entities_Commit" }, "archived": { "type": "boolean", "description": "Indicates if the job is archived" }, "allow_failure": { "type": "boolean", "description": "Indicates if the job is allowed to fail" }, "erased_at": { "type": "string", "format": "date-time", "description": "The time when the job was erased, if applicable" }, "duration": { "type": "integer", "description": "The duration of the job in seconds" }, "queued_duration": { "type": "number", "description": "The duration the job was queued before execution, in seconds" }, "ref": { "type": "string", "description": "The reference for the job" }, "artifacts": { "type": "array", "description": "The artifacts produced by the job" }, "tag": { "type": "boolean", "description": "Indicates if the job is tagged" }, "web_url": { "type": "string", "description": "The URL for accessing the job in the web interface" }, "project": { "type": "object", "properties": { "ci_job_token_scope_enabled": { "type": "boolean", "description": "Indicates if the CI/CD job token scope setting is enabled for the project" } } }, "user": { "$ref": "#/$defs/API_Entities_UserBasic", "description": "The user that started the job" } }, "$defs": { "API_Entities_Commit": { "type": "object", "properties": { "id": { "type": "string" }, "short_id": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "parent_ids": { "type": "array", "items": { "type": "string" } }, "title": { "type": "string" }, "message": { "type": "string" }, "author_name": { "type": "string" }, "author_email": { "type": "string" }, "authored_date": { "type": "string", "format": "date-time" }, "committer_name": { "type": "string" }, "committer_email": { "type": "string" }, "committed_date": { "type": "string", "format": "date-time" }, "trailers": { "type": "object", "properties": {} }, "web_url": { "type": "string" } } }, "API_Entities_CustomAttribute": { "type": "object", "properties": { "key": { "type": "string" }, "value": { "type": "string" } } }, "API_Entities_UserBasic": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "username": { "type": "string" }, "name": { "type": "string" }, "state": { "type": "string" }, "avatar_url": { "type": "string" }, "avatar_path": { "type": "string" }, "custom_attributes": { "type": "array", "items": { "$ref": "#/$defs/API_Entities_CustomAttribute" } }, "web_url": { "type": "string" }, "email": { "type": "string" } } } } }