> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Async Job

# Type: Async Job Object

# Link: https://dev.wix.com/docs/api-reference/business-management/async-job/async-job-object.md

## Schema:

```json
 Type: Async Job Object | type: AsyncJob
       - name: id  | type: string | description: Job ID.
       - name: metadata  | type: Struct | description: Optional job metadata, used to store any parameters used during job execution, user-defined statuses, etc.
           - name: fields  | type: object | description: 
       - name: status  | type: string | description: Current job execution status.
           enum: UNKNOWN, INITIALIZED, PROCESSING, FINISHED, FAILED
       - name: counters  | type: Counters | description: Current counters.
           - name: itemsToProcess  | type: number | description: Optional count of the dataset size, as specified during job creation. Can be used for progress bars, etc.
               - name: value  | type: number | description: 
           - name: itemsSucceeded  | type: number | description: Amount of items that were successfully processed.
           - name: itemsFailed  | type: number | description: Amount of items whose processing failed.
           - name: errorCountByCode  | type: object | description: Mapping between an error code and the number of failures associated with it.
       - name: createdDate  | type: string | description: Date and time the job was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the job was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.
       - name: owner  | type: Owner | description: Job owner.
           - ONE-OF:
               - name: anonymousVisitorId  | type: string | description: Visitor ID - when the job is owned by a site visitor that was **not** logged in.
               - name: memberId  | type: string | description: Member ID - When the job is owned by a by a **logged in** site visitor.
               - name: wixUserId  | type: string | description: User ID - When the job is owned by a Wix user.
               - name: appId  | type: string | description: App ID - When the job is owned by an external app or app by Wix.
               - name: serviceId  | type: string | description: Service ID.
       - name: createdBy  | type: CreatedBy | description: Job creator.
           - name: type  | type: string | description: The type of the creator.
               enum: UNKNOWN_TYPE, ANONYMOUS_VISITOR_ID, MEMBER_ID, WIX_USER_ID, APP_ID
           - ONE-OF:
               - name: anonymousVisitorIdOptions  | type: AnonymousVisitorIdOptions | description: Visitor ID - when the job is created by a site visitor that was **not** logged in.
                   - name: anonymousVisitorId  | type: string | description: Visitor ID - When the job is owned by a site visitor that was **not** logged in.
               - name: memberIdOptions  | type: MemberIdOptions | description: Member ID - When the job is created by a by a **logged in** site visitor.
                   - name: memberId  | type: string | description: Member ID - When the job is owned by a by a **logged in** site visitor.
               - name: wixUserIdOptions  | type: WixUserIdOptions | description: User ID - When the job is created by a Wix user.
                   - name: wixUserId  | type: string | description: User ID - When the job is owned by a site owner or contributor.
               - name: appIdOptions  | type: AppIdOptions | description: App ID - When the job is created by an external app or app by Wix.
                   - name: appId  | type: string | description: App ID - When the job is owned by an external app. or app by Wix.
       - name: counts  | type: Counts | description: Current execution counts.
           - name: total  | type: number | description: Optional count of the dataset size, specified during job creation. Can be used for progress bars, etc.
           - name: successCount  | type: number | description: Amount of items that were successfully processed.
           - name: failCount  | type: number | description: Amount of items whose processing failed.
           - name: errorByCodeCount  | type: object | description: Mapping between an error code and the number of failures associated with it.

```