Ir para o conteúdo
Documentação do Endless

Update generation

PATCH
/generations/{generation_id}

Updates a generation and returns the updated row. Scoped to the generation named by generation_id. Send a sparse body — only the fields that changed. Each field is authorized on its own, so resending an unchanged one also demands its permission.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

Path Parameters

generation_id*string
Formatuuid

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/generations/0191e5a2-b04c-7036-a91e-3d6f8c25b7e0" \  -H "Content-Type: application/json" \  -d '{}'
{  "generation": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "organization_id": "string",    "created_by_id": "string",    "media_model_variant_id": "3842c80b-bdba-4659-80d7-456d5ee25400",    "media_model_id": "6bfa6c29-9e81-4c8d-888f-372202e5c5da",    "quick_action_id": "a9f574e4-27e8-47c7-8ae8-fe89b5803d91",    "status": "pending",    "parameters": "string",    "quoted_per_output": "string",    "error": "string",    "error_code": "string",    "canvas_id": "b62c6beb-2de8-4ee5-ac63-068ebe40140b",    "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",    "tool_call_id": "string",    "source_generation_id": "e1ac65c2-7daf-4b71-8f3c-c93f76f8126e",    "fal_request_id": "b474c35f-d938-457a-a5d1-382102559877",    "replicate_request_id": "string",    "replicate_prediction_id": "string",    "started_at": "2019-08-24T14:15:22Z",    "completed_at": "2019-08-24T14:15:22Z",    "deleted_at": "2019-08-24T14:15:22Z",    "deleted_by_id": "string",    "reconcile_attempts": -2147483648,    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}