Method: providers.tasks.patch
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בקשת HTTP
PATCH https://fleetengine.googleapis.com/v1/{task.name=providers/*/tasks/*}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
task.name |
string
חייב להיות בפורמט providers/{provider}/tasks/{task} .
|
פרמטרים של שאילתה
פרמטרים |
header |
object (DeliveryRequestHeader )
זה שינוי אופציונלי. כותרת הבקשה הרגילה של Delivery API.
|
updateMask |
string (FieldMask format)
חובה. מסיכת השדות שמציינת אילו שדות משימה לעדכן. הערה: updateMask חייב להכיל לפחות שדה אחד. זוהי רשימה מופרדת בפסיקים של שמות שדות מלאים. דוגמה: "taskOutcome,taskOutcomeTime,taskOutcomeLocation"
|
גוף הבקשה
גוף הבקשה מכיל מופע של Task
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של Task
.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-31 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-31 (שעון UTC)."],[[["\u003cp\u003eThis endpoint updates existing \u003ccode\u003eTask\u003c/code\u003e data using an HTTP \u003ccode\u003ePATCH\u003c/code\u003e request to the specified URL.\u003c/p\u003e\n"],["\u003cp\u003eRequests must include path and query parameters, including a \u003ccode\u003etask.name\u003c/code\u003e for identification and an \u003ccode\u003eupdateMask\u003c/code\u003e specifying the fields to be modified.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the updated \u003ccode\u003eTask\u003c/code\u003e data in JSON format according to the provided schema.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses will contain the updated \u003ccode\u003eTask\u003c/code\u003e data, reflecting the changes made.\u003c/p\u003e\n"]]],[],null,["# Method: providers.tasks.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n\nUpdates `Task` data.\n\n### HTTP request\n\n`PATCH https://fleetengine.googleapis.com/v1/{task.name=providers/*/tasks/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------|\n| `task.name` | `string` Must be in the format `providers/{provider}/tasks/{task}`. |\n\n### Query parameters\n\n| Parameters ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `header` | `object (`[DeliveryRequestHeader](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/DeliveryRequestHeader)`)` Optional. The standard Delivery API request header. |\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. The field mask that indicates which Task fields to update. Note: The `updateMask` must contain at least one field. This is a comma-separated list of fully qualified names of fields. Example: `\"taskOutcome,taskOutcomeTime,taskOutcomeLocation\"`. |\n\n### Request body\n\nThe request body contains an instance of [Task](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/providers.tasks#Task).\n\n### Response body\n\nIf successful, the response body contains an instance of [Task](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/providers.tasks#Task)."]]