nerdexam
SAP

C_CPE_2409 · Question #41

Which HTTP method is used by OData to partially update an existing resource?

The correct answer is B. PATCH. PATCH is used in OData (and REST in general) to partially update a resource - you send only the fields you want to change, leaving the rest untouched. PUT (A) replaces the entire resource, requiring all fields to be sent even if only one changed; using PUT for a partial update…

Database Interaction

Question

Which HTTP method is used by OData to partially update an existing resource?

Options

  • APUT
  • BPATCH
  • CPOST

How the community answered

(41 responses)
  • A
    5% (2)
  • B
    93% (38)
  • C
    2% (1)

Explanation

PATCH is used in OData (and REST in general) to partially update a resource - you send only the fields you want to change, leaving the rest untouched. PUT (A) replaces the entire resource, requiring all fields to be sent even if only one changed; using PUT for a partial update risks wiping out fields you omit. POST (C) is for creating new resources, not updating existing ones. Memory tip: think of PATCH like patching a hole - you fix only the broken part, not the whole thing.

Topics

#OData#HTTP methods#PATCH#partial update

Community Discussion

No community discussion yet for this question.

Full C_CPE_2409 Practice