diff --git a/specs/ingestion/common/schemas/source.yml b/specs/ingestion/common/schemas/source.yml index ab7babb27f2..7c2975ba258 100644 --- a/specs/ingestion/common/schemas/source.yml +++ b/specs/ingestion/common/schemas/source.yml @@ -474,6 +474,10 @@ RunSourcePayload: description: List of entityIDs to update. entityType: $ref: '#/EntityType' + runMetadata: + type: object + additionalProperties: true + description: Additional information that will be passed to the created runs. EntityType: type: string diff --git a/specs/ingestion/common/schemas/task.yml b/specs/ingestion/common/schemas/task.yml index d0b0ad0fe82..727b9348c8f 100644 --- a/specs/ingestion/common/schemas/task.yml +++ b/specs/ingestion/common/schemas/task.yml @@ -627,3 +627,12 @@ PushTaskPayload: required: - action - records + +RunTaskPayload: + type: object + additionalProperties: false + properties: + runMetadata: + type: object + additionalProperties: true + description: Additional information that will be passed to the created run. diff --git a/specs/ingestion/paths/tasks/v1/runTask.yml b/specs/ingestion/paths/tasks/v1/runTask.yml index 6f6fbc267bc..e428e2f60e2 100644 --- a/specs/ingestion/paths/tasks/v1/runTask.yml +++ b/specs/ingestion/paths/tasks/v1/runTask.yml @@ -11,6 +11,12 @@ post: - editSettings parameters: - $ref: '../../../common/parameters.yml#/pathTaskID' + requestBody: + description: '' + content: + application/json: + schema: + $ref: '../../../common/schemas/task.yml#/RunTaskPayload' responses: '200': description: OK diff --git a/specs/ingestion/paths/tasks/v2/runTask.yml b/specs/ingestion/paths/tasks/v2/runTask.yml index 83dbd5fc067..0c7bf5cd040 100644 --- a/specs/ingestion/paths/tasks/v2/runTask.yml +++ b/specs/ingestion/paths/tasks/v2/runTask.yml @@ -10,6 +10,12 @@ post: - editSettings parameters: - $ref: '../../../common/parameters.yml#/pathTaskID' + requestBody: + description: '' + content: + application/json: + schema: + $ref: '../../../common/schemas/task.yml#/RunTaskPayload' responses: '200': description: OK